forked from p15670423/monkey
Agent: Fix timeout in ZeroLogon
Timeout should be on DCERPC transport factory.
This commit is contained in:
parent
e7e6201d75
commit
0a5fc84b4e
|
@ -91,8 +91,9 @@ class ZerologonExploiter(HostExploiter):
|
|||
@staticmethod
|
||||
def connect_to_dc(dc_ip) -> object:
|
||||
binding = epm.hept_map(dc_ip, nrpc.MSRPC_UUID_NRPC, protocol="ncacn_ip_tcp")
|
||||
rpc_con = transport.DCERPCTransportFactory(binding).get_dce_rpc()
|
||||
rpc_con.set_connect_timeout(LONG_REQUEST_TIMEOUT)
|
||||
rpc_transport = transport.DCERPCTransportFactory(binding)
|
||||
rpc_transport.set_connect_timeout(LONG_REQUEST_TIMEOUT)
|
||||
rpc_con = rpc_transport.get_dce_rpc()
|
||||
rpc_con.connect()
|
||||
rpc_con.bind(nrpc.MSRPC_UUID_NRPC)
|
||||
return rpc_con
|
||||
|
|
Loading…
Reference in New Issue