mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 05:31:32 +00:00
BUG fix
This commit is contained in:
@@ -515,6 +515,7 @@ class Metasploit:
|
|||||||
if "shell" in self.payloadStr:
|
if "shell" in self.payloadStr:
|
||||||
send_all(proc, "whoami\n" if Backend.isOs(OS.WINDOWS) else "uname -a ; id\n")
|
send_all(proc, "whoami\n" if Backend.isOs(OS.WINDOWS) else "uname -a ; id\n")
|
||||||
if conf.liveTest:
|
if conf.liveTest:
|
||||||
|
time.sleep(2)
|
||||||
send_all(proc, "exit\n")
|
send_all(proc, "exit\n")
|
||||||
elif time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
|
elif time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
|
||||||
proc.kill()
|
proc.kill()
|
||||||
|
|||||||
Reference in New Issue
Block a user