Skip to content

Commit

Permalink
fix IP/dns mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkjanm committed Sep 15, 2020
1 parent a6bd1bb commit 207197b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restorepassword.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, username='', password='', domain='', port = None,
def dump(self, remoteName, remoteHost):


stringbinding = epm.hept_map(remoteName, nrpc.MSRPC_UUID_NRPC, protocol = 'ncacn_ip_tcp')
stringbinding = epm.hept_map(remoteHost, nrpc.MSRPC_UUID_NRPC, protocol = 'ncacn_ip_tcp')
logging.info('StringBinding %s'%stringbinding)
rpctransport = transport.DCERPCTransportFactory(stringbinding)
dce = rpctransport.get_dce_rpc()
Expand Down

0 comments on commit 207197b

Please sign in to comment.