-
-
Save cameronelliott/e6102cd268677ed94d2688b9f6f93fa7 to your computer and use it in GitHub Desktop.
BUILD WIRESHARK ON UBUNTU OR DEBIAN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
####################################### | |
# BUILD WIRESHARK ON UBUNTU OR DEBIAN # | |
####################################### | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |------------------------------------------------------| | |
# | OS | Wireshark | Test | Last test | | |
# |----------------|----------------|------|-------------| | |
# | Ubuntu 18.04.1 | Commit:8beab04 | OK | 20 Nov 2018 | | |
# | Ubuntu 16.04.5 | Commit:8beab04 | OK | 20 Nov 2018 | | |
# | Ubuntu 14.04.5 | Commit:8beab04 | OK | 20 Nov 2018 | | |
# | Debian 9.6 | Commit:8beab04 | OK | 20 Nov 2018 | | |
# 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 git cmake | |
# C-ARES | |
sudo apt-get install -y libc-ares-dev | |
# CMAKE3 | |
sudo apt-get install -y cmake3 | |
# 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 "\nBuild Success!" | |
echo "You can execute the Wireshark by command \"sudo ./wireshark\"" | |
echo "at \"`pwd`/run\"" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
####################################### | |
# BUILD WIRESHARK ON UBUNTU OR DEBIAN # | |
####################################### | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |------------------------------------------------------| | |
# | OS | Wireshark | Test | Last test | | |
# |----------------|----------------|------|-------------| | |
# | Ubuntu 18.04.1 | Commit:8beab04 | OK | 20 Nov 2018 | | |
# | Ubuntu 16.04.5 | Commit:8beab04 | OK | 20 Nov 2018 | | |
# | Ubuntu 14.04.5 | Commit:8beab04 | OK | 20 Nov 2018 | | |
# | Debian 9.6 | Commit:8beab04 | OK | 20 Nov 2018 | | |
# 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 git cmake | |
# CMAKE3 | |
sudo apt-get install -y cmake3 | |
# 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_f1ap_r15_2_1 | |
cd ~/wireshark_f1ap_r15_2_1 | |
sudo git checkout a679ae6 # F1AP R15.2.1 | |
sudo mkdir build | |
cd build | |
sudo cmake ../ | |
sudo make -j`nproc` && { | |
echo "\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