-
-
Save Chapoly1305/b15f8ffd38b792844e8140159fcd6c9d to your computer and use it in GitHub Desktop.
BUILD WIRESHARK ON UBUNTU OR DEBIAN
This file contains hidden or 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/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