Module 3 · Networking for testers · Lesson 12 of 16
Conversations on the wire
Follow a DNS lookup, a TCP handshake and a web request packet by packet, then learn to watch traffic and grab banners.
In this lesson · about 25 minutes
- Describe the SYN, SYN/ACK, ACK handshake
- Explain why plain HTTP and Telnet are findings
- Filter traffic with tcpdump and grab a service banner
Whiteboard · watch and try
Three conversations, packet by packet
Press Play. Notice which conversations anyone on the network could read.
Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.
Watching traffic
tcpdump prints packets in the terminal; Wireshark shows the same thing in a window and can rebuild whole conversations (right-click a packet, then Follow › TCP Stream). Both need root, and both take filters so you only see what matters:
| tcpdump | Wireshark display filter | Shows |
|---|---|---|
| host 192.168.56.101 | ip.addr == 192.168.56.101 | Everything to or from one host |
| tcp port 80 | tcp.port == 80 | Web traffic on port 80 |
| icmp | icmp | Pings |
| udp port 53 | dns | DNS lookups |
Talking to services by hand
Many services introduce themselves the moment you connect. nc -nv <ip> <port> (netcat) opens a raw connection and shows the greeting; curl -I http://<ip>/ asks a web server for just its headers. Both often reveal the exact software and version before you run a single scanner.
Check your understanding0 of 2 correct
Quiz score: 0 of 2
For authorized, lab-based learning only. Tana Roasters and every person, address and password in this course are fictional. Every terminal is simulated. "Kali Linux" is a trademark of OffSec; this course is not affiliated with or endorsed by OffSec.