312-50 ยท Scanning networks
OS fingerprinting and banner grabbing
Active vs passive OS fingerprinting (TTL, window size), Nmap -O, banner grabbing with Netcat/telnet/curl, and what banners leak.
Key points
- Active fingerprinting sends probes and compares replies (TTL, TCP window size, options) with a database
- Nmap does it with -O. Passive fingerprinting only analyses captured traffic.
- Banner grabbing connects to a service with Netcat, telnet or curl and reads the greeting or headers, which often reveal software name, version and OS.
Source: https://linux.die.net/man/1/nmap
Practice questions
Which Nmap option turns on OS detection?
- -O
- -sV
- -sC
- -sn
Show answer
Answer: A. -O
-O enables OS detection. -sV detects service versions and -sC runs scripts.
Which details can a service banner commonly leak?
- The software product name
- The software version
- The underlying operating system
- The server's TLS private key
- Rows from the application database
Show answer
Answer: A. The software product name, B. The software version, C. The underlying operating system
Banners often include the product name, its version and sometimes the OS. They do not expose private keys or stored data.
Passive OS fingerprinting works by sending crafted probe packets to the target.
Show answer
Answer: False
False. Passive fingerprinting only observes traffic already crossing the network; sending crafted probes is active fingerprinting.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
