mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
minor adjustment fixing the regression test stall
This commit is contained in:
parent
e48181e28d
commit
f970b4f240
|
@ -525,8 +525,12 @@ class Metasploit:
|
|||
errMsg += "to open a remote session"
|
||||
raise SqlmapGenericException(errMsg)
|
||||
|
||||
elif conf.liveTest and time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
|
||||
proc.kill()
|
||||
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):
|
||||
return proc.returncode
|
||||
|
|
Loading…
Reference in New Issue
Block a user