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 defaultbug/bundler_fix
parent
7b6b94acd5
commit
ac63e84d02
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue