Add a fix for generating x86_64 dlls
git-svn-id: file:///home/svn/framework3/trunk@13039 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
7e02e7abd6
commit
67403a5a22
9
msfvenom
9
msfvenom
|
@ -300,8 +300,6 @@ if opts[:template]
|
|||
end
|
||||
exeopts = { :inject => opts[:inject], :template_path => path, :template => altexe }
|
||||
|
||||
|
||||
|
||||
if opts[:encode]
|
||||
done = false
|
||||
encoders = get_encoders(opts[:arch], opts[:encoder])
|
||||
|
@ -396,7 +394,12 @@ when /elf/i
|
|||
end
|
||||
$stdout.puts elf
|
||||
when /dll/i
|
||||
dll = Msf::Util::EXE.to_win32pe_dll($framework, payload_raw)
|
||||
if opts[:arch] == "x86"
|
||||
dll = Msf::Util::EXE.to_win32pe_dll($framework, payload_raw)
|
||||
elsif opts[:arch] == "x86_64"
|
||||
dll = Msf::Util::EXE.to_win64pe_dll($framework, payload_raw)
|
||||
end
|
||||
|
||||
$stdout.puts dll
|
||||
when /exe/i
|
||||
$stdout.puts exe
|
||||
|
|
Loading…
Reference in New Issue