Ubertooth One 安装使用教程(1)

使用git方法构建环境

至于不用2020-12-R1等更新固件的原因,是本人在安装时的一点经验。在安装指定年份(比如2018-12-R1)的库时,有可能出现一些插件和包不匹配的报错,较难处理。这里建议使用git构建,其效果原理相同。本次原方法取自于Building from git — Ubertooth documentation,按照2020-12-R1安装在网站上也有。

预备条件

在创建libbtbb和Ubertooth tools之前必须先装好这些预备环境。其中许多都可以从操作系统的软件包存储库中获得,例如:  

Debian/Ubuntu

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

Fedora / Red Hat

su -c "yum install git libusb1-devel make gcc wget tar bluez-libs-devel"

Mac OS X 可以用 MacPorts 或者 Homebrew来安装需要的包:

sudo port install git libusb wget cmake python27 py27-numpy py27-pyside
or
brew install git libusb wget cmake pkg-config homebrew/dupes/libpcap

libbtbb

桌面运行终端:

libbtbb用来确保ubertooth tools的正常使用:

git clone https://github.com/greatscottgadgets/libbtbb.git
cd libbtbb
mkdir build
cd build
cmake ..
make
sudo make install

Linux 用户: 如果你是第一次安装,可能会收到关于库的错误,这时候运行: 

sudo ldconfig

Ubertooth tools

桌面运行终端:

Ubertooth存储库包含用于嗅探蓝牙包、配置Ubertooth和更新固件的主机代码。 默认情况下,使用以下方法构建和安装这三种方法  :

git clone https://github.com/greatscottgadgets/ubertooth.git
cd ubertooth/host
mkdir build
cd build
cmake ..
make
sudo make install

若出错则同上执行命令:

sudo ldconfig

Wireshark

Wireshark 1.12版本和更新版本默认包含了Ubertooth BLE插件。 只需做一点工作,就可以将BLE从Ubertooth直接捕获到Wireshark中。  

Wireshark的BTBB和BR/EDR插件允许使用Kismet捕获的蓝牙基带流量在Wireshark的GUI中进行分析和分析。 它们与Ubertooth和libbtbb软件的其他部分是分开构建的。 传递给cmake的MAKE_INSTALL_LIBDIR目录因系统的不同而不同,但它应该是已经存在的Wireshark插件的位置,例如asn1.so和ethercat.so文件。  

桌面运行终端:

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

对于BT BR/EDR 接口 梅开二度:

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

第三方软件

有很多第三方软件支持Ubertooth。

有些支持Ubertooth的开箱即用,而有些则需要构建插件。

慢速更新......

 

 

posted @ 2021-12-14 18:19  kesou__0089  阅读(737)  评论(0)    收藏  举报