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

Skip to content

Commit 6f750f9

Browse files
committed
Patch for --os-pwn on newer versions of Metasploit
1 parent 9562502 commit 6f750f9

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.3.2.13"
22+
VERSION = "1.3.2.14"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/takeover/metasploit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def _controlMsfCmd(self, proc, func):
558558

559559
# For --os-pwn and --os-bof
560560
pwnBofCond = self.connectionStr.startswith("reverse")
561-
pwnBofCond &= "Starting the payload handler" in out
561+
pwnBofCond &= any(_ in out for _ in ("Starting the payload handler", "Started reverse"))
562562

563563
# For --os-smbrelay
564564
smbRelayCond = "Server started" in out

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ d5ef43fe3cdd6c2602d7db45651f9ceb lib/core/readlineng.py
5050
7d8a22c582ad201f65b73225e4456170 lib/core/replication.py
5151
3179d34f371e0295dd4604568fb30bcd lib/core/revision.py
5252
d6269c55789f78cf707e09a0f5b45443 lib/core/session.py
53-
61c1b630a7454947a1eda659e31bf251 lib/core/settings.py
53+
8aa51078439218dacde3c4283ed22845 lib/core/settings.py
5454
4483b4a5b601d8f1c4281071dff21ecc lib/core/shell.py
5555
10fd19b0716ed261e6d04f311f6f527c lib/core/subprocessng.py
5656
43772ea73e9e3d446f782af591cb4eda lib/core/target.py
@@ -86,7 +86,7 @@ ac482ec52227daf48f523827dd67078f lib/request/pkihandler.py
8686
eafa28e4beb2b7492dfc8036033ac824 lib/takeover/abstraction.py
8787
ac9efea51eba120b667b4b73536d7f1c lib/takeover/icmpsh.py
8888
fb6be55d21a70765e35549af2484f762 lib/takeover/__init__.py
89-
d55029a4c048e345fbb07a8f91604d83 lib/takeover/metasploit.py
89+
2e14e89af54ea30892c1f426103ab70a lib/takeover/metasploit.py
9090
6b5b841d445b7b973c2e033edfb01b16 lib/takeover/registry.py
9191
ad038ac567f97a4b940b7987792d64a4 lib/takeover/udf.py
9292
f0a809475eb0db95ffbe89fd6ca5bd96 lib/takeover/web.py

0 commit comments

Comments
 (0)