This box is a “Medium” Linux box by HackTheBox
User flag #
usual first scans : #
mkdir scans loot shares
nmap -A 10.10.11.79 -vvv -oA scans/first_scan
nmap -A 10.10.11.79 -vvv -p- -oA scans/full_scan
nmap -sU -A 10.10.11.79 --top-port 100 -vvv -oA scans/first_scan_udp
Outputs :
PORT STATE SERVICE REASON VERSION
21/tcp open ftp syn-ack ttl 63 vsftpd 3.0.5
80/tcp open http syn-ack ttl 63 nginx 1.18.0 (Ubuntu)
| http-methods:
|_ Supported Methods: GET HEAD POST OPTIONS
|_http-title: Did not follow redirect to http://era.htb/
|_http-server-header: nginx/1.18.0 (Ubuntu)
Let’s edit the /etc/hosts
file :