@@ -1604,14 +1604,14 @@ def self.to_executable_fmt(framework, arch, plat, code, fmt, exeopts)
1604
1604
1605
1605
case fmt
1606
1606
when 'asp'
1607
- exe = to_executable_fmt ( framework , arch , plat , code , 'exe' , exeopts )
1607
+ exe = to_executable_fmt ( framework , arch , plat , code , 'exe-small ' , exeopts )
1608
1608
output = Msf ::Util ::EXE . to_exe_asp ( exe , exeopts )
1609
1609
1610
1610
when 'aspx'
1611
1611
output = Msf ::Util ::EXE . to_mem_aspx ( framework , code , exeopts )
1612
1612
1613
1613
when 'aspx-exe'
1614
- exe = to_executable_fmt ( framework , arch , plat , code , 'exe' , exeopts )
1614
+ exe = to_executable_fmt ( framework , arch , plat , code , 'exe-small ' , exeopts )
1615
1615
output = Msf ::Util ::EXE . to_exe_aspx ( exe , exeopts )
1616
1616
1617
1617
when 'dll'
@@ -1620,6 +1620,7 @@ def self.to_executable_fmt(framework, arch, plat, code, fmt, exeopts)
1620
1620
when ARCH_X86_64 then to_win64pe_dll ( framework , code , exeopts )
1621
1621
when ARCH_X64 then to_win64pe_dll ( framework , code , exeopts )
1622
1622
end
1623
+
1623
1624
when 'exe'
1624
1625
output = case arch
1625
1626
when ARCH_X86 , nil then to_win32pe ( framework , code , exeopts )
@@ -1637,6 +1638,7 @@ def self.to_executable_fmt(framework, arch, plat, code, fmt, exeopts)
1637
1638
when 'exe-small'
1638
1639
output = case arch
1639
1640
when ARCH_X86 , nil then to_win32pe_old ( framework , code , exeopts )
1641
+ when ARCH_X86_64 , ARCH_X64 then to_win64pe ( framework , code , exeopts )
1640
1642
end
1641
1643
1642
1644
when 'exe-only'
@@ -1698,15 +1700,15 @@ def self.to_executable_fmt(framework, arch, plat, code, fmt, exeopts)
1698
1700
output = Msf ::Util ::EXE . to_vba ( framework , code , exeopts )
1699
1701
1700
1702
when 'vba-exe'
1701
- exe = to_executable_fmt ( framework , arch , plat , code , 'exe' , exeopts )
1703
+ exe = to_executable_fmt ( framework , arch , plat , code , 'exe-small ' , exeopts )
1702
1704
output = Msf ::Util ::EXE . to_exe_vba ( exe )
1703
1705
1704
1706
when 'vbs'
1705
- exe = to_executable_fmt ( framework , arch , plat , code , 'exe' , exeopts )
1707
+ exe = to_executable_fmt ( framework , arch , plat , code , 'exe-small ' , exeopts )
1706
1708
output = Msf ::Util ::EXE . to_exe_vbs ( exe , exeopts . merge ( { :persist => false } ) )
1707
1709
1708
1710
when 'loop-vbs'
1709
- exe = exe = to_executable_fmt ( framework , arch , plat , code , 'exe' , exeopts )
1711
+ exe = exe = to_executable_fmt ( framework , arch , plat , code , 'exe-small ' , exeopts )
1710
1712
output = Msf ::Util ::EXE . to_exe_vbs ( exe , exeopts . merge ( { :persist => true } ) )
1711
1713
1712
1714
when 'war'
0 commit comments