Minor adjustment

This commit is contained in:
Bernardo Damele 2010-01-15 18:00:15 +00:00
parent 4ce3abc56d
commit 6d697d60b2

View File

@ -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()