mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
minor adjustment fixing the regression test stall
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user