pentesting, updated
OS fingerprinting
Identify the target operating system from TCP/IP stack behaviour and open-service clues.
Goal
Narrow down the target OS and version to tailor later exploitation and evasion choices.
How to test
nmap -O 10.10.10.5 # active TCP/IP stack fingerprint (needs 1+ open and 1 closed port)
ping -c1 10.10.10.5 # TTL alone is a quick hint: ~64 Linux, ~128 Windows, ~255 network gear
nmap -sV 10.10.10.5 # service banners often name the OS directly (SMB, SSH)
What to look for
A TTL and window-size combination consistent with one OS family, SMB/RDP implying Windows, or an SSH banner naming a specific OpenSSH/distro build.
Notes
Active fingerprinting is one of the noisier nmap features — skip -O on a stealth-constrained engagement and rely on passive clues (TTL, banners) instead.