Skip to content
Buy me a coffee

Packets

tag: networkingtag: beginnerstag: wireshark

Think of an envelope inside an envelope:

Layer Holds Covered in
IP header Source and destination IP addresses IP addresses
TCP or UDP header Source and destination ports Ports
Payload The actual data: part of a web page, a DNS question, a file

If the payload is encrypted (HTTPS, for example), you still see the addresses, ports and sizes, but not the content.

  1. Install Wireshark on your own computer.
  2. Start a capture on your Wi-Fi or Ethernet interface.
  3. In a terminal, run nslookup example.com.
  4. Stop the capture and type dns in the filter bar. You’ll see your question and the answer.

Useful filters:

Filter Shows
dns DNS lookups and answers
tcp.port == 443 HTTPS traffic
ip.addr == 203.0.113.5 Anything to or from one address
http Unencrypted web traffic
  • Sandbox reports come with captures. A PCAP file shows what a sample tried to reach and what it sent.
  • Metadata tells a story even when content is encrypted: who, when, how often and how much.
  • Beacons have a rhythm. Malware checking in with its server at regular intervals stands out in a timeline.

That’s Networking 101. Continue with File Types 101.

One Reverse Look

"A little learning is a dangerous thing." ~ A. Pope

One Reverse Look · Made with ❤ · Your friendly knowledge seeker