Open In App

Introduction to Wireshark

Wireshark is a software tool used to monitor the network traffic through a network interface. It is the most widely used network monitoring tool today. Wireshark is loved equally by system administrators, network engineers, network enthusiasts, network security professionals and black hat hackers. 

The extent of its popularity is such, that experience with Wireshark is considered as a valuable/essential trait in a computer networking-related professional. 



There are many reasons why Wireshark is so popular : 

  1. It has a great GUI as well as a conventional CLI(T Shark).
  2. It offers network monitoring on almost all types of network standards (ethernet, wlan, Bluetooth etc)
  3. It is open-source with a large community of backers and developers.
  4. All the necessary components for monitoring, analyzing and documenting the network traffic are present. It is free to use.

History of Wireshark 

Wireshark was started with the intention of developing a tool for closely analyzing network packets. It was started by Gerald Combez in 1997. Its initial name was Ethereal. It was initially released in July 1998 as version 0.2.0. Due to the support it got from the developer community, it grew rapidly and was released as version 1.0 in 2008, almost two years after it was renamed to Wireshark. 

Wireshark installation: 

Windows :  



On Linux: 




<package-manager-name> install Wireshark 

Wireshark installation in ubuntu/ Linux :

Open terminal in your system or press ALT + CTRL + T and run the below command:

sudo add-apt-repository ppa:wireshark-dev/stable

Update the repository:

sudo apt-get update

Install wire shark using the below command:

sudo apt-get install wireshark

To run the wire shark use the below command

sudo wireshark

You can opt for a security-based Linux OS that has Wireshark pre-installed, like Kali Linux.

The basic features of Wireshark are:

Packet Monitor: This segment visually shows the packets flowing inside the network. There are color codes for each type of packet. The packets are shown with the following information : 
1. Source address 
2. Destination address 
3. Packet type 
4. Hex dump of the packet 
5. Contents of the packet in text 
6. Source port(if applicable) 
7. Destination port(if applicable)

Import from a capture file: This feature lets you import packets dump from a capture file to analyse further. There are many formats supported by Wireshark, some of them are:

Export to a capture file: Wireshark lets you save the results as a capture file to continue working on them at later point of time. The supported formats are: 

As a beginner, you should focus only on familiarising yourself with the basics of Wireshark UI and other basics( the formats given here are for giving a glance, you don’t have to do anything with them at this time).

With these basics done you can now start playing around with the tool. Launch Wireshark, select an interface( select one that is currently communicating, which can be verified by the zigzag pattern in front of the name of the interface) and click on the fin icon to start capturing packets. Save the result as a capture file and exit after you are done seeing the traffic. This concludes the fundamentals.


Article Tags :