From 7347cb170ca42fd4499f781c2fcc3232e00aa787 Mon Sep 17 00:00:00 2001 From: Meatballs Date: Sat, 14 Dec 2013 21:26:13 +0000 Subject: [PATCH] Revert "Enable DLL injection in msfvenom" This reverts commit 64e6531bbc3ed9ec9e339e7762cd30b3284d2fb2. --- lib/msf/util/exe.rb | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/lib/msf/util/exe.rb b/lib/msf/util/exe.rb index 77e25b4c7c..12b1242090 100644 --- a/lib/msf/util/exe.rb +++ b/lib/msf/util/exe.rb @@ -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) - 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 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 'exe' output = case arch when ARCH_X86,nil then to_win32pe(framework, code, exeopts)