--> Kalibrating Device for GSM and Decoding ADS-B messages | My Hack Stuff

Kalibrating Device for GSM and Decoding ADS-B messages

As I have mentioned in my previous article that I'll discuss Kalibrating Device for GSM and Decoding ADS-B messages in my upcoming article so here is the useful guide to get familiar with these methods.

This article is the second part of Software Defined Radios

RTLSDR also allows us to view GSM traffic using a tool called kal or kalibrate-rtl. This tool can scan for GSM base stations in a frequency band. In this recipe, we will learn about using kalibrate and then confirm the channel in gqrx.


Following are the steps to use kalibrate:

Most of the countries use the GSM900 band. In the USA, it's 850. We will use the following command to scan for GSM base stations:
kal -s GSM900 -g 40
The following screenshot shows the output of the preceding command:

Kalibrating Device Decoding ADS-B messages

In a few minutes, it will show us a list of base stations:

Kalibrating Device Decoding ADS-B messages

We note the frequency; in our case, we will use 947.6 MHz along with the offset.
Now we open GQRX and enter it in the Receiver Options window:

Kalibrating Device Decoding ADS-B messages

We can see in the waterfall that the device is able to catch signals perfectly.
Now we will look at this data at the packet level. We will use a tool known as gr-gsm.
It can be installed using apt install gr-gsm:

Kalibrating Device Decoding ADS-B messages

Once it is done, if we type grgsm_ and press the Tab key, we will see a list of different tools available for us.

First, we will use grgsm_livemon to monitor the GSM packets live. We'll open the terminal and type grgsm_livemon:

Kalibrating Device Decoding ADS-B messages

In the new window that opens, we will switch to the frequency we captured in the previous steps using kalibrate:

Kalibrating Device Decoding ADS-B messages

We can zoom into a particular range by dragging and selecting the area on the graphical window.
In the new terminal window, we start Wireshark by typing wireshark.
We then set the adapter to Loopback: lo and start our packet capture.


Next, we add the filter gsmtap:

Kalibrating Device Decoding ADS-B messages

We should see the packets in the info window. We should see a packet with label System Information Type 3; let's open it:

Kalibrating Device Decoding ADS-B messages

We will see the system information such as Mobile Country Code, Network Code, and Location Area Code:

Kalibrating Device Decoding ADS-B messages

Now with this article, we have learned how GSM packets travel.

Here are some great videos to give you a better understanding of GSM sniffing.

Decoding ADS-B messages with Dump1090


ADS-B stands for Automatic Dependent Surveillance-Broadcast. It is a system in which electronic equipment onboard an aircraft automatically broadcasts the precise location of the aircraft via a digital data link.

As described in the official readme of the tool, Dump1090 is a Mode S decoder specifically designed for RTLSDR devices.

The main features are:

  1. Robust decoding of weak messages. With mode1090, many users observed improved range compared to other popular decoders.

  2. Network support—TCP30003 stream (MSG5), raw packets, HTTP.

  3. Embedded HTTP server that displays the currently detected aircrafts on Google Maps.

  4. Single-bit error correction using 24-bit CRC.

  5. Ability to decode DF11 and DF17 messages.

  6. Ability to decode DF formats such as DF0, DF4, DF5, DF16, DF20, and DF21, where the checksum is XOR-ed with the ICAO address by brute-forcing the checksum field using ICAO addresses, which we've covered.

  7. Decode raw IQ samples from file (using the --ifile command-line switch).

  8. Interactive CLI mode where aircrafts currently detected are shown as a list, refreshing as more data arrives.

  9. CPR coordinate decoding and track calculation from velocity.

  10. TCP server streaming and receiving raw data to/from connected clients (using --net).


In this section, we will use the tool to look at air traffic with visuals.

Following are the steps to use Dump1090:

We can download the tool from the Git repo using the command

git clone https://github.com/antirez/dump1090.git:

Once downloaded, we go the folder and run make.
We should now have an executable. We can run the tool using the following command:
./dump1090 --interactive -net


The following screenshot shows the output of the preceding command:

Kalibrating Device Decoding ADS-B messages

In a few minutes, we should see the flights, and by opening the browser to http://localhost:8080, we will be able to see the flights on the map as well.


More about this can be learned from here. Now let me recommend you some other practical guides about penetration testing of Remote Access Protocols, Remote Desktop ProtocolSSH Network Protocol, Network RoutersWordpress website using WPSeku,

 

COMMENTS

Name

AC Milan,14,Arsenal,15,Atalanta,15,Atletico Madrid,15,Barcelona,25,Bayern München,17,Bundesliga,63,Business,1,Chelsea,22,Coronavirus,2,Cristiano Ronaldo,20,Dortmund,11,Ethical Hacking,46,Exploitation,35,FA Cup,2,Featured,559,Football,572,Footprinting,29,Google Adsense,2,Inter Milan,19,Juventus,23,Kali Linux,39,Kali NetHunter,3,LaLiga,102,Lazio,13,Leicester City,12,Ligue 1,68,Live Streams,12,Liverpool,21,Lyon,8,Make Money,3,Manchester City,29,Manchester United,23,Messi,9,Metasploit,1,Napoli,12,Offensive Security,17,Penetration Testing,15,Politics,2,Post Exploitation,19,Premier League,119,PSG,13,Real Madrid,27,Roma,8,Search Engine Optimization,4,Serie A,88,Sevilla,9,Sports,543,Technology,36,Tips,16,Tottenham Hotspur,15,Trending,787,UEFA Champions League,74,UEFA Europa League,14,UEFA Nations League,3,United States,1,Windows,7,World News,7,
ltr
item
My Hack Stuff: Kalibrating Device for GSM and Decoding ADS-B messages
Kalibrating Device for GSM and Decoding ADS-B messages
https://myhackstuff.com/wp-content/uploads/2018/04/1-8.png
My Hack Stuff
https://www.myhackstuff.com/2018/04/kalibrating-device-for-gsm-and-decoding.html
https://www.myhackstuff.com/
https://www.myhackstuff.com/
https://www.myhackstuff.com/2018/04/kalibrating-device-for-gsm-and-decoding.html
true
1336489415246004999
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content