From e8b0fd90c839965342be80c53e2d2e86f4bb780a Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 29 Jan 2010 19:32:02 +0000 Subject: [PATCH] Minor bug fix --- lib/takeover/metasploit.py | 2 +- lib/takeover/upx.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/takeover/metasploit.py b/lib/takeover/metasploit.py index 1a9a583fa..715696c24 100644 --- a/lib/takeover/metasploit.py +++ b/lib/takeover/metasploit.py @@ -453,7 +453,7 @@ class Metasploit: if conf.privEsc: print - infoMsg = "trying to escalate privileges using Meterpreter" + infoMsg = "trying to escalate privileges using Meterpreter " infoMsg += "'getsystem' command which tries different " infoMsg += "techniques, including kitrap0d" logger.info(infoMsg) diff --git a/lib/takeover/upx.py b/lib/takeover/upx.py index 56c423941..0c1172fe0 100644 --- a/lib/takeover/upx.py +++ b/lib/takeover/upx.py @@ -79,7 +79,7 @@ class UPX: pollProcess(process) upxStdout, upxStderr = process.communicate() - if (self, hasattr('__upxTempExe')): + if hasattr(self, '__upxTempExe'): os.remove(self.__upxTempExe.name) msg = "failed to compress the file"