Fix little bug when using msfencode and exe-only

When arch is not defined, arch is null so it crashs.
It should be 'x86' by default
bug/bundler_fix
agix 2014-04-14 01:02:31 +02:00
parent 7b6b94acd5
commit ac63e84d02
1 changed files with 3 additions and 3 deletions

View File

@ -1725,7 +1725,7 @@ require 'msf/core/exe/segment_injector'
when 'exe-only'
output = case arch
when ARCH_X86,nil then to_winpe_only(framework, code, exeopts, arch)
when ARCH_X86,nil then to_winpe_only(framework, code, exeopts)
when ARCH_X86_64 then to_winpe_only(framework, code, exeopts, arch)
when ARCH_X64 then to_winpe_only(framework, code, exeopts, arch)
end