Bitzu

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

Single choice

What does the -n option do in tcpdump?

  1. Shows addresses and ports numerically instead of resolving names
  2. Saves the capture to a file
  3. Captures only the next packet
  4. 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.

Select all that apply

Which findings can be read directly from an unencrypted packet capture?

  1. The IP addresses of hosts that communicate
  2. The services in use, from ports and protocol behaviour
  3. HTTP Basic credentials, which are only base64-encoded
  4. The plaintext inside a TLS session
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More CPSA topics in this module