Schlaubischlump / LocationSimulator

MacOS application to spoof / fake / mock your iOS / iPadOS or iPhoneSimulator device location. WatchOS and TvOS are partially supported.
https://schlaubischlump.github.io/LocationSimulator/
GNU General Public License v3.0
2.39k stars 184 forks source link

Does this support connections over WiFi? #5

Closed LCBlevins closed 4 years ago

LCBlevins commented 4 years ago

iSpoofer has this in their new releases. I believe it is possible using libimobiledevice, but I am not sure. Does this project support it?

Edit: In libusbmuxd you can use the function usbmuxd_get_device(). That allows you to look up USB and network devices. I am curious how this could be implemented in establishing and maintaining connections over WiFi.

Schlaubischlump commented 4 years ago

Theoretically, it should work. In practice, I could not get it to work, which is why I disabled it. Although Wi-Fi devices are detected, I can not communicate with them. Maybe it will work with a newer version of libimobiledevice. I might look into it if I find the time and motivation to do it.

If you want to look into it by yourself, take a look at the LocationSimulator/LocationSimulator/locationspoofer/Device.swift file lines 66-69. For a starting point.

LCBlevins commented 4 years ago

I will certainly look into it. I don’t actually know much about swift, and even have a little trouble following your very cleanly formatted code. What libimobiledevice version is this using? I wonder if the version used supports the latest iOS (not sure if that would effect it, but the last official release of libimobiledevice was a while back)

Schlaubischlump commented 4 years ago

I checked out HEAD-0584aa9_3 of libimobiledevice from github and compiled it using homebrew. If you have any trouble compiling LocationSimulator feel free to ask. Some of the closed issues marked as "good first issue" might help you setup the libimobiledevice and usbmuxd, so that XCode is able to find them. Last time I tested LocationSimulator, it was working fine with iOS 13.

LCBlevins commented 4 years ago

My VM appears to have been corrupted. I only own a windows machine but I am very impressed with your project. I’m going to close this issue as my initial question was answered. Thanks for the quick and thorough responses!

Schlaubischlump commented 4 years ago

I added initial WI-FI support. Would be nice if you could test the feature.

dpghazi-zz commented 1 year ago

Will I be able to log into my home wifi network remotely? Awesome project.

Schlaubischlump commented 1 year ago

Hi @dpghazi, glad that you like the software!

I'm not sure if I understand the question correctly. To remotely log into your home wifi you need a VPN. This has nothing to with LocationSimulator. There are a couple of different solutions for this.

If your VPN is working correctly, you need to modify it to pass through all bonjour traffic. This is not so easy.

https://www.reddit.com/r/osx/comments/3jqllg/bonjour_over_vpn/

If you done that, then LocationSimulator will recognize your devices even over a VPN.

dpghazi-zz commented 1 year ago

Ahh thank you very much for your prompt response and my apologies for the late reply! I think I was getting a bit ahead of myself there with VPN...

Rather, I was wondering when we can expect the app to support IOS 16? I updated my device to IOS 16, and I wasn't able to change my location since then.

Thanks again :)

Schlaubischlump commented 1 year ago

iOS 16 is already supported. You just need to enable DeveloperMode. For more infos, take a look at the Readme of LocationSimulator. There is a link to an issue with more details right at the top.