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

Skip to content

Commit c2f14e5

Browse files
committed
Patch for an Issue #740
1 parent 686fe4d commit c2f14e5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/takeover/web.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
from lib.core.enums import OS
4242
from lib.core.enums import PAYLOAD
4343
from lib.core.enums import WEB_API
44+
from lib.core.exception import SqlmapNoneDataException
4445
from lib.core.settings import BACKDOOR_RUN_CMD_TIMEOUT
4546
from lib.core.settings import EVENTVALIDATION_REGEX
4647
from lib.core.settings import VIEWSTATE_REGEX
@@ -346,7 +347,11 @@ def webInit(self):
346347
testStr = "command execution test"
347348
output = self.webBackdoorRunCmd("echo %s" % testStr)
348349

349-
if output and testStr in output:
350+
if output == "0":
351+
warnMsg = "the backdoor has been uploaded but required privileges "
352+
warnMsg += "for running the system commands are missing"
353+
raise SqlmapNoneDataException(warnMsg)
354+
elif output and testStr in output:
350355
infoMsg = "the backdoor has been successfully "
351356
else:
352357
infoMsg = "the backdoor has probably been successfully "

0 commit comments

Comments
 (0)