mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
possible fix for regression test stall
This commit is contained in:
parent
1596b9ed59
commit
138a846cf1
|
@ -517,9 +517,6 @@ class Metasploit:
|
|||
send_all(proc, "whoami\n" if Backend.isOs(OS.WINDOWS) else "uname -a ; id\n")
|
||||
time.sleep(2)
|
||||
|
||||
if conf.liveTest:
|
||||
send_all(proc, "exit\n")
|
||||
|
||||
initialized = True
|
||||
|
||||
elif time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
|
||||
|
@ -528,6 +525,9 @@ class Metasploit:
|
|||
errMsg += "to open a remote session"
|
||||
raise SqlmapGenericException(errMsg)
|
||||
|
||||
elif conf.liveTest and time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
|
||||
proc.kill()
|
||||
|
||||
except EOFError:
|
||||
returncode = proc.wait()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user