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-b9f4589650daunstable
parent
9e15c487b5
commit
cdb1a50c7f
|
@ -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)
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue