Skip to content

Commit 23b86eb

Browse files
authored
Merge pull request rapid7#20848 from msutovsky-r7/fix/lib/exe/x64_to_executable_fix
Fixes typo in generating X64 PE file
2 parents 0f3ac31 + 27fc0bf commit 23b86eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/util/exe.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def self.to_executable(framework, arch, plat, code = '', opts = {})
110110

111111
if plat.index(Msf::Module::Platform::Windows)
112112
return to_win32pe(framework, code, opts) if arch.index(ARCH_X86)
113-
return to_win64pe(framework, code, opts) if arch.index(ARCH_X86)
113+
return to_win64pe(framework, code, opts) if arch.index(ARCH_X64)
114114
elsif plat.index(Msf::Module::Platform::Linux)
115115
return to_linux_armle_elf(framework, code, opts) if arch.index(ARCH_ARMLE)
116116
return to_linux_armbe_elf(framework, code, opts) if arch.index(ARCH_ARMBE)

0 commit comments

Comments
 (0)