Skip to content

Instantly share code, notes, and snippets.

@Chapoly1305
Forked from syneart/build_wireshark.sh
Created October 8, 2024 00:50
Show Gist options
  • Save Chapoly1305/b15f8ffd38b792844e8140159fcd6c9d to your computer and use it in GitHub Desktop.
Save Chapoly1305/b15f8ffd38b792844e8140159fcd6c9d to your computer and use it in GitHub Desktop.
BUILD WIRESHARK ON UBUNTU OR DEBIAN
#!/bin/bash
#######################################
# BUILD WIRESHARK ON UBUNTU OR DEBIAN #
#######################################
# 1. KEEP UBUNTU OR DEBIAN UP TO DATE
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y autoremove
# 2. INSTALL THE DEPENDENCIES
sudo apt-get install -y build-essential cmake3 git
# GUI
sudo apt-get install -y qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev
# PCAP
sudo apt-get install -y libpcap-dev
# CRYPT
sudo apt-get install -y libgcrypt20-dev
# GLIB2
sudo apt-get install -y libglib2.0-dev
# LEX & YACC
sudo apt-get install -y flex bison
# 3. BUILD THE WIRESHARK
sudo git clone https://github.com/wireshark/wireshark ~/wireshark
cd ~/wireshark
sudo mkdir build
cd build
sudo cmake ../
sudo make -j`nproc` && {
echo -e "\nBuild Success!"
echo "You can execute the Wireshark by command \"sudo ./wireshark\""
echo "at \"`pwd`/run\""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment