Service Version Detection
What you'll learn: How to identify the exact versions of applications running on discovered open ports to understand potential vulnerabilities.
Why Version Detection Matters
After scanning reveals open ports (like 80, 22, or 3306), the next question is: what's actually running there? Knowing that port 22 is open tells you SSH might be there, but knowing it's OpenSSH 7.4 versus OpenSSH 9.0 is critical—older versions may have known vulnerabilities you can research.
Think of it like seeing a locked door versus reading the manufacturer's label on the lock. The label tells you which picking techniques might work.
Banner Grabbing
The simplest technique is banner grabbing—connecting to a service and reading its welcome message. Many services voluntarily announce themselves:
When you connect to an FTP server, it might say: 220 ProFTPD 1.3.5 Server
An HTTP server might respond with: Server: Apache/2.4.29 (Ubuntu)
This is like a building displaying its alarm system brand on the front window—helpful for you, but also for attackers.
Probing Techniques
When services don't advertise themselves, you send carefully crafted requests and analyze responses:
- Protocol-specific probes: Sending HTTP GET requests, SSH handshakes, or database queries
- Response fingerprinting: Analyzing timing, error messages, or behavior patterns unique to specific versions
- Known signatures: Comparing responses against databases of known application behaviors
Tools like Nmap's -sV flag automate this by trying hundreds of probes and matching responses against signature databases.
The Intelligence Value
Version detection transforms your reconnaissance from "there's a web server" to "there's Apache 2.4.29 with known CVE-2019-0211 privilege escalation." This specificity guides everything that follows.
Key Takeaway: Service version detection uses banner grabbing and intelligent probing to identify exact application versions on open ports, turning generic port information into actionable intelligence about potential vulnerabilities.