Concepts / Reconnaissance and exfiltration

Reconnaissance and exfiltration

Banner grabbing

Also called service banner, version detection, fingerprinting

Reading the greeting a service sends on connect, to learn the real software and version behind a port.

The port number is a guess, the banner is what answers
The port number is a guess, the banner is what answers

A scanner names a port from a table. The first bytes the service sends name the real software and version, whatever port it sits on.

Banner grabbing is connecting to an open port and reading the first bytes the service sends, to learn the real software and version (nmap -sV). A port number is only a convention: a scanner labels 22 "ssh" from a table, not from what answers. An SSH server's SSH-2.0-<software> line or a web server's response headers name the actual software, and so which known weaknesses to check for.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab