-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Update PetitPotam For New Windows Servers #18622
Conversation
Newer versions of Windows require the inner DCERPC connection to also be authenticated. The prior version of the petitpotam module used Rex and did not provide this authentication. Switching to RubySMB exposes this functionality and allows the module to work on the latest versions of Windows.
handle_args[:uuid], | ||
# rename tree_file | ||
@pipe = tree.open_file(filename: handle_args[:filename], write: true, read: true) | ||
handle = dcerpc_handle( |
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.
Technically this handle isn't used for anything but printing stats information anymore. IMHO the verbosity with which it prints the endpoint and the UUID is extremely helpful in this scenario because the nature of the attack uses uncommon UUID and endpoint combinations. For that reason, I opted to keep this output.
Works for me 👍
It'd be cool to update these docs https://github.com/rapid7/metasploit-framework/blob/b019b2ff89bb66984560366d97a9722be5c1634f/documentation/modules/auxiliary/scanner/dcerpc/petitpotam.md to recommend using the |
Release NotesUpdates the |
This makes an update to the PetitPotam module to enable it to target patched Windows Servers when provided the necessary authentication information. At some point between Windows Server build
10.0.17763.107
and10.0.17763.3232
a change was made which required not only the SMB connection to be authenticated but also the inner DCERPC connection. The inner DCERPC connection must use RPC_C_AUTHN_LEVEL_PKT_PRIVACY, and RPC_C_AUTHN_WINNT to target these newer servers. To accommodate this, the Petit Potam module was switched to using RubySMB's DCERPC connection for named pipes which supports this authentication.There a no changes necessary from a user perspective, the module will simply work now when targeting these newer servers.
Requires changes from:
Verification
msfconsole
New and working
Old and broken