Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5aaf7f1

Browse files
committed
BUG fix
1 parent c0e59d9 commit 5aaf7f1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/takeover/metasploit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ def _controlMsfCmd(self, proc, func):
515515
if "shell" in self.payloadStr:
516516
send_all(proc, "whoami\n" if Backend.isOs(OS.WINDOWS) else "uname -a ; id\n")
517517
if conf.liveTest:
518+
time.sleep(2)
518519
send_all(proc, "exit\n")
519520
elif time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
520521
proc.kill()

0 commit comments

Comments
 (0)