honor the Spawn option when creating a jar

git-svn-id: file:///home/svn/framework3/trunk@13215 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-07-19 02:54:38 +00:00
parent 7dbb56b38b
commit 4188db3a6d
1 changed files with 2 additions and 0 deletions

View File

@ -362,6 +362,8 @@ class EncodedPayload
def encoded_jar(opts={})
return pinst.generate_jar(opts) if pinst.respond_to? :generate_jar
opts[:spawn] ||= pinst.datastore["Spawn"]
Msf::Util::EXE.to_jar(encoded_exe(opts), opts)
end