mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-07 01:03:43 +03:00
BUG fix
This commit is contained in:
parent
c0e59d94a9
commit
5aaf7f1aa6
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user