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

Skip to content

Commit 5a1c9a4

Browse files
committed
Minor bug fix
1 parent 29b5115 commit 5a1c9a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/generic/takeover.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def osPwn(self):
117117
warnMsg = "invalid value, valid values are 1 and 2"
118118
logger.warn(warnMsg)
119119

120-
if tunnel == 2 and Backend.isOs(OS.WINDOWS):
120+
if tunnel == 2 and not Backend.isOs(OS.WINDOWS):
121121
errMsg = "icmpsh slave is only supported on Windows at "
122122
errMsg += "the moment. The back-end database server is "
123123
errMsg += "not. sqlmap will fallback to TCP (Metasploit)"
@@ -173,7 +173,7 @@ def osPwn(self):
173173
msg = "how do you want to execute the Metasploit shellcode "
174174
msg += "on the back-end database underlying operating system?"
175175
msg += "\n[1] Via UDF 'sys_bineval' (in-memory way, anti-forensics, default)"
176-
msg += "\n[2] Via shellcodeexec (file system way)"
176+
msg += "\n[2] Via shellcodeexec (file system way, preferred on 64-bit systems)"
177177

178178
while True:
179179
choice = readInput(msg, default=1)

0 commit comments

Comments
 (0)