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