Generate jar files for executable output for java payloads.

git-svn-id: file:///home/svn/framework3/trunk@11691 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Weeks 2011-02-01 16:26:17 +00:00
parent 648214cad2
commit 426f70e752
1 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,10 @@ if (cmd =~ /^(p|y|r|d|c|j|x|b|v|w)/)
exe = Msf::Util::EXE.to_executable($framework, arch, plat, buf) exe = Msf::Util::EXE.to_executable($framework, arch, plat, buf)
if(!exe and plat.index(Msf::Module::Platform::Java))
exe = payload.generate_jar.pack
end
if(exe) if(exe)
$stderr.puts(note) $stderr.puts(note)
$stdout.write(exe) $stdout.write(exe)