Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6267e74 commit d1e3596Copy full SHA for d1e3596
1 file changed
lib/takeover/metasploit.py
@@ -622,10 +622,10 @@ def createMsfPayloadStager(self, initialize=True):
622
payloadSize = payloadSize.group(1)
623
exeSize = os.path.getsize(self.exeFilePathLocal)
624
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":
+ # Only pack the payload stager if the back-end DBMS operating
+ # system is Windows and new portable executable template is
+ # used
+ if self.__fileFormat == "exe":
629
packedSize = upx.pack(self.exeFilePathLocal)
630
else:
631
packedSize = None
0 commit comments