Kali, Kismet, and Ubertooth

playswithfir3
2 min readMay 23, 2020

--

So this starts with a YouTube video…

I heard about that talk and when it finally was released on YouTube I watched it and wanted to do that exact thing.

I setup a Raspberry PI with Kali (https://www.kali.org/docs/arm/kali-linux-raspberry-pi/) and added an Alfa and ran Kismet. I’ve still got work to do with all of that… but that leads me to the Ubertooth.

I’ve been interested in it for years, but I finally had an excuse to buy one. With my new Ubertooth One, I plugged it in to my laptop and connected it to my Kali VM and nothing…

I tried:

apt install ubertooth

but it doesn’t like python3.8. I tried to apt install all of the dependencies that are listed on the Ubertooth page but got errors with the python dependencies “python-numpy python-pyside python-qt4” I tried installing from the source anyway but then when it came time to run:

ubertooth-specan-ui

It gave me python errors… It appears the current version of Ubertooth (released December 2018) wants to use python2 and my version of Kali (2019.4) aren’t going to play nice. After much trial and error the fix was pretty easy.

pip install PySide2

Then I followed the build guide for Ubertooth (https://github.com/greatscottgadgets/ubertooth/wiki/Build-Guide) and finally I could see stuff!

kismet spectrum analyzer screenshot

While that looks neat, it isn’t my endgame. So I fired up kismet. No Ubertooth listed as a source. After much more research, I’ve got to build kismet from source to get it to work.

apt install build-essential git libmicrohttpd-dev pkg-config zlib1g-dev libnl-3-dev libnl-genl-3-dev libcap-dev libpcap-dev libnm-dev libdw-dev libsqlite3-dev libprotobuf-dev libprotobuf-c-dev protobuf-compiler protobuf-c-compiler libsensors4-dev libusb-1.0-0-dev python3 python3-setuptools python3-protobuf python3-requests python3-numpy python3-serial python3-usb python3-dev librtlsdr0 libubertooth-dev libbtbb-devcd /tmp
wget https://www.kismetwireless.net/code/kismet-2019-04-R1.tar.xz
tar xf kismet-2019-04-R1.tar.xz
cd kismet-2019-04-R1
ln -s ../ubertooth/host/kismet/plugin-ubertooth ./
KIS_SRC_DIR=/tmp/kismet-2019-04-R1
./configure
make && make plugins

Those commands were based on: (https://penturalabs.wordpress.com/2013/09/01/ubertooth-open-source-bluetooth-sniffing/) and reading both the kismet guide (https://www.kismetwireless.net/docs/readme/quickstart/) and the Ubertooth plugin readme.

Finally to get everything to work with Kismet, I updated my apt sources to use the nightly build and removed my existing version following the docs (https://www.kismetwireless.net/docs/readme/packages/) of course this was after trying to manually compile and several other things.

apt remove kismet kismet-plugins
wget -O - https://www.kismetwireless.net/repos/kismet-release.gpg.key | sudo apt-key add -
echo 'deb https://www.kismetwireless.net/repos/apt/git/kali kali main' | sudo tee /etc/apt/sources.list.d/kismet.list
apt update
apt install kismet

--

--