iam4x / pokemongo-webspoof

👾 Play Pokémon Go from your Mac
2.14k stars 229 forks source link

Altitude #354

Open eq2kazial opened 8 years ago

eq2kazial commented 8 years ago

With the discovery that the game also uses altitude in its communications with Niantic's servers, how does this app handle altitude? Is it the same number constantly (and thus easy for them to detect?) or is it something we can customize?

JoTestry commented 8 years ago

It sends nothing. The variable never pulls. This will be an enormous red flag and any account you've used this on will almost definitely be banned. All your Pokemon captures, Poke Stop spins, and Gym Battles will have a logged Altitude of nothing (blank). It's worse than having the same altitude all the time.

You can download one of the many free altitude checking apps to confirm this while it's running.

jamesjia94 commented 8 years ago

The current app only uses Google's Directions API, which does not send elevation information. Jotestry's right, there's no logged altitude. One fix could be using Google's elevation API to get elevation data.

HoDaDor commented 8 years ago

=(

eq2kazial commented 8 years ago

Can @iam4x or any other coder implement altitude to the app?

m4hx commented 8 years ago

I am afraid this project is dead. I did some testing with the code and altitude is always 0 when using this gps spoof technique. Unfortunately this relies on using xcode to simulate the GPS coordinates and at this time xcode does not have the ability to simulate altitude.

HoDaDor commented 8 years ago

༼ つ ಥ_ಥ ༽つ

Thanks for the attempt @m4hx

MoOx commented 8 years ago

Red flag indeed :/

ehad16 commented 8 years ago

@m4hx would these links help?

http://stackoverflow.com/questions/9439495/when-using-gpx-in-xcode-to-simulate-location-changes-is-there-a-way-to-control/9439580#9439580

https://developer.apple.com/library/ios/documentation/ToolsLanguages/Reference/UIATargetClassReference/index.html#//apple_ref/javascript/instm/UIATarget/setLocationWithOptions

At least maybe set something other than 0 outside of the gpx file?

HoDaDor commented 8 years ago

Perhaps set a config variable to set and program in some fluctuation so the elevation variable doesn't remain constant?

Elevation data here: http://viewer.nationalmap.gov/basic/?basemap=b1&category=ned,nedsrc&title=3DEP%20View

nickg819 commented 8 years ago

Can you link to where this discovery was found?

ehad16 commented 8 years ago

Few threads talking about it in the PoGo Dev reddit, here is one.

https://www.reddit.com/r/pokemongodev/comments/4wdpue/so_waitthe_game_verifies_altitude_thats_going_to/

filipechagas commented 8 years ago

I've found this guy on the look for alternatives: https://github.com/vermont42/GpxLocationManager

Not sure it helps on this project, and I'm not a ios/swift developer as well, but looks like this guy offers some classes that allow simulating location with elevation information based on gpx files.

MoOx commented 8 years ago

It would be nice if someone is comfortable enough with ios/xcode dev to handle this via PR. Should be a high priority since we could all be banned because of this.

MoOx commented 8 years ago

I guess if niantic is becoming serious about this (that's what we can read if you take a look to niantic ceo replies on twitter), we could even be banned retroactively...

filipechagas commented 8 years ago

You're right. And, besides the elevation (altitude) thing, if they start checking the accelerometer to make sure the player is in motion, we might as well just wind up not being able to use spoofing altogether.

eq2kazial commented 8 years ago

Any updates on adding altitude? If not, anyone know another similar program to spoof on iOS that does?

MoOx commented 8 years ago

@iam4x is probably on vacation according to his github activity stream. Nobody has access to the repo except himself so we have to wait. Meanwhile anyone can make a PR with this improvements and everyone will be able to use it.

grinsekatze003 commented 8 years ago

I doubt there is any solution. The only way to simulate any iOS data without jailbreak is to use Apples tools. But Xcode has afaik no built-in solution to fake altitude. There -was- a way to simulate altitude using automations but I think the support got dropped with iOS10.

Ivan-Mak commented 8 years ago

Did actually someone got banned using this ?

filipechagas commented 8 years ago

I got a soft ban after using it once.

iam4x commented 8 years ago

@AnySkill Not yet for myself.

MoOx commented 8 years ago

I just got some soft bans but it was because I moved to quickly (and sometimes, not on purpose). No permanent ban (yet?) and I used it probably some hours already.

adrianoresende commented 8 years ago

@filipechagas I never used other applications and scripts third-party?

KTachyon commented 8 years ago

@filipechagas The GpxLocationManager won't work. It's scoped to the app running it, not system wide.

This could be possible to override using Automation, but I don't know if it's feasible.

But there is an alternative... the hardware alternative. On iOS you can connect an external GPS and the system will use it as it's location hardware (at least on iPods and SIM-less iPads, which don't have the GPS chip, but will probably work on every iOS device). Better yet, it seems to be possible to do that over bluetooth.

(And I'm going to stop here and let someone with iOS Bluetooth communication background to take over)

EDIT: Something like this: https://www.youtube.com/watch?v=RTgdZz2U1Bg

ghost commented 8 years ago

Automation doesn't work with the current iteration, I've just checked using various options.

var target = UIATarget.localTarget();

var location = {
latitude: 0,
longitude: 0`
};

var locationOptions = {
altitude: 20,
horizontalAccuracy: 10,
verticalAccuracy:15
};

target.setLocationWithOptions (location, locationOptions);

Going to keep trying, but I've read around it's not possible anymore (though I can't remember where I read it).

GForceWeb commented 8 years ago

Has there been any development on implementing some sort of altitude value into this project?