fix exe generation for auto-targetting

git-svn-id: file:///home/svn/framework3/trunk@10753 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-10-19 22:21:19 +00:00
parent 7c1d8c7d05
commit 1935f2007f
1 changed files with 6 additions and 1 deletions

View File

@ -173,7 +173,12 @@ class Metasploit3 < Msf::Exploit::Remote
:jsp_name => jsp_name
})
else
exe = generate_payload_exe({ :code => p.encoded })
exe = generate_payload_exe(
{
:code => p.encoded,
:arch => arch,
:platform => plat
})
@war_data = Msf::Util::EXE.to_jsp_war(exe,
{
:app_name => app_base,