possible fix for regression test stall

This commit is contained in:
Bernardo Damele 2013-02-09 10:50:06 +00:00
parent 1596b9ed59
commit 138a846cf1

View File

@ -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()