This commit is contained in:
Miroslav Stampar 2013-02-08 16:44:30 +01:00
parent c0e59d94a9
commit 5aaf7f1aa6

View File

@ -515,6 +515,7 @@ class Metasploit:
if "shell" in self.payloadStr:
send_all(proc, "whoami\n" if Backend.isOs(OS.WINDOWS) else "uname -a ; id\n")
if conf.liveTest:
time.sleep(2)
send_all(proc, "exit\n")
elif time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
proc.kill()