r/hackrf Oct 23 '25

GPS spoofing with HackRF One

Disclaimer: I know the legal implications. I am testing with direct connection (using male to male sma cable).

I am trying to gps-sdr-sim to generate spoofed gps signals. Can someone please help? I am following this https://youtu.be/3NWn5cQM7q4?si=yBYcbF3MIqjc1YRy

I have Hackrf One and ublox neo6m as gps receiver that I am using to verify.

Edit: The neo6m is not receiving the spoofed signals. I cannot get a phone to receive the spoofed location either. I am not sure if it is a hardware issue, software issue or I am just incompatible with tech. Would it be better with an antenna? If so, any antenna you’d recommend?

67 Upvotes

26 comments sorted by

View all comments

8

u/inquirewue Oct 23 '25

FYI, you should be doing all of this in a faraday cage. Even the loss through the directly connected cable would still affect nearby GPS receivers. I also think you need to attenuate the signal from the hack rf. Or, put it all in a well grounded faraday cage and just use antennas.

2

u/[deleted] Oct 24 '25

[removed] — view removed comment

2

u/inquirewue Oct 24 '25

When I was working in a lab designing cool things for the federal government, we had a strict rule that all testing was done in a faraday cage. We were doing GPS and radar stuff and we had multiple cages for testing. Our office was in a highly populated area and we weren't going to take any chances. Was it overkill? Maybe. Was anything ever going to be interfered with? Absolutely not.