-
-
Save caio-vinicius/ca6583f344ac7ac70aec09aa252faa1a 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 | |
# This shell script is made by SyneArt <[email protected]> | |
####################################### | |
# BUILD WIRESHARK ON UBUNTU OR DEBIAN # | |
####################################### | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |------------------------------------------------------| | |
# | OS | Wireshark | Test | Last test | | |
# |----------------|----------------|------|-------------| | |
# | Ubuntu 18.04.1 | Commit:e03a590 | OK | 07 Feb 2021 | | |
# | Ubuntu 20.04.1 | Commit:a3b2afa | OK | 05 Nov 2020 | | |
# | 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 | |
# Dev file (On Ubuntu 20.04) | |
sudo apt-get install -y libc-ares-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 | |
# PCRE2 (On Ubuntu 18.04) | |
sudo apt-get install -y libpcre2-dev | |
# HTTP/2 protocol (Ubuntu >= 16.04) | |
sudo apt-get install -y libnghttp2-dev | |
# 3. BUILD THE WIRESHARK | |
git clone https://github.com/wireshark/wireshark ~/wireshark | |
cd ~/wireshark | |
mkdir build | |
cd build | |
cmake ../ | |
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 | |
# This shell script is made by SyneArt <[email protected]> | |
####################################### | |
# BUILD WIRESHARK ON UBUNTU OR DEBIAN # | |
####################################### | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |------------------------------------------------------| | |
# | OS | Wireshark | Test | Last test | | |
# |----------------|----------------|------|-------------| | |
# | Ubuntu 20.04.1 | Commit:a679ae6 | OK | 05 Nov 2020 | | |
# | Ubuntu 18.04.1 | Commit:a679ae6 | OK | 20 Nov 2018 | | |
# | Ubuntu 16.04.5 | Commit:a679ae6 | OK | 20 Nov 2018 | | |
# | Ubuntu 14.04.5 | Commit:a679ae6 | OK | 20 Nov 2018 | | |
# | Debian 9.6 | Commit:a679ae6 | 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 | |
# Dev file (On Ubuntu 20.04) | |
sudo apt-get install -y libc-ares-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 | |
git clone https://github.com/wireshark/wireshark ~/wireshark_f1ap_r15_2_1 | |
cd ~/wireshark_f1ap_r15_2_1 | |
git checkout a679ae6 # F1AP R15.2.1 | |
mkdir build | |
cd build | |
cmake -DDISABLE_WERROR=true ../ # g++ | |
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