Skip to main content

ADS-B plotting with Kali (and other SDR goodies)


Recently I wanted to try some Software Defined Radio stuff.   

I had a RTL-SDR, FM+DAB, DVB-T USB Stick Set with RTL2832U & R820T. that I got from:

But, even though this dongle would break out FM radio stations, and ATC frequencies (like the local Ground Control, tower, and even ATIS), which was cool, it wouldn't break out ADS-B.   

Thus, I bought a Vantech Green Mini RTL2832U R820T DVB-T SDR DAB FM USB DIGITAL TV Tuner Receiver RTL-SDR Project + DAB dongle Tuner MCX Input from Amazon, and tried this.  

This dongle was able to listen to the 1090MHz frequency required for ADS-B (as it goes from 25MHz to 1700MHz).  There were tons of Windows programs out there for breaking out and plotting ADS-B Mode S broadcasts, but not many for Linux.  

For Kali Linux, here's how I got it running and plotting planes around my home:

0) before you start, you should do an apt-get update to ensure you have the most current packages 
1) you'll need USB1.0 support, so run "apt-get install libusb-1.0-0-dev"
2) The rtl_sdr that comes with Kali doesn't work with dump1090. You'll need to build rtl-sdr from source.
To do this, you'll need to follow the instructions at: sdr.osmocom.org/trac/wiki/rtl-sdr.Basically, you'll need to:
    - #apt-get install cmake (you'll need this as part of the install)
    - #git clone git://git.osmocom.org/rtl-sdr.git (this will get the rtl-sdr package... be careful...             whatever directory you type in the command is where it will go)
    - #cd rtl-sdr/
    - #mkdir build
    - #cd build
    - #cmake ../
    - #make
    - #sudo make install
    - #sudo ldconfig
3) get dump1090 from github.com/antirez/dump1090
(Note, if you have a hard time finding it, you can type "wget h-t-t-p-s://github.com/antirez/dump1090/archive/master.zip --no-check-certificate" ....dashes were put in the URL to stop stupid Godaddy formatting)
 
   - change to the directory and type "make" and that should be it.
    - to run it, you can just type "./dump1090", and it will pipe all the text it sees to the command line.
    - Here's the cool part:  "./dump1090 --net" will start up a web server, and you can connect to it with a browser to localhost:8080 to see the aircraft flying!
Below is a screenshot of what this will look like:


Pretty cool stuff!   

As a note, here is what worked for me with other stuff:

For FM Radio:
#rtl_fm -W -f 89.1M -r 48k -s 200k - | aplay -r 48k -c 1 -f S16_LE

For ATC frequencies (they are actually AM broadcasts, and the -M tells rtl_fm to break it out as AM):
rtl_fm -f 124.2M -M -s 48k | aplay -t raw -r 48k -f S16_LE

Police Scanner (haven't tried this yet, so it may not work):
rtl_fm -N -E -f 154.42M -f 154.75M -f 154.82M -f 154.89M -s 44.1k -o 4 -g 49.2 -l 70 | aplay -r 44.1k -t raw -f S16_LE

Pager Decoder (haven't tried this yet either, so this also may not work):
rtl_fm -N -f 929.77M -s 22.5k -o 4 -g 11.5 -l 250 | multimon -t raw /dev/stdin
(note, I had to apt-get install multimon to get that package)

To get a cool scanner, I used "multimode."  To install this, I did:
  - I went into the multimode/tags/rel0.1/ directory, and ran "make install"
  - I typed "python multimode.py" and the GUI came up... SLICK!
(note, I did get a lot of overruns running this, but I think that was an artifact of me running Kali in a VM, and not on real hardware.  Thus your milage may vary).  

Also for scanning, the rtlsdr-scanner GUI worked like a champ out of the box with Kali.

Lastly, the grx scanner worked GREAT with Kali.   I didn't even have to install it.  I just used the menu (Applications->Kali Linux->Wireless Attacks->SDR->gqrx.  Here's a cool screenshot of that:


Comments

Post a Comment

Popular posts from this blog

HP c6180 Printer and Vista

Hp c6180 driver issues with Vista Home Premium My wife has a Vista Home Premium laptop, and the HP C6180 Photosmart printer keeps disappearing from her available printers.  The only way I've found to fix the problem is to reinstall all the HP software. When I do this, I have to download the (large..507M software from HP, or reinstall the printer (ONLY the printer, not the scanner) with the installation disk, as the drivers are not discovered with a "Windows Update" setting.  My guess is that is because HP doesn't like people to install only the printer driver, which would be easy, but they want folks to install all their crapware as well, so they are withholding the drivers from the on-line Microsoft printer database.  So keep your installation CD!  I've also found that unless I install everything on the CD or in the Full Version download (HP Customer Participation Program, HP Imaging Device functions, HP OCR SW, HP All-In-one SW, HP Photosmart Essential, HP

atftpd vs tftpd-hpa

Recently I was trying to tftp files from a Windows computer to a Kali box.   One version of Windows worked, but another didn't.    After much troubleshooting, here were my symptoms: I could tftp a file from-to any Kali box from-to another Kali box I could NOT tftp files to a specific Windows 7 box from any Kali box I could NOT tftp files to a Chrooted-Ubuntu-Chromebook box from a Kali box After MUCH troubleshooting, going through every setting in atftpd, it seemed like it literally was a client OS problem.  Different clients simply would not download files---unacceptable. Thus, I switched to tftpd-hpa.   To install: apt-get install tftpd-hpa files go to/come from /srv/tftp, but it needs to be a tftp user. Thus, I needed to: chroot -R /srv/tftp Also, if you want to be able to put files ON the tftp server (from a client), you need to modify /etc/default/tftpd-hpa: change "TFTP_OPTIONS="--secure"  to "TFTP_OPTIONS="--secure --create" I al

Security Onion on the Antsle

My Setup of Security Onion on the Antsle: Recently my IDS box, an Intel Atom D2500 Fanless Mini-ITX PC, D2500CCE, died.  Truth be told, I think it came from the factory in a bad state, as I originally thought I had a bad graphics driver, but I then noticed that, after much troubleshooting, it wasn't a driver issue at all.  The box just sometimes wouldn't boot up correctly with video.  It seems heat related, something like not enough thermal paste on the CPU, as after it is powered off for a while it is more likely to boot than when it is warm.  Along with that issue, this box maxed out at 4GB of RAM (only has 2 memory slots, each of which will only take a 2GB card max) and had a single processor, so it was under powered for Security Onion. So, I decided to quit limping along on P.O.S. boxes, and buy a little more heavyweight box for my networked IDS.   Security Onion requires a minimum of 8GB of RAM, and 4 cores per their specs page https://github.com/secur