CPSA ยท Mapping, fingerprinting and host auditing
Interpreting sniffer and enumeration output
Reading packet captures and enumeration tool output to identify hosts, services and clear-text data.
Key points
- A packet capture shows who talks to whom (addresses), which service (port and protocol), how a session starts (SYN, SYN/ACK, ACK) and, for unencrypted protocols such as FTP, Telnet or HTTP Basic, the credentials and data themselves.
- Enumeration output, for example an SNMP walk, leaks system descriptions, interfaces and accounts.
- Encrypted payloads stay unreadable but metadata remains visible.
Source: https://www.tcpdump.org/manpages/tcpdump.1.html
Practice questions
What does the -n option do in tcpdump?
- Shows addresses and ports numerically instead of resolving names
- Saves the capture to a file
- Captures only the next packet
- Decrypts TLS traffic using the local keys
Show answer
Answer: A. Shows addresses and ports numerically instead of resolving names
-n stops tcpdump converting addresses and port numbers to names, so output shows raw IPs and numeric ports. It does not save, filter or decrypt anything.
Which findings can be read directly from an unencrypted packet capture?
- The IP addresses of hosts that communicate
- The services in use, from ports and protocol behaviour
- HTTP Basic credentials, which are only base64-encoded
- The plaintext inside a TLS session
- The server's private key
Show answer
Answer: A. The IP addresses of hosts that communicate, B. The services in use, from ports and protocol behaviour, C. HTTP Basic credentials, which are only base64-encoded
Addresses, service ports and HTTP Basic credentials (merely base64-encoded) are all visible. Private keys never travel in captured traffic, and a TLS payload stays unreadable without the session keys.
The Authorization header of HTTP Basic authentication is encrypted, so it cannot be read in a capture.
Show answer
Answer: False
False. Basic authentication only base64-encodes 'user:password'. Encoding is not encryption and anyone with the capture can decode it, which is why Basic must run over TLS.
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.
