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

Support for adding REG_MULTI_SZ values through reg.py #1785

Merged
merged 6 commits into from
Aug 6, 2024

Conversation

gabrielg5
Copy link
Collaborator

@gabrielg5 gabrielg5 commented Aug 5, 2024

This PR implements #1720

Changing -vd argument to append

add_parser.add_argument('-vd', action='append', metavar="VALUEDATA", required=False, help='Specifies the registry '
                           'value data that is to be set. In case of adding a REG_MULTI_SZ value, set this option once for each '
                           'line you want to add.', default=[''])

Running the example with a command like this, ie:

┌──(xxx㉿XXX)-[~/impacket/examples]
└─$ python reg.py <domain>/<user>@<ip> add -v multistring -vt REG_MULTI_SZ -keyName "HKLM\SOFTWARE\test" -vd first -vd the_second -vd "with whitespaces"

@anadrianmanrique anadrianmanrique merged commit 2571ce4 into master Aug 6, 2024
11 checks passed
@anadrianmanrique
Copy link
Contributor

merged. Thanks

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.

2 participants