Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0e59d9

Browse files
committed
Better naming
1 parent cdfe435 commit c0e59d9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/core/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,8 @@
513513
# Minimum field entry length needed for encoded content (hex, base64,...) check
514514
MIN_ENCODED_LEN_CHECK = 5
515515

516-
# Timeout in seconds in which Meterpreter session has to be initialized
517-
METERPRETER_INIT_TIMEOUT = 120
516+
# Timeout in seconds in which Metasploit remote session has to be initialized
517+
METASPLOIT_SESSION_TIMEOUT = 120
518518

519519
# CSS style used in HTML dump format
520520
HTML_DUMP_CSS_STYLE = """<style>

lib/takeover/metasploit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from lib.core.exception import SqlmapFilePathException
3333
from lib.core.exception import SqlmapGenericException
3434
from lib.core.settings import IS_WIN
35-
from lib.core.settings import METERPRETER_INIT_TIMEOUT
35+
from lib.core.settings import METASPLOIT_SESSION_TIMEOUT
3636
from lib.core.settings import UNICODE_ENCODING
3737
from lib.core.subprocessng import blockingReadFromFD
3838
from lib.core.subprocessng import blockingWriteToFD
@@ -516,7 +516,7 @@ def _controlMsfCmd(self, proc, func):
516516
send_all(proc, "whoami\n" if Backend.isOs(OS.WINDOWS) else "uname -a ; id\n")
517517
if conf.liveTest:
518518
send_all(proc, "exit\n")
519-
elif time.time() - start_time > METERPRETER_INIT_TIMEOUT:
519+
elif time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
520520
proc.kill()
521521
errMsg = "Timeout occurred while attempting "
522522
errMsg += "to open a remote session"

0 commit comments

Comments
 (0)