NDC & PKI
[Day 1] 4. Wireshark
D
DITISS Admin- Creator: Gerald Combs.
- Previous Name: Ethereal (older version of Wireshark).
- Purpose: A packet capturing and analyzing tool.
How Wireshark Works
- Wireshark cannot operate on its own; it requires libraries like to function.
npcap
What is a Library in Computer Science?
- A library adds functionalities to your main module or application.
- Example: Installing different apps on your phone adds specific features to the device.
- Examples of Libraries:
- C Headers: Extend the functionality of a C program.
- Python Modules: Provide additional features like math operations, networking, etc.
Packet Capturing Libraries (pcap)
Packet capturing requires libraries, specific to the platform:
| Type | Libraries | | -------- | ------------------ | | General |
pcapwinpcapnpcaplibpcapairpcap- Without , Wireshark won’t display any options in the dashboard.
npcap
What is an Interface?
- An interface enables communication between two different zones or namespaces.
- Example: Connecting a computer to a network.
- Selecting the correct interface is critical for capturing the right traffic in Wireshark.
Wireshark Interface Layout
When capturing packets in Wireshark, you will see three primary windows:
- Packet List Window: Displays the list of captured packets.
- Packet Details Window: Shows detailed information for a selected packet.
- Packet Bytes Window: Displays the raw data of the packet in hexadecimal format.
Packet Filtering in Wireshark
Wireshark provides two types of filters:
- Capture Filter: Filters traffic during the capturing process. Only the specified traffic is captured.
- Example: Capture only TCP traffic using .
tcp
- Example: Capture only TCP traffic using
- Display Filter: Captures all traffic but displays only what you want to see.
- Example: Show only HTTP traffic using .
http
- Example: Show only HTTP traffic using
tcpdump
- Overview: tcpdump is the predecessor of Wireshark, often referred to as the "father" of Wireshark.
- Purpose: Packet capturing tool, similar to Wireshark but without a GUI (command-line-based).
- Significance: It is considered the first Intrusion Detection System (IDS).
Read Next
8/26/2026
[Day 1] 5. Hash Function
### **What is Hashing?** - **Hashing is not encryption.** - A hash function is a mathematical function that takes a **variable-length input**...
8/26/2026
[Day 1] 6. TCPdump
### **1. About TCPDump** - **TCPDump** is a command-line packet capturing tool. - It is considered the **father of Wireshark** but lacks a GUI....