fix generating war files for Java payloads from within msfconsole

This fixes this use case:
use payload/java/meterpreter/reverse_tcp
generate -t war -f filename.war
unstable
Michael Schierl 2012-03-27 22:43:50 +02:00 committed by James Lee
parent e522b40465
commit 016ba1613d
1 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,10 @@ module Payload
len = e.encoded.length
if arch.index(ARCH_JAVA) and fmt == 'war'
return e.encoded_war.pack
end
output = Msf::Util::EXE.to_executable_fmt(framework, arch, plat, e.encoded, fmt, exeopts)
if not output