笔者使用的是目前最新版的Ubuntu20.04 以及 某宝50块钱买的 RTL2832U
硬件部分可选 四选一
USB DVB-T key (RTL2832U)
OsmocomBB phone
HackRF
BladeRF
首先安装Git
sudo apt-get install git
下载法国黑客写的Python程序【IMSI捕手】
git clone https://github.com/Oros42/IMSI-catcher.git
cd IMSI-catcher
安装Python3运行库
sudo apt install python3-numpy python3-scipy python3-scapy
安装gr-gsm需要的运行环境
sudo apt-get install -y \
cmake \
autoconf \
libtool \
pkg-config \
build-essential \
python-docutils \
libcppunit-dev \
swig \
doxygen \
liblog4cpp5-dev \
gnuradio-dev \
gr-osmosdr \
libosmocore-dev \
liborc-0.4-dev \
swig
查看GunRadio版本
gnuradio-config-info -v
如果版本为3.8或者3.8+
git clone -b maint-3.8 https://github.com/velichkov/gr-gsm.git
如果低于3.8
git clone https://git.osmocom.org/gr-gsm
然后来编译gr-gsm
cd gr-gsm
mkdir build
cd build
cmake ..
make -j 4
sudo make install
sudo ldconfig
echo 'export PYTHONPATH=/usr/local/lib/python3/dist-packages/:$PYTHONPATH' >> ~/.bashrc
尝试运行 IMSI_catcher 需进入此目录 如果运行缺啥 就apt-get
sudo python3 simple_IMSI-catcher.py -s
使用gr-gsm搜索基站
grgsm_scanner
搜索到后 开始监听这个频点
grgsm_livemon -f 925.4M
如果出现下面类似数据 就说明成功了,如果没出现 换个频点试试
15 06 21 00 01 f0 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
25 06 21 00 05 f4 f8 68 03 26 23 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
49 06 1b 95 cc 02 f8 02 01 9c c8 03 1e 57 a5 01 79 00 00 1c 13 2b 2b