Reconnaissance and exfiltration
Banner grabbing
Reading the greeting a service sends on connect, to learn the real software and version behind a port.
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.
Read next
- Port scanning Probing an address's ports to learn which services it exposes, and whether a firewall sits in the way.
- SSH Encrypted remote login and commands, on TCP port 22, with passwords or keys.
- HTTP The web's request and response protocol: plain text over TCP unless wrapped in TLS.
- OS fingerprinting Guessing a machine's operating system from how its network code answers a few odd probes.
- Honeypot A decoy host or service nobody legitimate uses, so any touch of it is a high-confidence alert.
- Canary token A planted file, credential or URL that is never used legitimately, so any use of it signals an intruder.
- Getting a foothold Turning reconnaissance of a target into the first shell on it, by picking the one opening worth attacking and using the move it calls for.