CPSA ยท Network device management and Layer 2/3 protocols
Local traffic analysis and PCAP files
Capture filters, display filters and spotting credentials, protocols and anomalies in captures.
Key points
- A packet capture (PCAP) records frames seen on an interface.
- Capture filters: BPF syntax (tcp port 23), decide what is saved; dropped traffic is lost.
- Display filters: Wireshark syntax (tcp.port == 23, ip.addr == 10.0.0.5), only hide packets.
- Look for: clear-text credentials (Telnet, FTP, HTTP forms, POP3), management protocols, unexpected hosts, ARP or DHCP oddities, many SYNs with no replies.
Source: https://www.wireshark.org/docs/wsug_html_chunked/ChWorkBuildDisplayFilterSection.html
Practice questions
Which kind of filter uses BPF syntax and decides what is written to the capture file?
- Display filter
- Capture filter
- Colouring rule
- Name resolution filter
Show answer
Answer: B. Capture filter
Capture filters are BPF and act before saving. Display filters only hide packets that are already stored.
Which protocols commonly expose credentials in clear text in a capture?
- Telnet
- SSH
- FTP
- HTTPS
- SFTP
Show answer
Answer: A. Telnet, C. FTP
Telnet and FTP send logins unencrypted. SSH and HTTPS encrypt the session, so a capture shows only ciphertext.
A Wireshark display filter decides which packets are saved to the capture file.
Show answer
Answer: False
False. Display filters only change what is shown. Packets excluded by a capture filter are never saved.
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.
