A recon note that says "only SSH and a web server" is a claim, and it is only as good as the scan behind it. A default nmap run checks the 1,000 most common TCP ports. Everything outside that list stays invisible.

What the default scan misses

Admin consoles, internal APIs and forgotten debug services often sit on odd ports: 8443, 9200, 5985, or something in the 40000s that a developer picked and never changed. A top-1000 scan reports the host as quiet. You move on, and the way in was on a port you never asked about.

Two passes

First, find what is open, fast, across every port:

nmap -p- --min-rate 1000 -oN all-ports.txt 10.10.10.5 

-p- means ports 1 to 65535. --min-rate 1000 keeps it quick. On a fragile or rate-limited network, drop it. A scan that knocks over the target or gets you blocked is worse than a slow one.

Second, spend the slow detection only on the ports that answered:

nmap -sC -sV -p 22,80,8443 -oN detail.txt 10.10.10.5 

-sC runs the default scripts and -sV probes service versions. Against 65,535 ports that is a long wait. Against three ports it takes seconds.

The address is a placeholder from a lab-style range. Scan only hosts you are authorised to test.

Read each port as a question

An open port is a lead, and each lead needs an answer. What is the service? Which version? Who can reach it? An 8443 with a login page and an 8443 with a default Tomcat page are different findings, so write the answer next to the port before you reach for an exploit. Keep both -oN files too. They are what you cite when you write the report.

The UDP gap

Everything above is TCP. UDP needs its own pass, and a full sweep is slow, so start narrow:

nmap -sU --top-ports 20 10.10.10.5 

That is enough to catch things like SNMP on 161 that a TCP scan can never show you.

Save the evidence

Both passes write to files with -oN, and that is deliberate. When a finding shows up three days later, you want to point at the exact scan that found the port, with its timestamp and flags. A recon note that says "port 8443 open" with no output behind it is hard to defend in a report. A recon note with all-ports.txt attached is not. It also saves rescanning a target that may have changed in between.

Practise and go further

The free NimbusOps Kill Chain CTF on Codelivly chains recon and information-disclosure findings step by step, which makes the habit stick. The Junior Penetration Tester path lays out the order of work. For the whole beginner sequence of recon, Nmap scanning, Metasploit exploitation and reporting, there is the penetration testing book for beginners.