-
Notifications
You must be signed in to change notification settings - Fork 2
Update filler.py #1
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,11 +103,21 @@ def create_ad_enumeration_file(target_ip, hostname, domain, local_ip, user, pass | |
| f.write(f"faketime -f +7h powerview {domain}/{user}@{target_ip} -k --no-pass --dc-ip {target_ip}\n") | ||
| f.write("\n") | ||
|
|
||
| # Password Policy Enumeration | ||
| f.write("## Password Policy Enumeration\n") | ||
| if user and password: | ||
| 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") | ||
| f.write("\n") | ||
|
|
||
| #Password spraying | ||
| f.write("# Password Spray\n") | ||
| if user and password: | ||
| 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 passwords.txt --continue-on-success\n") | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean... you're supposed to spray the users list as the password also.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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 users.txt -p users.txt --continue-on-success\n") | ||
| f.write("\n") | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, this could be useful, I think it's useful to put in this check.