forked from p15670423/monkey
Agent: Half the default smb timeout to 30sec
This commit is contained in:
parent
e05deaa57c
commit
c82a9cfbf0
|
@ -27,9 +27,8 @@ class SmbTools(object):
|
|||
password,
|
||||
lm_hash="",
|
||||
ntlm_hash="",
|
||||
timeout=60,
|
||||
timeout=30,
|
||||
) -> Optional[str]:
|
||||
# TODO assess the 60 second timeout
|
||||
creds_for_log = get_credential_string([username, password, lm_hash, ntlm_hash])
|
||||
logger.debug(f"Attempting to copy an agent binary to {host} using SMB with {creds_for_log}")
|
||||
|
||||
|
@ -188,7 +187,7 @@ class SmbTools(object):
|
|||
return remote_full_path
|
||||
|
||||
@staticmethod
|
||||
def new_smb_connection(host, username, password, lm_hash="", ntlm_hash="", timeout=60):
|
||||
def new_smb_connection(host, username, password, lm_hash="", ntlm_hash="", timeout=30):
|
||||
try:
|
||||
smb = SMBConnection(host.ip_addr, host.ip_addr, sess_port=445)
|
||||
except Exception as exc:
|
||||
|
|
Loading…
Reference in New Issue