ubertooth script

master
Paul Walko 2016-09-20 18:55:14 -04:00
commit 91dc86c072
1 changed files with 49 additions and 0 deletions

49
ubertooth_ubuntu160401.sh Executable file
View File

@ -0,0 +1,49 @@
#!/bin/bash
echo 'This script was only tested in Ubuntu 16.04.1. Your mileage may vary'
echo 'This script also assumes you have sudo access, as you will be prompted for your password'
sudo apt-get install git cmake libusb-1.0-0-dev make gcc g++ libbluetooth-dev pkg-config libpcap-dev python-numpy python-pyside python-qt4 wireshark git
git clone https://github.com/greatscottgadgets/libbtbb.git
cd libbtbb
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
cd ../..
git clone https://github.com/greatscottgadgets/ubertooth.git
cd ubertooth/host
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
cd ../../..
sudo apt-get install wireshark wireshark-dev libwireshark-dev cmake
cd libbtbb/wireshark/plugins/btbb
mkdir build
cd build
cmake -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu/wireshark/libwireshark3/plugins ..
make
sudo make install
cd ../../../../..
sudo apt-get install wireshark wireshark-dev libwireshark-dev cmake
cd libbtbb/wireshark/plugins/btbredr
mkdir build
cd build
cmake -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu/wireshark/libwireshark3/plugins ..
make
sudo make install
cd ../../../../..
echo 'Adding user to wireshark group...'
sudo dpkg-reconfigure wireshark-common
sudo gpasswd -a $USER wireshark
echo 'If you plan to use wireshark to capture btle, be sure to follow the directions at the bottom of the page here to enable wireshark to recongize btle packets: https://github.com/greatscottgadgets/ubertooth/wiki/Capturing-BLE-in-Wireshark'