nmap

I am new to HTB and I am trying to use nmap on the active machine but it's not working .
--> nmap -sV -sC -sT 10.10.10.198
All I get is "the host is down try it with -Pn" , it is running but still no such result.
Even though I am connected to the vpn and it has got tun0
Can anyone help me with this.

Comments

  • Even I am not able to ping it. It is saying 100% packet loss.

  • Try regenerating connection pack and using it.

  • Type your comment> @m1r3x said:

    Try regenerating connection pack and using it.

    Same not working.

  • [email protected]:~# nmap -sV -sC -sP 10.10.10.198
    Starting Nmap 7.80 ( https://nmap.org ) at 2020-09-13 11:18 EDT
    Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
    Nmap done: 1 IP address (0 hosts up) scanned in 3.75 seconds
    [email protected]:~# nmap -sV -sC -sP -Pn 10.10.10.198
    Starting Nmap 7.80 ( https://nmap.org ) at 2020-09-13 11:19 EDT
    Nmap scan report for 10.10.10.198
    Host is up.

    Nmap done: 1 IP address (1 host up) scanned in 0.56 seconds

  • Is this working now?

    TazWake

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

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

  • Type your comment> @TazWake said:

    Is this working now?

    no, I am not getting the actual result which I should get after running nmap. I am trying to ping it but still the same. "100% packet loss" with "0 packets received".

  • So nmap is working but ping isn't? That seems odd. As far as I can remember nmap uses an ICMP echo request to see if the host is up, the same as ping.

    What happens when you try traceroute? Have you confirmed the VPN is working etc?

    TazWake

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

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

  • Type your comment> @TazWake said:

    So nmap is working but ping isn't? That seems odd. As far as I can remember nmap uses an ICMP echo request to see if the host is up, the same as ping.

    What happens when you try traceroute? Have you confirmed the VPN is working etc?

    The VPN is working fine. Plus to make the nmap work I have to use -Pn , I get the result but I don't get the required info like which port is up and the stuff like that.

  • My traceroute output
    [email protected]:~# traceroute 10.10.10.198
    traceroute to 10.10.10.198 (10.10.10.198), 30 hops max, 60 byte packets
    1 dlinkrouter (192.168.0.1) 2.440 ms 6.501 ms 5.822 ms
    2 XiaoQiang (192.168.31.1) 14.085 ms 14.062 ms 14.385 ms
    3 103.221.78.70 (103.221.78.70) 14.323 ms 14.848 ms 14.809 ms
    4 103.221.78.69 (103.221.78.69) 15.474 ms 16.102 ms 16.648 ms
    5 103.221.79.25 (103.221.79.25) 15.910 ms 16.431 ms 17.065 ms
    6 * * *
    7 * * *
    8 * * *
    9 * * *
    10 * * *
    11 * * *
    12 * * *
    13 * * *
    14 * * *
    15 * * *
    16 * * *
    17 * * *
    18 * * *
    19 * * *
    20 * * *
    21 * * *
    22 * * *
    23 * * *
    24 * * *
    25 * * *
    26 * * *
    27 * * *
    28 * * *
    29 * * *
    30 * * *

  • Double check your VPN. The packets have hit an IP address not on the HTB network, that implies the VPN isn't working.

    1 dlinkrouter (192.168.0.1) 2.440 ms 6.501 ms 5.822 ms
    2 XiaoQiang (192.168.31.1) 14.085 ms 14.062 ms 14.385 ms
    3 103.221.78.70 (103.221.78.70) 14.323 ms 14.848 ms 14.809 ms
    4 103.221.78.69 (103.221.78.69) 15.474 ms 16.102 ms 16.648 ms
    5 103.221.79.25 (103.221.79.25) 15.910 ms 16.431 ms 17.065 ms
    

    TazWake

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

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

  • I regenerated it like 3 times.
    So, should I choose another server?

  • What should I do to fix it?

  • I dont know - you said it was working. When you run it, does it say completed? Do you keep it running in the background?

    TazWake

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

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

  • Yeah it was working and I surely do kept it running in the background.
    I am using a kali on a VM, so should I have to configure something to fix it?

  • Not normally. It should be as simple as opening the VPN connection then traffic is passed over it.

    Is this the first time you've tried to use it?

    What messages does openvpn generate?

    TazWake

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

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

  • It is not my first time, I have tried before and worked but it is not working now.
    The openvpn works fine I triple checked it but the same is happening.

  • @XSKULL said:

    It is not my first time, I have tried before and worked but it is not working now.

    Ok - when it worked before, did you do anything differently?

    The openvpn works fine I triple checked it but the same is happening.

    What messages does it show? If it was working, your traffic would be going over the VPN. It isn't.

    TazWake

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

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

  • It is working I don't know what was wrong. I just regenerated the pack and it worked.
    Thanku for ur help.

Sign In to comment.