Revert "Enable DLL injection in msfvenom"

This reverts commit 64e6531bbc.
bug/bundler_fix
Meatballs 2013-12-14 21:26:13 +00:00
parent bc0c080947
commit 7347cb170c
1 changed files with 4 additions and 14 deletions

View File

@ -1606,20 +1606,10 @@ def self.to_vba(framework,code,opts={})
when 'dll'
output = case arch
when ARCH_X86,nil
if exeopts[:inject]
to_win32pe(framework, code, exeopts)
else
to_win32pe_dll(framework, code, exeopts)
when ARCH_X86,nil then to_win32pe_dll(framework, code, exeopts)
when ARCH_X86_64 then to_win64pe_dll(framework, code, exeopts)
when ARCH_X64 then to_win64pe_dll(framework, code, exeopts)
end
when ARCH_X86_64,ARCH_X64
if exeopts[:inject]
raise RuntimeError, 'Template injection unsupported for x64 DLLs'
else
to_win64pe_dll(framework, code, exeopts)
end
end
when 'exe'
output = case arch
when ARCH_X86,nil then to_win32pe(framework, code, exeopts)