Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new SMB module to get the PowerShell history on all the users #341

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

357384n
Copy link

@357384n 357384n commented Jun 11, 2024

Hey,

I've added a pretty basic module to get the Powershell History of all the users on specified targets. Once get it the module will check some keywords that could contain credentials and display them.
You also can export the entire Powershell History with the following option: -o export=enable.
If you do that a file like {IP}.powershell_history.txt will be writen in your current path.

Running the module:
image

By default the export option is disable but can be very interesting during a pentest so if you want to manually analyze them juste do like below:

image

@NeffIsBack
Copy link
Contributor

Thanks for the PR!

First commit 

Signed-off-by: Sébastien Miguel <[email protected]>
Add export feature and some keywords

Signed-off-by: Sébastien Miguel <[email protected]>
Add the path to output file in the output

Signed-off-by: Sébastien Miguel <[email protected]>
add description to module option

Signed-off-by: Sébastien Miguel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants