What Is Wireshark?

Originally known as Ethereal, Wireshark displays data from hundreds of differentprotocolson all major web link types.

Data packets can be viewed in real-time or analyzed offline.

Wireshark can be downloaded at no cost from the Wireshark Foundation website for both macOS and Windows operating systems.

Wireshark supports dozens of capture/trace file formats, includingCAPandERF.

Integrated decryption tools display the encrypted packets for several common protocols, includingWEPandWPA/WPA2.

You’ll see the latest stable release and the current developmental release.

A screenshot of the Wireshark install screen with the “Install Npcpap” option highlighted

Unless you’re an advanced user, download the stable version.

During the Windows setup process, choose to installWinPcaporNpcapif prompted as these include libraries required for live data capture.

You must be logged in to the unit as an administrator to use Wireshark.

A screenshot of Wireshark’s info screen in Windows 10 with the “Run as administrator” option highlighted

In Windows 10, search for Wireshark and selectRun as administrator.

In macOS, right-smack the app icon and selectGet Info.

In theSharing & Permissionssettings, give the adminRead & Writeprivileges.

A screenshot of Wireshark with the Capture menu highlighted

The program is also available forLinux and other UNIX-like platformsincluding Red Hat, Solaris, and FreeBSD.

The binaries required for these operating systems can be found toward the bottom of theWireshark download pageunder theThird-Party Packagessection.

you might also download Wireshark’s source code from this page.

A screenshot of Wireshark capture interface window with the Start button highlighted

Displayed to the right of each is an EKG-style line graph that represents live traffic on that internet.

To select multiple networks, hold theShiftkey as you make your selection.

In theWireshark Capture Interfaceswindow, selectStart.

A screenshot of Wireshark with the Save As command and Export options highlighted

There are other ways to initiate packet capturing.

Select theshark finon the left side of the Wireshark toolbar, press Ctrl+E, or double-hit the data pipe.

SelectFile>Save Asor choose anExportoption to record the capture.

A screenshot of Wireshark’s capture interface with the Stop button highlighted

To stop capturing, pressCtrl+E.

Or, go to the Wireshark toolbar and grab the redStopbutton that’s located next to the shark fin.

A broken horizontal line signifies that a packet is not part of the conversation.

The captured data interface contains three main sections: the packet list pane (the top section); the packet details pane (the middle section); and the packet bytes pane (the bottom section).

Thishex dumpcontains 16 hexadecimal bytes and 16 ASCII bytes alongside the data offset.

Any bytes that cannot be printed are represented by a period.

How to Use Wireshark Filters

Capture filters instruct Wireshark to only record packets that meet specified criteria.

A screenshot of Wireshark with the Time Display Format command and options highlighted

These are referred to as display filters.

Wireshark provides a large number of predefined filters by default.

For example, if you want to display TCP packets, typetcp.

A screenshot of Wireshark with the packets pane highlighted

Another way to choose a filter is to select thebookmarkon the left side of the entry field.

ChooseManage Filter ExpressionsorManage Display Filtersto add, remove, or edit filters.

Capture filters are applied as soon as you begin recording connection traffic.

A screenshot of Wireshark with the Packet Details pane highlighted

To apply a display filter, go for the right arrow on the right side of the entry field.

This quickly locates certain packets within a saved set by their row color in the packet list pane.

Wireshark comes with about 20 default coloring rules, each can be edited, disabled, or deleted.

A screenshot of Wireshark with the Packet Bytes panel highlighted

SelectView>Coloring Rulesfor an overview of what each color means.

you’re free to also add your own color-based filters.

SelectView>Colorize Packet Listto toggle packet colorization on and off.

A screenshot of Wireshark’s Packet Bytes window with the “As bits” option highlighted

Statistics in Wireshark

Other useful metrics are available through theStatisticsdrop-down menu.

A screenshot of Wireshark with the filters bar highlighted

A screenshot of Wireshark with the Manage Display Filters and Manage Filter Expressions commands highlgihted

A screenshot of Wireshark with the history arrow highlighted

Wireshark coloring rules dialog opened in front of main Wireshark window

A screenshot of Wireshark’s View menu with the Coloring Rules command highlighted

Several other useful metrics are available via the Statistics drop-down menu found toward the top of the screen.