From 91dc86c07216737ef4c59b0c1deeec6c493e5f21 Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Tue, 20 Sep 2016 18:55:14 -0400 Subject: [PATCH] ubertooth script --- ubertooth_ubuntu160401.sh | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100755 ubertooth_ubuntu160401.sh diff --git a/ubertooth_ubuntu160401.sh b/ubertooth_ubuntu160401.sh new file mode 100755 index 0000000..60152f6 --- /dev/null +++ b/ubertooth_ubuntu160401.sh @@ -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'