Results 1 to 6 of 6

Thread: Connections in Meterpreter while using proxychains?

  1. #1
    Junior Member Liuser's Avatar
    Join Date
    Apr 2010
    Posts
    58

    Default Connections in Meterpreter while using proxychains?

    Hello,

    I am having some difficulty with my setup that I hope someone here can lead me in the correct path. Here's the background:

    [My Machine] --> ( Internet ) --> [ Compromised Machine ] --> [ Victim Machine ]

    I am using proxychains to make a remote Victim Machine routeable through a machine I have compromised. I have initiated a meterpreter session and would like to issue certain commands that require new connections (run vnc, shell for example).

    I notice that while attempting to make the call 'run vnc', it attempts to issue a reverse_tcp call, however to my Local IP (LHOST) which is local. Obviously this will fail. I am behind a NAT'ed network and would like to use my public IP where my router would then forward the connection to my internal IP.

    How can I have meterpreter set LHOST to my Public IP? While configuring my payload options, I have my LHOST set to my public IP, but meterpreter seems to use my local IP when issuing commands within the session.

    Appreciate any help and I can provide any more information on the set up if need be.

  2. #2
    Very good friend of the forum killadaninja's Avatar
    Join Date
    Oct 2007
    Location
    London, United Kingdom.
    Posts
    526

    Default Re: Connections in Meterpreter while using proxychains?

    Try setting LHOST globally, i.e
    Code:
    msf exploit(handler) > setg LHOST "public ip"
    Sometimes I try to fit a 16-character string into an 8–byte space, on purpose.

  3. #3
    Junior Member Liuser's Avatar
    Join Date
    Apr 2010
    Posts
    58

    Default Re: Connections in Meterpreter while using proxychains?

    Thanks killadaninja -- I will test this out and let you know. I expected this was just a shortcoming in my knowledge on msf.

  4. #4
    Good friend of the forums espreto's Avatar
    Join Date
    Mar 2010
    Location
    Brazil
    Posts
    303

    Default Re: Connections in Meterpreter while using proxychains?

    Use iptables to redirect all that get in your public IP to your internal ip. You can configure your router for it too!

    Take a look at this link, you can use DynDNS or No-IP also.

    Metasploit: Persistent Meterpreter over Reverse HTTPS

    Regards,

    (gdb) disass m(y_br)ain

    ®

  5. #5
    Super Moderator lupin's Avatar
    Join Date
    Jan 2010
    Posts
    2,943

    Default Re: Connections in Meterpreter while using proxychains?

    Is there some reason you aren't using the inbuilt Meterpreter functionality for port forwarding?
    Capitalisation is important. It's the difference between "Helping your brother Jack off a horse" and "Helping your brother jack off a horse".

    The Forum Rules, Forum FAQ and the BackTrack Wiki... learn them, love them, live them.

  6. #6
    Junior Member Focaccia's Avatar
    Join Date
    Jun 2009
    Posts
    63

    Default Re: Connections in Meterpreter while using proxychains?

    Quote Originally Posted by lupin View Post
    Is there some reason you aren't using the inbuilt Meterpreter functionality for port forwarding?
    in my case i have to use a trick like this one, cause my ISP block the router access to customers, so i cant configure port forward and so on...

Similar Threads

  1. How to use proxychains.
    By sickness in forum BackTrack Howtos
    Replies: 15
    Last Post: 03-17-2011, 10:52 AM
  2. Meterpreter Connections
    By utilizatorul in forum Beginners Forum
    Replies: 1
    Last Post: 07-09-2010, 03:10 PM
  3. proxychains
    By imported_greywolf in forum Supporto Software
    Replies: 2
    Last Post: 08-25-2009, 01:01 PM
  4. Proxychains
    By BTuser3 in forum OLD BT4 Feature Requests
    Replies: 5
    Last Post: 06-04-2009, 03:19 PM
  5. 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
  •