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.warunstable
parent
e522b40465
commit
016ba1613d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue