Avoid to check for existence of not needed UDFs and minor code adjustment for cleanup() method

This commit is contained in:
Bernardo Damele
2010-02-05 23:14:16 +00:00
parent b08a4efb4b
commit 5c92fad5dc
5 changed files with 18 additions and 17 deletions

View File

@@ -100,6 +100,9 @@ class Takeover(Abstraction, Metasploit, Registry):
if not web or (web and self.webBackdoorUrl is not None):
self.runCmd(conf.osCmd)
if not conf.osShell and not conf.osPwn and not conf.cleanup:
self.cleanup()
def osShell(self):
stackedTest()
@@ -120,6 +123,9 @@ class Takeover(Abstraction, Metasploit, Registry):
if not web or (web and self.webBackdoorUrl is not None):
self.shell()
if not conf.osPwn and not conf.cleanup:
self.cleanup()
def osPwn(self):
goUdf = False
@@ -228,6 +234,9 @@ class Takeover(Abstraction, Metasploit, Registry):
if not web or (web and self.webBackdoorUrl is not None):
self.pwn(goUdf)
if not conf.cleanup:
self.cleanup()
def osSmb(self):
stackedTest()