mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Falling back to web backdoor if UDF fails
This commit is contained in:
@@ -15,6 +15,7 @@ from lib.core.common import openFile
|
||||
from lib.core.common import readInput
|
||||
from lib.core.common import runningAsAdmin
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
from lib.core.enums import DBMS
|
||||
from lib.core.enums import OS
|
||||
@@ -79,7 +80,20 @@ class Takeover(Abstraction, Metasploit, ICMPsh, Registry):
|
||||
raise SqlmapNotVulnerableException(errMsg)
|
||||
|
||||
self.getRemoteTempPath()
|
||||
self.initEnv(web=web)
|
||||
|
||||
try:
|
||||
self.initEnv(web=web)
|
||||
except SqlmapFilePathException:
|
||||
if not web:
|
||||
infoMsg = "falling back to web backdoor method..."
|
||||
logger.info(infoMsg)
|
||||
|
||||
web = True
|
||||
kb.udfFail = True
|
||||
|
||||
self.initEnv(web=web)
|
||||
else:
|
||||
raise
|
||||
|
||||
if not web or (web and self.webBackdoorUrl is not None):
|
||||
self.shell()
|
||||
|
||||
Reference in New Issue
Block a user