Bitzu

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

Single choice

Which Nmap option turns on OS detection?

  1. -O
  2. -sV
  3. -sC
  4. -sn
Show answer

Answer: A. -O

-O enables OS detection. -sV detects service versions and -sC runs scripts.

Select all that apply

Which details can a service banner commonly leak?

  1. The software product name
  2. The software version
  3. The underlying operating system
  4. The server's TLS private key
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module