increase the timeout for the Metasploit session initialization to 5 minutes, better on slow speed connections

This commit is contained in:
Bernardo Damele 2014-07-01 00:34:09 +01:00
parent 5c64a31a9c
commit 018748f52e
2 changed files with 1 additions and 2 deletions

View File

@ -572,7 +572,7 @@ FORM_SEARCH_REGEX = r"(?si)<form(?!.+<form).+?</form>"
MIN_ENCODED_LEN_CHECK = 5 MIN_ENCODED_LEN_CHECK = 5
# Timeout in seconds in which Metasploit remote session has to be initialized # Timeout in seconds in which Metasploit remote session has to be initialized
METASPLOIT_SESSION_TIMEOUT = 180 METASPLOIT_SESSION_TIMEOUT = 300
# Reference: http://www.cookiecentral.com/faq/#3.5 # Reference: http://www.cookiecentral.com/faq/#3.5
NETSCAPE_FORMAT_HEADER_COOKIES = "# Netscape HTTP Cookie File." NETSCAPE_FORMAT_HEADER_COOKIES = "# Netscape HTTP Cookie File."

View File

@ -529,7 +529,6 @@ class Metasploit:
time.sleep(2) time.sleep(2)
initialized = True initialized = True
elif timeout: elif timeout:
proc.kill() proc.kill()
errMsg = "timeout occurred while attempting " errMsg = "timeout occurred while attempting "