Phase 1: Initial Reconnaissance
Step 1.1: Port Scanning
Open your terminal and execute:
sudo nmap -sC -sV <TARGET_IP> -oN nmap_scan.txt
Expected Output:
Starting Nmap 7.95 ( https://nmap.org )
Nmap scan report for <TARGET_IP>
Host is up (0.21s latency).
Not shown: 998 closed tcp ports (reset)
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 8.9p1 Ubuntu 3ubuntu0.13 (Ubuntu Linux; protocol 2.0)
80/tcp open http Apache httpd 2.4.52
|_http-title: Did not follow redirect to http://conversor.htb/
Service Info: Host: conversor.htb; OS: LinuxStep 1.2: Configure DNS Resolution
The scan reveals a hostname conversor.htb. Add it to your hosts file:
echo "<TARGET_IP> conversor.htb" | sudo tee -a /etc/hostsVerify it's added:
tail -n 1 /etc/hostsExpected Output:
<TARGET_IP> conversor.htb
