Minor UPX adjustment

This commit is contained in:
Bernardo Damele 2010-02-20 19:02:55 +00:00
parent 6267e74bfb
commit d1e3596382

View File

@ -622,10 +622,10 @@ class Metasploit:
payloadSize = payloadSize.group(1) payloadSize = payloadSize.group(1)
exeSize = os.path.getsize(self.exeFilePathLocal) exeSize = os.path.getsize(self.exeFilePathLocal)
# Only pack the payload stager if the back-end DBMS is not # Only pack the payload stager if the back-end DBMS operating
# PostgreSQL because for this DBMS, sqlmap uses the # system is Windows and new portable executable template is
# Metasploit's old exe format # used
if self.__fileFormat != "exe-small": if self.__fileFormat == "exe":
packedSize = upx.pack(self.exeFilePathLocal) packedSize = upx.pack(self.exeFilePathLocal)
else: else:
packedSize = None packedSize = None