mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
Minor adjustment
This commit is contained in:
parent
4ce3abc56d
commit
6d697d60b2
|
@ -92,7 +92,9 @@ class Takeover(Abstraction, Metasploit, Registry):
|
||||||
raise sqlmapNotVulnerableException(errMsg)
|
raise sqlmapNotVulnerableException(errMsg)
|
||||||
|
|
||||||
self.initEnv(web=web)
|
self.initEnv(web=web)
|
||||||
self.runCmd(conf.osCmd)
|
|
||||||
|
if not web or (web and self.webBackdoorUrl is not None):
|
||||||
|
self.runCmd(conf.osCmd)
|
||||||
|
|
||||||
def osShell(self):
|
def osShell(self):
|
||||||
stackedTest()
|
stackedTest()
|
||||||
|
@ -109,7 +111,9 @@ class Takeover(Abstraction, Metasploit, Registry):
|
||||||
raise sqlmapNotVulnerableException(errMsg)
|
raise sqlmapNotVulnerableException(errMsg)
|
||||||
|
|
||||||
self.initEnv(web=web)
|
self.initEnv(web=web)
|
||||||
self.shell()
|
|
||||||
|
if not web or (web and self.webBackdoorUrl is not None):
|
||||||
|
self.shell()
|
||||||
|
|
||||||
def osPwn(self):
|
def osPwn(self):
|
||||||
goUdf = False
|
goUdf = False
|
||||||
|
@ -201,7 +205,8 @@ class Takeover(Abstraction, Metasploit, Registry):
|
||||||
errMsg += "the back-end DBMS"
|
errMsg += "the back-end DBMS"
|
||||||
raise sqlmapNotVulnerableException(errMsg)
|
raise sqlmapNotVulnerableException(errMsg)
|
||||||
|
|
||||||
self.pwn(goUdf)
|
if not web or (web and self.webBackdoorUrl is not None):
|
||||||
|
self.pwn(goUdf)
|
||||||
|
|
||||||
def osSmb(self):
|
def osSmb(self):
|
||||||
stackedTest()
|
stackedTest()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user