-
Notifications
You must be signed in to change notification settings - Fork 411
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
New change-password module. #512
base: main
Are you sure you want to change the base?
Conversation
Thanks for the PR and editting! I had such a module in mind too. But I think we can develop it in a more effective and versatile way. I think it would be much better if we add impacket's passwd tool, especially in cases of STATUS_PASSWORD_MUST_CHANGE and STATUS_PASSWORD_EXPIRED in SMB. I can help with this if you want. |
Does FaganAfandiyev your other account? |
Signed-off-by: termanix <50464194+termanix@users.noreply.github.com>
Improvements on STATUS_PASSWORD_MUST_CHANGE and STATUS_PASSWORD_EXPIRED
I'm not sure for smb.py for now but we'll see 😁 |
Module is ready to be reviewed :) |
Thanks for the work! We'll review the PR when someone has the time to do so :) |
Signed-off-by: Fagan Afandiyev <kriyosthearcane@gmail.com>
Description
This new module is for changing the password of current user or a target user that is given as option. This is netexec implementation of impacket script changepasswd. No libraries are required except sys for exit.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
I have tested this again a homelab and hackthebox DACL1 Attacks module for ForceChangePassword privilege. Had no issues with any of them.
If you are using poetry, you can easily run tests via:
poetry run python tests/e2e_tests.py -t $TARGET -u $USER -p $PASSWORD
There are additional options like
--errors
to display ALL errors (some may not be failures),--poetry
(output will include the poetry run prepended),--line-num $START-$END $SINGLE
for only running a subsetScreenshots (if appropriate):
Checklist:
poetry run python -m ruff check . --preview
, use--fix
to automatically fix what it can)Only thing left is to edit the wiki.