Patch for --os-pwn on newer versions of Metasploit

This commit is contained in:
Miroslav Stampar
2019-02-09 16:15:09 +01:00
parent 9562502744
commit 6f750f9529
3 changed files with 4 additions and 4 deletions

View File

@@ -558,7 +558,7 @@ class Metasploit:
# For --os-pwn and --os-bof
pwnBofCond = self.connectionStr.startswith("reverse")
pwnBofCond &= "Starting the payload handler" in out
pwnBofCond &= any(_ in out for _ in ("Starting the payload handler", "Started reverse"))
# For --os-smbrelay
smbRelayCond = "Server started" in out