add war support for java, in addition to the jsp exe dropper

git-svn-id: file:///home/svn/framework3/trunk@11965 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-03-15 19:53:41 +00:00
parent 9e15c487b5
commit cdb1a50c7f
1 changed files with 5 additions and 1 deletions

View File

@ -161,7 +161,11 @@ if (cmd =~ /^(p|y|r|d|c|j|x|b|v|w)/)
plat = payload.platform.platforms
exe = Msf::Util::EXE.to_executable($framework, arch, plat, buf)
exe = Msf::Util::EXE.to_jsp_war(exe)
if(!exe and plat.index(Msf::Module::Platform::Java))
exe = payload.generate_war.pack
else
exe = Msf::Util::EXE.to_jsp_war(exe)
end
if(exe)