r/hackrf • u/VodkaCranberry • Jun 15 '22
Question about GPS Spoofing
I see that you can spoof GPS signal with GPS-SDR-SIM and a HackRF. You start with a recent ephemeris file and then generate a signal to play over the HackRF using GPS-SDR-SIM. Since the ephemeris file comes from the recent past, does that mean that the GPS receiver will also think it is in the past?
EDIT: I get it, don’t transmit over GPS. The question is about what effect using a non-current ephemeris file would have on the time the receiver thinks it is…
7
u/josh2751 Jun 15 '22
That's not how GPS works.
Regardless, do NOT spoof GPS outside of a properly constructed and tested faraday cage. There are way too many life and safety critical things that depend on it that you can't control.
0
u/VodkaCranberry Jun 15 '22
What does the ephemeris file do? And why do you need a recent version?
3
u/josh2751 Jun 15 '22
The ephemeris file contains the position information for the satellites. It needs to be recent because an old one will have accumulated error since it was created.
0
u/VodkaCranberry Jun 15 '22
Ok, but needing recent position information suggests that making it work is tied to what date and time the spoofing is happening. Otherwise I could just use an old Ephemeris file.
Some systems use GPS to attain a high degree of accuracy in time. How are these factors unrelated?
6
u/josh2751 Jun 15 '22
You really should just google how GPS works. You can't really spoof something if you don't understand anything about how it works. It's kind of silly to just ask question after question after question without looking up the basic foundational information for how something works first.
https://electronics.howstuffworks.com/gadgets/travel/gps.htm https://www.garmin.com/en-US/aboutgps/
GPS uses time signals from satellites to determine position. If you're trying to "spoof" it, you'll need to know what satellites are in what position at the time you're trying to spoof, not a week later or earlier.
You can't predict or extrapolate from degraded data.
-3
u/VodkaCranberry Jun 15 '22
Reddit is a discussion site. I have a specific question about a specific thing about this particular scenario. You really should just not respond if you don’t feel like answering. I have a fairly good understanding of how GPS works, and you basically said the same damn thing I said without answering my core question. So I assume you have no idea.
3
u/josh2751 Jun 15 '22
You don’t know how GPS works at all. Read the links I posted.
-1
u/VodkaCranberry Jun 15 '22 edited Jun 15 '22
You don’t know shit about me. Here’s a GitHub repo that allows you to send the signals:
https://github.com/crescentvenus/WALB
My question is if the receiver will also be time shifted. You’ve contributed nothing to this conversation except snarky remarks and assumptions about me.
EDIT: read your link. Confirmed I understand GPS fine. Learned nothing about my question. I’ll just try it. Thanks for nothing.
2
u/josh2751 Jun 15 '22
Putting a hackrf in a box doesn’t impress me, sorry.
You’re asking grade school questions. Read the papers that tell you how GPS works. Your first question told me you have literally zero idea how gps even works, you’re not going to be successful doing what you want to do without educating yourself.
Now that I see you’re actually trying to do this for some reason, I’m even less interested in helping you. Spoofing GPS is illegal under nearly all circumstances for good reason.
1
Jun 15 '22 edited Jun 15 '22
You’re asking grade school questions.
I totally understand where you are with this, but this is a little bit hyperbolic, don't you think? Gradeschoolers are still learning basic algebra and geometry.
This shit is complex at nearly all levels. I mean, isn't time dilation involved under the hood?
→ More replies (0)-3
u/VodkaCranberry Jun 15 '22
I’m not trying to impress you. I was wondering about the effects of using an old ephemeris file. You never once answered the question. Since you don’t know the answer I’ll just experiment and see what the data shows. I know what’s illegal and what isn’t. I have a General Class ham license.
Try not being so fucking miserable. Maybe you’ll make a friend out there.
→ More replies (0)2
Jun 15 '22
The earth is not a perfect sphere and it's gravity is "lumpy" due to uneven mass distribution. This results in the orbits experiencing tiny perturbations, which accumulate over time. This result is that their keplerian elements (the definition of their orbital characteristics) to drift and require occasional correction.
I believe this file is what updates this data.
2
u/butter14 May 13 '24
Out of all the childish responses, this is the comment that actually answered the question.
3
u/HighMarck Aug 10 '22
theoretically if a person stays in their private perimeter of their own home they can do it, hackrf is not even powerful enough to disturb other devices if you stay within your own walls. however I did not believe there were so many "experts" who feel important and intelligent and want to teach law and morality to those who have only asked a question but reading the comments I had to change my mind lol
6
u/VodkaCranberry Aug 10 '22
Yeah, just a bunch of unhelpful jerks. Really put me off to this sub.
Thank you for that helpful info on the power level.
3
u/HighMarck Aug 10 '22
No problem!
I also experienced with the gps and hackrf. I did not have an adequate clock and the ideal antenna but I was able to conclude something: on an android device for a few seconds the spoofed position appeared correctly then the signal was discarded because it was inaccurate, on an iphone it is more difficult because the position is not obtained only from the GPS but also from the wifi, bluetooh and telephone tower cells and I could not isolate it well even with a handcrafted faraday cage
4
u/VodkaCranberry Aug 10 '22
I was trying to spoof my iPhone for a specific geo-sensitive app. I found the same thing. The GPS seemed to be where I wanted it, but the app knew there was something funky going on and it didn’t matter
2
u/HighMarck Aug 11 '22
another solution I had thought of was to create an external fake gps hardware to be connected to the iPhone via Bluetooth or USB to replace the internal one. theoretically, once the iPhone identifies and recognizes it as a GPS, then it takes all the information from the external one without considering that of its internal modules
4
u/PM-me-synth-pics Jun 15 '22
Try to stay away from gps
It’s not even worth trying unless you like getting rawdogged by the fcc
1
u/PleasantFortune2283 Mar 20 '25
What happened to the .zip file for windows? Is gps-sdr-sim still available?
15
u/DenverBowie Jun 15 '22
Sounds like a great way to avoid rent/mortgage payments for a while if you ask me.