Skip to content

Instantly share code, notes, and snippets.

@FrankSpierings
Last active October 10, 2016 07:38
Show Gist options
  • Save FrankSpierings/9770ffbdcd169e03800c5ecffb8b149b to your computer and use it in GitHub Desktop.
Save FrankSpierings/9770ffbdcd169e03800c5ecffb8b149b to your computer and use it in GitHub Desktop.
Wireshark 2.0 master + SAP dissector
#!/bin/bash
mkdir wireshark-sap
cd wireshark-sap
git clone https://github.com/CoreSecurity/SAP-Dissection-plug-in-for-Wireshark.git
mkdir wireshark-master-2.0
cd wireshark-master-2.0
git init
git remote add -t master-2.0 -f origin https://github.com/wireshark/wireshark.git
git checkout master-2.0
ln -s $(pwd)/../SAP-Dissection-plug-in-for-Wireshark/ plugins/sap
git apply plugins/sap/wireshark-master-2.0.patch
mkdir build
cd build
export CXX=clang++
export CC=clang
MYDEST=/opt/wireshark-master-2.0-sap
cmake -DCMAKE_INSTALL_PREFIX=${MYDEST} -DCMAKE_INSTALL_RPATH=${MYDEST}/lib -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE ..
make -j$(cat /proc/cpuinfo | grep processor | wc -l)
sudo make install
/opt/wireshark-master-2.0-sap/bin/wireshark-gtk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment