How To Set-Up Kali Linux For Sniffing GSM Traffic
This guide outlines the steps to set up HackRF on Kali Linux, enabling effective sniffing of GSM traffic.
Introduction
GSM, initially known as Groupe Spécial Mobile, is a standard developed by the European Telecommunications Standards Institute to underpin protocols for second-generation (2G) digital cellular networks used by mobile devices. Learn more about GSM on Wikipedia.
This tutorial focuses on setting up HackRF, a popular device for receiving GSM signals, on Kali Linux.
1. Install gnuradio Application
The first step involves installing necessary packages for setting up HackRF. Open a terminal window and execute the following commands to install GNU Radio and other related software. GNU Radio is a free toolkit for building software-defined radios.
sudo apt-get install gnuradio gnuradio-dev gr-osmosdr gr-osmosdr gqrx-sdr wireshark
2. Install gr-gsm Application
Before cloning and installing the gr-gsm
software, install additional dependencies required.
sudo apt-get install gnuradio-dev gr-osmosdr gr-osmosdr gqrx-sdr wireshark pkg-config libosmocore libosmocore-dev automake
Clone the gr-gsm
repository and compile the software:
git clone https://github.com/ptrkrysik/gr-gsm.git
cd gr-gsm
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
Next, create a config file ~/.gnuradio/config.conf
and add the necessary configuration.
[grc]
local_blocks_path=/usr/local/share/gnuradio/grc/blocks
3. Install kalibrate-hackrf
Clone and compile kalibrate-hackrf
, a tool for calibrating HackRF devices to specific frequencies.
git clone https://github.com/scateu/kalibrate-hackrf.git
cd kalibrate-hackrf
./bootstrap
./configure
make
sudo make install
4. Install HackRF
Install HackRF and its libraries with the following command:
sudo apt-get install hackrf libhackrf-dev libhackrf0
5. Testing Connection
Verify the setup by checking if HackRF is correctly recognized by your system.
hackrf_info