Skip to content

Commit 1873053

Browse files
committed
Restore win32pe as the default (not _only)
1 parent 3a183ff commit 1873053

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/msf/util/exe.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def self.to_executable(framework, arch, plat, code='', opts={})
6666
if (arch.index(ARCH_X86))
6767

6868
if (plat.index(Msf::Module::Platform::Windows))
69-
return to_win32pe_only(framework, code, opts)
69+
return to_win32pe(framework, code, opts)
7070
end
7171

7272
if (plat.index(Msf::Module::Platform::Linux))
@@ -928,7 +928,7 @@ def self.to_vba(framework,code,opts={})
928928
end
929929

930930
def self.to_win32pe_vba(framework, code, opts={})
931-
to_exe_vba(to_win32pe_only(framework, code, opts))
931+
to_exe_vba(to_win32pe(framework, code, opts))
932932
end
933933

934934
def self.to_exe_vbs(exes = '', opts={})
@@ -1196,15 +1196,15 @@ def self.to_win32pe_psh(framework, code, opts={})
11961196
end
11971197

11981198
def self.to_win32pe_vbs(framework, code, opts={})
1199-
to_exe_vbs(to_win32pe_only(framework, code, opts), opts)
1199+
to_exe_vbs(to_win32pe(framework, code, opts), opts)
12001200
end
12011201

12021202
def self.to_win32pe_asp(framework, code, opts={})
1203-
to_exe_asp(to_win32pe_only(framework, code, opts), opts)
1203+
to_exe_asp(to_win32pe(framework, code, opts), opts)
12041204
end
12051205

12061206
def self.to_win32pe_aspx(framework, code, opts={})
1207-
to_exe_aspx(to_win32pe_only(framework, code, opts), opts)
1207+
to_exe_aspx(to_win32pe(framework, code, opts), opts)
12081208
end
12091209

12101210
# Creates a jar file that drops the provided +exe+ into a random file name
@@ -1932,7 +1932,7 @@ def self.to_executable_fmt(framework, arch, plat, code, fmt, exeopts)
19321932
output = Msf::Util::EXE.to_vba(framework, code, exeopts)
19331933

19341934
when 'vba-exe'
1935-
exe = Msf::Util::EXE.to_win32pe_only(framework, code, exeopts)
1935+
exe = Msf::Util::EXE.to_win32pe(framework, code, exeopts)
19361936
output = Msf::Util::EXE.to_exe_vba(exe)
19371937

19381938
when 'vbs'

0 commit comments

Comments
 (0)