Open
Conversation
Resolved a typo in the initial script (line 120 users.txt to passwords.txt) and added password policy enumeration.
timothyericsson
requested changes
May 16, 2025
| f.write(f"netexec smb {target_ip} -u users.txt -p '{password}' --continue-on-success\n") | ||
| else: | ||
| f.write(f"netexec smb {target_ip} -u users.txt -p users.txt --continue-on-success\n") | ||
| f.write(f"netexec smb {target_ip} -u users.txt -p passwords.txt --continue-on-success\n") |
Owner
There was a problem hiding this comment.
I mean... you're supposed to spray the users list as the password also.
Author
There was a problem hiding this comment.
i changed it so there is output for both in order people to not forget to try users.txt for sprays
| f.write(f"netexec smb {target_ip} -u '{user}' -p '{password}' --pass-pol\n") | ||
| f.write(f"crackmapexec smb {target_ip} -u '{user}' -p '{password}' --pass-pol\n") | ||
| else: | ||
| f.write(f"# Requires credentials for password policy enumeration\n") |
Owner
There was a problem hiding this comment.
Okay, this could be useful, I think it's useful to put in this check.
Updated password sprays to include both spraying users.txt and passwords.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolved a typo in the initial script (line 120 changed users.txt to passwords.txt) and added password policy enumeration (lines 106-114).