-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Windows Userinit persistence #20844
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: master
Are you sure you want to change the base?
Windows Userinit persistence #20844
Conversation
|
Thanks for your pull request! Before this can be merged, we need the following documentation for your module: |
|
I had a few minutes, so did the docs for you: 6a6f656c#1 |
6a6f656c
left a comment
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.
Reviewed
Add docs and tidy to userinit persistence
|
|
||
| def writable_dir | ||
| d = super | ||
| return session.sys.config.getenv(d) if d.start_with?('%') |
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.
fixes #20820
Introduces a new persistence module that abuses the Windows UserInit registry mechanism, ensuring a shell is executed each time a user logs in.
Verification
List the steps needed to make sure this thing works
use exploit/windows/persistence/registry_userinitset session #exploit