SDR - adeptex/CTF GitHub Wiki

SDR

Physics

GPS Spoofing

mkdir gpspoof && cd gpspoof


# Compile hackrf_transfer
git clone https://github.com/mossmann/hackrf
mkdir -p hackrf/host/build
cd hackrf/host/build
cmake .. && make
./hackrf-tools/src/hackrf_transfer -h
cd ../../..

# Compile gps-sdr-sim
git clone https://github.com/osqzss/gps-sdr-sim
cd gps-sdr-sim
gcc gpssim.c -lm -O3 -o gps-sdr-sim
./gps-sdr-sim -h

# Download latest GPS ephemeris
wget ftp://cddis.gsfc.nasa.gov/gnss/data/daily/2019/040/19s/yar20400.19s.Z
7z x yar20400.19s.Z

# Generate GPS bin
gps-sdr-sim -b 8 -e yar20400.19s -l "-16.495008,-151.754807,100"
cd ..

# Broadcast
hackrf/host/build/hackrf-tools/src/hackrf_transfer -t gps-sdr-sim/gpssim.bin -f 1575420000 -s 2600000 -a 1 -x 0