Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1e3596

Browse files
committed
Minor UPX adjustment
1 parent 6267e74 commit d1e3596

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/takeover/metasploit.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -622,10 +622,10 @@ def createMsfPayloadStager(self, initialize=True):
622622
payloadSize = payloadSize.group(1)
623623
exeSize = os.path.getsize(self.exeFilePathLocal)
624624

625-
# Only pack the payload stager if the back-end DBMS is not
626-
# PostgreSQL because for this DBMS, sqlmap uses the
627-
# Metasploit's old exe format
628-
if self.__fileFormat != "exe-small":
625+
# Only pack the payload stager if the back-end DBMS operating
626+
# system is Windows and new portable executable template is
627+
# used
628+
if self.__fileFormat == "exe":
629629
packedSize = upx.pack(self.exeFilePathLocal)
630630
else:
631631
packedSize = None

0 commit comments

Comments
 (0)