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"