The Wayback Machine - https://web.archive.org/web/20260427094013/https://www.geeksforgeeks.org/ethical-hacking/intro-to-wireshark/

Introduction to Wireshark

Last Updated : 24 Mar, 2026

Wireshark is a free and open-source network protocol analyzer used to capture and inspect network traffic in real time. It helps engineers, analysts, and security professionals understand what is happening inside a network at the packet level.

  • Captures live network traffic across multiple interfaces
  • Provides deep visibility into protocols and packet structure
  • Helps troubleshoot network issues and analyze performance
  • Essential for security investigations and protocol debugging

Key Features

Wireshark analyzes network packets in detail, similar to how a voltmeter inspects electrical signals.

1. Live Capture & File Input

  • Capture from Ethernet, Wi-Fi (monitor mode), USB, Bluetooth, loopback, etc.
  • Supports pcap/pcapng formats; compatible with tcpdump and tshark
  • Can open, save, merge, and replay capture files

2. Protocol Decodes & Dissectors

  • Supports hundreds of protocols: Ethernet, IP, TCP/UDP, HTTP, VoIP, USB & more
  • Add custom protocol dissectors using plugins or Lua scripts

3. Filtering & Search Tools

  • Capture filters (BPF) to limit traffic before capture
  • Display filters for precise viewing (e.g., http, ip.addr == 192.168.1.1)
  • Powerful search, follow-stream, and packet-tracing tools

4. Color Coding & Customization

  • Color rules to highlight errors, retransmissions, suspicious traffic
  • Custom profiles for columns, filters, and layouts

5. Statistics & Analysis Tools

  • Protocol hierarchy, IO graphs, flow graphs
  • VoIP analysis, wireless metrics, expert system alerts
  • Export stats for reporting or forensic analysis

Interface Overview (Core GUI Components)

Wireshark’s main window is organized into several interactive areas:

ws_main_window

1. Menu Bar

  • Full access to capture, filters, statistics, telephony tools, wireless tools

2. Main Toolbar

  • Quick buttons for start/stop capture, open/save files, restart capture
menu_bar

3. Filter Toolbar

  • Capture filter (before capture)
  • Display filter (after capture) with real-time validation
toolbar

4. Interface List (Start Screen)

  • Shows available network adapters and their current traffic
  • Select interface + optional capture filter before starting
wireshark-interface-list-diagram

Main Pane Layout (post‑capture)

You can also enable the Packet Diagram Pane to get a visual, textbook-style representation of packet headers and payload structure.

menu_post_cap

1. Packet List Pane

  • Table view of all packets: Time, Source, Destination, Protocol, Info
  • Columns fully customizable

2. Packet Details Pane

  • Layer-by-layer breakdown: Ethernet -> IP -> TCP/UDP -> Application
  • Expandable and clickable fields
detail_pane

3. Packet Bytes Pane

  • Raw hex + ASCII view
  • Linked highlighting with Details Pane
bytes_pane

4. Packet Diagram Pane

  • Visual representation of packet structure (header + payload)

5. Status Bar

  • Shows packet stats, filter validation, dropped packets, file path
Statusbar

Usage Workflow

  1. Open Wireshark -> choose a network interface
  2. Apply capture filter (optional)
  3. Start Capture -> let traffic flow
  4. Stop Capture when done
  5. Apply display filters to locate specific packets
  6. Inspect packet in details & bytes view
  7. Use statistics tools for flow graphs, protocol breakdowns, etc.
  8. Save or export the capture for documentation or further analysis
Comment