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

Popular posts from this blog

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 also changed the IP li…

Temper Temperature monitor on a Beaglebone Black

Beaglebone Black as a temperature monitor:

Recently I wanted to monitor the temperature of my shed.  I thought I'd use a small computer such as a Raspberry Pi or a Beaglebone or Odroid.

My Raspberry Pi boxes were all in use, so I grabbed my Beaglebone, which was doing nothing.

I flashed it with the Debian9.32018-03-054GB SDIoTimage, but that seemed like it was running lots of bloatware and the ethernet interface wouldn't take a static IP with /etc/network/interfaces.

So I went with the Debian9.32018-01-284GB SDLXQTi image instead.  I still had the same problem, that lots of junk was running, and I couldn't configure my interface by modifying /etc/network/interfaces

So my first step was to get rid of all the bloatware.  If you're using a Raspberry Pi or something, you can skip this and just go to the second step below

STEP 1--Remove Blotatware from Beaglebone Black:

With some searching, I came across this post:
https://www.linuxquestions.org/questions/linux-newbie-8/inte…