@@ -1622,14 +1622,14 @@ def self.to_executable_fmt(framework, arch, plat, code, fmt, exeopts)
1622
1622
1623
1623
case fmt
1624
1624
when 'asp'
1625
- exe = to_executable_fmt ( framework , arch , plat , code , 'exe' , exeopts )
1625
+ exe = to_executable_fmt ( framework , arch , plat , code , 'exe-small ' , exeopts )
1626
1626
output = Msf ::Util ::EXE . to_exe_asp ( exe , exeopts )
1627
1627
1628
1628
when 'aspx'
1629
1629
output = Msf ::Util ::EXE . to_mem_aspx ( framework , code , exeopts )
1630
1630
1631
1631
when 'aspx-exe'
1632
- exe = to_executable_fmt ( framework , arch , plat , code , 'exe' , exeopts )
1632
+ exe = to_executable_fmt ( framework , arch , plat , code , 'exe-small ' , exeopts )
1633
1633
output = Msf ::Util ::EXE . to_exe_aspx ( exe , exeopts )
1634
1634
1635
1635
when 'dll'
@@ -1638,6 +1638,7 @@ def self.to_executable_fmt(framework, arch, plat, code, fmt, exeopts)
1638
1638
when ARCH_X86_64 then to_win64pe_dll ( framework , code , exeopts )
1639
1639
when ARCH_X64 then to_win64pe_dll ( framework , code , exeopts )
1640
1640
end
1641
+
1641
1642
when 'exe'
1642
1643
output = case arch
1643
1644
when ARCH_X86 , nil then to_win32pe ( framework , code , exeopts )
@@ -1655,6 +1656,7 @@ def self.to_executable_fmt(framework, arch, plat, code, fmt, exeopts)
1655
1656
when 'exe-small'
1656
1657
output = case arch
1657
1658
when ARCH_X86 , nil then to_win32pe_old ( framework , code , exeopts )
1659
+ when ARCH_X86_64 , ARCH_X64 then to_win64pe ( framework , code , exeopts )
1658
1660
end
1659
1661
1660
1662
when 'exe-only'
@@ -1716,15 +1718,15 @@ def self.to_executable_fmt(framework, arch, plat, code, fmt, exeopts)
1716
1718
output = Msf ::Util ::EXE . to_vba ( framework , code , exeopts )
1717
1719
1718
1720
when 'vba-exe'
1719
- exe = to_executable_fmt ( framework , arch , plat , code , 'exe' , exeopts )
1721
+ exe = to_executable_fmt ( framework , arch , plat , code , 'exe-small ' , exeopts )
1720
1722
output = Msf ::Util ::EXE . to_exe_vba ( exe )
1721
1723
1722
1724
when 'vbs'
1723
- exe = to_executable_fmt ( framework , arch , plat , code , 'exe' , exeopts )
1725
+ exe = to_executable_fmt ( framework , arch , plat , code , 'exe-small ' , exeopts )
1724
1726
output = Msf ::Util ::EXE . to_exe_vbs ( exe , exeopts . merge ( { :persist => false } ) )
1725
1727
1726
1728
when 'loop-vbs'
1727
- exe = exe = to_executable_fmt ( framework , arch , plat , code , 'exe' , exeopts )
1729
+ exe = exe = to_executable_fmt ( framework , arch , plat , code , 'exe-small ' , exeopts )
1728
1730
output = Msf ::Util ::EXE . to_exe_vbs ( exe , exeopts . merge ( { :persist => true } ) )
1729
1731
1730
1732
when 'war'
0 commit comments