mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-13 12:13:47 +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")
|
send_all(proc, "whoami\n" if Backend.isOs(OS.WINDOWS) else "uname -a ; id\n")
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
||||||
if conf.liveTest:
|
|
||||||
send_all(proc, "exit\n")
|
|
||||||
|
|
||||||
initialized = True
|
initialized = True
|
||||||
|
|
||||||
elif time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
|
elif time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
|
||||||
|
@ -528,6 +525,9 @@ class Metasploit:
|
||||||
errMsg += "to open a remote session"
|
errMsg += "to open a remote session"
|
||||||
raise SqlmapGenericException(errMsg)
|
raise SqlmapGenericException(errMsg)
|
||||||
|
|
||||||
|
elif conf.liveTest and time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
|
||||||
|
proc.kill()
|
||||||
|
|
||||||
except EOFError:
|
except EOFError:
|
||||||
returncode = proc.wait()
|
returncode = proc.wait()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user