i cant access to HTB machines

when i try to connect to HTB machines its hanging on initialization sequence completed.

but when i open another terminal and run ifconfig tun0 its showing iam connected to HTB machines ip adress. But iam unable to access HTB machines. please help me out.

Can you share the output of what you are seeing? Are you seeing this error when using openvpn? If you are able to connect to the VPN, what’s the output of ping <machine ip>, or traceroute <machine ip>.

When asking for technical assistance, it’s always a good idea to provide as much information as possible ahead of time to ensure you get prompt and efficient assistance :slight_smile:

yes! but when trying to scan we are not able to get open ports as output…

can someone can help us on this… it would be great.

:slight_smile:

@sharki7 said:

can someone can help us on this… it would be great.

Possibly, but you need to help us to help you. For example, did you see what @mav3n wrote?

@mav3n said:

Can you share the output of what you are seeing? Are you seeing this error when using openvpn? If you are able to connect to the VPN, what’s the output of ping <machine ip>, or traceroute <machine ip>.

When asking for technical assistance, it’s always a good idea to provide as much information as possible ahead of time to ensure you get prompt and efficient assistance :slight_smile:

Without some information, I don’t know how people can assist you.

  • What is your IP address on tun0 (or whatever interface you are connecting with)
  • Which VPN are you using (there are up to six different ones on Login :: Hack The Box :: Penetration Testing Labs)
  • What is the output of traceroute to the HTB box you want to connect
  • Are you VIP/VIP+ and if so, have you started the machine
  • Have you ever been able to connect or is it always like this
  • What output are you getting from the tool you think is causing the problem and what do you think you should be getting (if you are getting “no output”, then double check you’ve run a command as there should be something ).

thanks for the response:)

some of the cut im mentioning here!!

2021-03-23 12:05:13 VERIFY OK: depth=0, C=UK, ST=City, L=London, O=HackTheBox, CN=htb, name=htb, emailAddress=info@hackthebox.eu
2021-03-23 12:05:14 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
2021-03-23 12:05:14 [htb] Peer Connection Initiated with [AF_INET]185.77.152.103:1337
2021-03-23 12:05:15 SENT CONTROL [htb]: ‘PUSH_REQUEST’ (status=1)
2021-03-23 12:05:16 PUSH: Received control message: ‘PUSH_REPLY,route 10.10.10.0 255.255.255.0,route-ipv6 dead:beef::/64,tun-ipv6,route-gateway 10.10.14.1,topology subnet,ping 10,ping-restart 120,ifconfig-ipv6 dead:beef:2::1032/64 dead:beef:2::1,ifconfig 10.10.14.52 255.255.254.0,peer-id 14,cipher AES-256-GCM’
2021-03-23 12:05:16 OPTIONS IMPORT: timers and/or timeouts modified
2021-03-23 12:05:16 OPTIONS IMPORT: --ifconfig/up options modified
2021-03-23 12:05:16 OPTIONS IMPORT: route options modified
2021-03-23 12:05:16 OPTIONS IMPORT: route-related options modified
2021-03-23 12:05:16 OPTIONS IMPORT: peer-id set
2021-03-23 12:05:16 OPTIONS IMPORT: adjusting link_mtu to 1625
2021-03-23 12:05:16 OPTIONS IMPORT: data channel crypto options modified
2021-03-23 12:05:16 Data Channel: using negotiated cipher ‘AES-256-GCM’
2021-03-23 12:05:16 Outgoing Data Channel: Cipher ‘AES-256-GCM’ initialized with 256 bit key
2021-03-23 12:05:16 Incoming Data Channel: Cipher ‘AES-256-GCM’ initialized with 256 bit key
2021-03-23 12:05:16 Preserving previous TUN/TAP instance: tun0
2021-03-23 12:05:16 Initialization Sequence Completed

after this its not even moving forward!

im connected to my phone hotspot!

the traces are getting failed at my gateway

4 192.168.65.248 (192.168.65.248) 47.316 ms 192.168.65.252 (192.168.65.252) 47.288 ms 192.168.65.246 (192.168.65.246) 47.262 ms
5 192.168.65.249 (192.168.65.249) 47.236 ms 192.168.65.251 (192.168.65.251) 47.209 ms 47.183 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 * * *

---------------and its not pinging…
the machine is active and im not VIP in hackthebox.eu

when i tried to scan below otput is getting

Host discovery disabled (-Pn). All addresses will be marked ‘up’ and scan times will be slower.
Starting Nmap 7.91 ( https://nmap.org ) at 2021-03-23 12:07 EDT
Nmap scan report for 10.10.10.216
Host is up (3.4s latency).
All 1000 scanned ports on 10.10.10.216 are filtered

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

hope this information is good to trce my issue…

thanks for helping us! :blush:

@sharki7 said:

thanks for the response:)

Welcome. Hopefully people will be able to help you now.

2021-03-23 12:05:16 Preserving previous TUN/TAP instance: tun0
2021-03-23 12:05:16 Initialization Sequence Completed
after this its not even moving forward!

That looks basically correct. It should mean your traffic is being routed over the VPN. It looks like the route modifications took place.

What happens if you run ifconfig?

im connected to my phone hotspot!

the traces are getting failed at my gateway

4 192.168.65.248 (192.168.65.248) 47.316 ms 192.168.65.252 (192.168.65.252) 47.288 ms 192.168.65.246 (192.168.65.246) 47.262 ms
5 192.168.65.249 (192.168.65.249) 47.236 ms 192.168.65.251 (192.168.65.251) 47.209 ms 47.183 ms

This is a problem. It is going to a 192.168/16 address which means it isn’t going over the VPN.

Either your VPN has closed accidentally or it has been somehow killed, or it isn’t working.

Try route to see if the routing table has anything for 10/8 addresses.

---------------and its not pinging…

Ping isn’t very useful for this.

the machine is active and im not VIP in hackthebox.eu

OK

when i tried to scan below otput is getting

Nmap cant see it because the routing table is sending it to 192.168/16 addresses which means it will never get to the server.

hi tazwake!

below is the message from tun0

ifconfig tun0 127 ⨯
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.10.14.31 netmask 255.255.254.0 destination 10.10.14.31
inet6 fe80::ca1:c95f:4345:e914 prefixlen 64 scopeid 0x20
inet6 dead:beef:2::101d prefixlen 64 scopeid 0x0
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC)
RX packets 3 bytes 264 (264.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 96 bytes 5688 (5.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

and this time ping is also working>>>>
4 bytes from 10.10.10.216: icmp_seq=3 ttl=63 time=250 ms
64 bytes from 10.10.10.216: icmp_seq=4 ttl=63 time=174 ms
64 bytes from 10.10.10.216: icmp_seq=5 ttl=63 time=489 ms
64 bytes from 10.10.10.216: icmp_seq=6 ttl=63 time=193 ms

these are the traces im getting now…
─$ traceroute 10.10.10.216
traceroute to 10.10.10.216 (10.10.10.216), 30 hops max, 60 byte packets
1 10.10.14.1 (10.10.14.1) 172.012 ms 181.962 ms 181.948 ms
2 * * *
3 * * *
4 * * *
5 * * *

is this connected to HTB VPN successfully… and now im gonna try enumeration…

while connecting through USB to my mobile its working it seems … on wifi…

its not routing properly…

nmap iis also able to see … :smile: :smile:

Thanks for the help… this helps us to learn and to help someone,… inspiring…