File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141from lib .core .enums import OS
4242from lib .core .enums import PAYLOAD
4343from lib .core .enums import WEB_API
44+ from lib .core .exception import SqlmapNoneDataException
4445from lib .core .settings import BACKDOOR_RUN_CMD_TIMEOUT
4546from lib .core .settings import EVENTVALIDATION_REGEX
4647from 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 "
You can’t perform that action at this time.
0 commit comments