mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
minor adjustment fixing the regression test stall
This commit is contained in:
parent
e48181e28d
commit
f970b4f240
|
@ -525,7 +525,11 @@ class Metasploit:
|
|||
errMsg += "to open a remote session"
|
||||
raise SqlmapGenericException(errMsg)
|
||||
|
||||
elif conf.liveTest and time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
|
||||
if conf.liveTest and time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
|
||||
if initialized:
|
||||
send_all(proc, "exit\n")
|
||||
time.sleep(2)
|
||||
else:
|
||||
proc.kill()
|
||||
|
||||
except (EOFError, IOError):
|
||||
|
|
Loading…
Reference in New Issue
Block a user