Skip to content

Commit

Permalink
Generate jar files for executable output for java payloads.
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/svn/framework3/trunk@11691 4d416f70-5f16-0410-b530-b9f4589650da
  • Loading branch information
scriptjunkie committed Feb 1, 2011
1 parent 648214c commit 426f70e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions msfpayload
Expand Up @@ -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)

if(!exe and plat.index(Msf::Module::Platform::Java))
exe = payload.generate_jar.pack
end

if(exe)
$stderr.puts(note)
$stdout.write(exe)
Expand Down

0 comments on commit 426f70e

Please sign in to comment.