From 6d697d60b201278b9457fbd5ef0f5c81597e8849 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 15 Jan 2010 18:00:15 +0000 Subject: [PATCH] Minor adjustment --- plugins/generic/takeover.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/plugins/generic/takeover.py b/plugins/generic/takeover.py index a5bd11878..36f7c17bf 100644 --- a/plugins/generic/takeover.py +++ b/plugins/generic/takeover.py @@ -92,7 +92,9 @@ class Takeover(Abstraction, Metasploit, Registry): raise sqlmapNotVulnerableException(errMsg) 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): stackedTest() @@ -109,7 +111,9 @@ class Takeover(Abstraction, Metasploit, Registry): raise sqlmapNotVulnerableException(errMsg) self.initEnv(web=web) - self.shell() + + if not web or (web and self.webBackdoorUrl is not None): + self.shell() def osPwn(self): goUdf = False @@ -201,7 +205,8 @@ class Takeover(Abstraction, Metasploit, Registry): errMsg += "the back-end DBMS" raise sqlmapNotVulnerableException(errMsg) - self.pwn(goUdf) + if not web or (web and self.webBackdoorUrl is not None): + self.pwn(goUdf) def osSmb(self): stackedTest()