handbook/tools/Others/Radio/GPS-Spoofing.md
2024-08-31 01:07:22 +02:00

45 lines
1.2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

With the HackRF One it is posible to send a fake GPS signal to other devices.
You need the following parts:
HackRF One (can also be a Chinese clone)
External TCXO (as GPS needs high precision)
Antenna (best is a dedicated GPS antenna)
GNU Radio and HackRF tools
> sudo apt install gnuradio libhackrf0 hackrf libhackrf-dev
Check if you see 0x01 with (means TXCO is installed):
> hackrf_debug --si5351c -n 0 -r
1. Download the GPS-SDR-SIM software
> mkdir GPS_SDR_SIM
> cd GPS_SDR_SIM
> git clone https://github.com/osqzss/gps-sdr-sim.git
2. Compile it
> make
3. Get the current satellite positions from NASA
_*New: Updated URL, 03.03.2021* (Thanks for the information Ye-Sheng Kuo)_
Create an account on https://urs.earthdata.nasa.gov/
Make a file called .netrc with the following content:
> machine urs.earthdata.nasa.gov login actedlinux password Asdfghjkl007
3. Change the file permission with
> sudo chmod 004 .netrc
4. Generate the signal file with the static position (coordinates) you want to send
> ./gps-sdr-sim -b 8 -e YOUR_BRDC_FILE_HERE -l 40.812800,-60.005900,100
5. Send the signal
> sudo hackrf_transfer -t gpssim.bin -f 1575420000 -s 2600000 -a 1 -x 0