Skip to content

Commit 018748f

Browse files
committed
increase the timeout for the Metasploit session initialization to 5 minutes, better on slow speed connections
1 parent 5c64a31 commit 018748f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@
572572
MIN_ENCODED_LEN_CHECK = 5
573573

574574
# Timeout in seconds in which Metasploit remote session has to be initialized
575-
METASPLOIT_SESSION_TIMEOUT = 180
575+
METASPLOIT_SESSION_TIMEOUT = 300
576576

577577
# Reference: http://www.cookiecentral.com/faq/#3.5
578578
NETSCAPE_FORMAT_HEADER_COOKIES = "# Netscape HTTP Cookie File."

lib/takeover/metasploit.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,6 @@ def _controlMsfCmd(self, proc, func):
529529
time.sleep(2)
530530

531531
initialized = True
532-
533532
elif timeout:
534533
proc.kill()
535534
errMsg = "timeout occurred while attempting "

0 commit comments

Comments
 (0)