3.1 Installing Wireshark
Wireshark is a software tool that captures wireless traffic and reproduces it in a readable format. The following are the steps to install the Wireshark tool on a computer.
Windows/macOS
- For downloading Wireshark, go to Wireshark.
- Click the release package for the corresponding operating system from the stable release list.
- The download starts automatically.
- Install the package.
Ubuntu Linux
- Open the Terminal, then enter
sudo apt update
.Figure 3-1. Wireshark Installation in Linux - Enter
sudo apt install wireshark
.Figure 3-2. Wireshark Installation in Linux - Enter
sudo wireshark
; this command will open the Wireshark application. - Type “yes” when the installer asks “Should non-superusers be able to capture packets?”. This ensures that packet capture is available to all users in the wireshark system group.
Figure 3-3. Prompt - Add the correct user to the wireshark user group. For example, type
sudo usermod -a -G wireshark $USER
. This command asks the system to add the current user to the wireshark group. This is necessary because capturing network packets requires root privileges.Note:- If the user encounters an error indicating “group wireshark does not exist”, the wireshark group is not created on the system. To resolve this issue, the user needs to create the group by entering the command
groupadd wireshark
. - Replace
$USER
with the actual username if the environment variable is not set. Alternatively, the user can use$(whoami)
to automatically insert the name of the current user (for example,sudo usermod -a -G wireshark $(whoami))
.Figure 3-4. Creating Wireshark Group
- If the user encounters an error indicating “group wireshark does not exist”, the wireshark group is not created on the system. To resolve this issue, the user needs to create the group by entering the command
- Add the correct user to the dialout user group by entering
sudo usermod -a -G dialout $USER
/sudo usermod -a -G dialout $(whoami)
in the terminal.
Note: Restart the computer to apply the new user group settings.