2G GSM Sniffing Using Software Defined Radio
2G GSM Sniffing Using Software Defined Radio
2G GSM Sniffing Using Software Defined Radio
This blog content mainly deals with the implementation of GSM Sniffing using
gr-GSM module and further validating using USRP X310.
By the end of this blog , we will be able to sniff out the network for 2nd
generation (I.e. performing the process of capturing and monitoring the data
which passes through the network using Sniffing tool). The information like the
location of mobile station and the identification of BTS to which the mobile
station is currently connected with Source port address and destination port
address can be extracted.
read://http_blogspot.tenettech.net/?url=http%3A%2F%2Fblogspot.tenettech.net%2F2019%2F10%2F24%2F2g-gsm-sniffing-using-software-defi… 1/10
02/08/2023 2G GSM Sniffing using Software Defined Radio
We are going to make use of USRP X310 series which is having two RF daughter
board slots supporting the radio frequency signals ranging from DC range to 6
GHz.
read://http_blogspot.tenettech.net/?url=http%3A%2F%2Fblogspot.tenettech.net%2F2019%2F10%2F24%2F2g-gsm-sniffing-using-software-defi… 2/10
02/08/2023 2G GSM Sniffing using Software Defined Radio
The Second digit defines the country. For example for India it is represented with
a number zero (0). Hence the India is represented 40 country code. The Third
digit indicates the State allocated based on the communication operators in the
Country. For example, in India Reliance Jio supports
404-MNC for states like Assam, Himachal Pradesh, Bihar, Orrisa etc .
3. ARFCN
4. BCCH
read://http_blogspot.tenettech.net/?url=http%3A%2F%2Fblogspot.tenettech.net%2F2019%2F10%2F24%2F2g-gsm-sniffing-using-software-defi… 3/10
02/08/2023 2G GSM Sniffing using Software Defined Radio
5. CCCH
Then download the gr-gsm source and build it with following commands:
cd gr-gsm
mkdir build
cd build
cmake ..
make
sudo ldconfig
In order to add the PPA follow the instruction. PPA is used to install the
Wireshark sniffing tool.
Update the system and install the Wireshark tool using the instruction mentioned
bellow
read://http_blogspot.tenettech.net/?url=http%3A%2F%2Fblogspot.tenettech.net%2F2019%2F10%2F24%2F2g-gsm-sniffing-using-software-defi… 5/10
02/08/2023 2G GSM Sniffing using Software Defined Radio
Hence Now the Wireshark sniffing tool is installed. Run the command in order to
open the wireshark
Run: wireshark or else sudo wireshark. A page will open like mentioned bellow:
Wireshark
The figure below represents a flow graph of GSM sniffing. The received signals
from the Base station, the signal are further processed to GSM input adapter. The
GSM input adapter is an adapter of input stream for the GSM receiver. It contains
frequency offset corrector and re-sampler to correct the carrier frequency and
sampling frequency offsets. The GSM clock offset control, provides a limit to the
frequency offset signals with the cut off frequency of 941.4 MHz as a threshold.
read://http_blogspot.tenettech.net/?url=http%3A%2F%2Fblogspot.tenettech.net%2F2019%2F10%2F24%2F2g-gsm-sniffing-using-software-defi… 6/10
02/08/2023 2G GSM Sniffing using Software Defined Radio
Flow graph
The signals are further allowed to pass through the BCCH+CCCH demapper,
which demap the control channels; hence it corresponds to the channel
combination specified in GSM. SDCCH is a type of standalone dedicated control
channel which is used in the GSM standards in order to provide a reliable
connection to signaling and SMS messages. Hence these signals are demapped
using SDCCH/B receiver. In fig above, two Socket PDU is used; one for the UDP
client and other is for UDP Server. The GSM message printer will prepend the
frame count as mentioned in the figure. The receiver is tuned to 941.4 MHz center
frequency in order to receive the 2G signals from the BTS with a channel
Bandwidth 650 KHz.
Results
read://http_blogspot.tenettech.net/?url=http%3A%2F%2Fblogspot.tenettech.net%2F2019%2F10%2F24%2F2g-gsm-sniffing-using-software-defi… 7/10
02/08/2023 2G GSM Sniffing using Software Defined Radio
read://http_blogspot.tenettech.net/?url=http%3A%2F%2Fblogspot.tenettech.net%2F2019%2F10%2F24%2F2g-gsm-sniffing-using-software-defi… 8/10
02/08/2023 2G GSM Sniffing using Software Defined Radio
grgsm_livemon
Open the terminal and then type the command to open the Wireshark sniffing tool
to decode the message signal received from the BTS. Click on the loopback
network.
Tuning the GSM receiver to proper center frequency is very important. Identify
the ARFCN code for any mobile user and then calculate the uplink and downlink
frequency based on the ARFCN. Further substitute the center frequency with the
downlink frequency. In the figure above we can see that a GSM receiver is tuned
with the downlink frequency of 946.2 MHz. Hence some curve frequency
response of signals is obtained. Further analyze the signal in Wireshark .
The extracted information for the selected network provides a information like the
mobile system is in the attempt of connecting to the channel, as it receives the
signals from base station via BCCCH for the identity of network. The ARFCN is
noted as 34 with transmission of packages as zero.It also describe an information
about the source port address and the destination port address with the local area
identification of a mobile user. The mobile user is subscribed to spice
communication PVT ltd, Karnataka with MNC as 44 having MCC as 404
indicating the number is from India.
read://http_blogspot.tenettech.net/?url=http%3A%2F%2Fblogspot.tenettech.net%2F2019%2F10%2F24%2F2g-gsm-sniffing-using-software-defi… 9/10
02/08/2023 2G GSM Sniffing using Software Defined Radio
Inference
While tuning the GSM receiver, proper care is needed in the selection of center
frequency which can help in identifying the reception of packages from BTS.
Hence identify the ARFCN of mobile user and calculate the uplink and downlink
frequency and replace it in the center frequency. Hence some variation in the
frequency plot will be seen. The loopback network has to be selected as it
receives the information from the USRP X310 having a gain of 50 db.
For some more implementation of real time wireless application using Software
defined radio , you can refer the book on ” Practical approach to software
defined radio ”
Amazon : https://www.amazon.in/dp/9389113628
Flipkart : https://www.flipkart.com/practical-approach-software-defined-
radios/p/itm24afc57f04c29
read://http_blogspot.tenettech.net/?url=http%3A%2F%2Fblogspot.tenettech.net%2F2019%2F10%2F24%2F2g-gsm-sniffing-using-software-def… 10/10