pogodevorg / pgoapi

Unofficial PokemonGO API in Python
https://pogodev.org
Other
851 stars 475 forks source link

How to avoid getting banned using the API? #106

Closed nequito closed 8 years ago

nequito commented 8 years ago

Recently multiple accounts were permanently banned, But the exact reason of how they knew we cheated is unknown, i have a couple of speculations:

These are only speculations i've made of how Niantic knows that we are cheating, but it would be a good idea to colaborate in order to know the specific reason of why we are getting banned.

alxnegrila commented 8 years ago

Softbans do not impact. At least not the softbans received when the first version was running...

dnsBlah commented 8 years ago

you call 21.6km/hr walking? thats more pretty good cycling speed

anyways I'm even doubting to provide location updates every second? Anyone has an opinion on that?

RyanHope commented 8 years ago

I can confirm that softbans are not important to getting hardbanned. I snipe with my bot by deliberately triggering thew softban and then unsoftbanning my self using the 40 spin trick. I've done this at least 100 times in one day and the account is not banned.

On Wed, Aug 17, 2016 at 12:21 PM, dnsBlah notifications@github.com wrote:

you call 21.6km/hr walking? thats more pretty good cycling speed

anyways I'm even doubting to provide location updates every second? Anyone has an opinion on that?

  • provide random accelerometer variables with every request
  • randomize the catchpokemon variables (spin, hit position etc, even miss sometimes)
  • don't walk straight lines but use the googlemaps.directions api
  • random offsets in your updates to the server, up to.. 0.00002 (should be around 30m)
  • run the bot for X amount of hours, and automatically go on with the next account
  • use multiple proxies and change them randomly once a while
  • provide random gps parameters (meaning: amount of sattelites, angles of satelites, signal, accuracy)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/keyphact/pgoapi/issues/106#issuecomment-240465713, or mute the thread https://github.com/notifications/unsubscribe-auth/AAImzU1_eP23R7iDAwYN6Dtv_5Ve3QHVks5qgzT1gaJpZM4JmkHk .

Ryan Hope, PhD Psychology Department Carnegie Mellon University

nfettinger commented 8 years ago

You post this today, even though Niantic removed the method of spinning pokestops weeks ago?

RyanHope commented 8 years ago

Really because I still have bots performing the 40 spin hack as of last night.

On Thu, Aug 18, 2016 at 9:42 AM, Nfettinger notifications@github.com wrote:

You post this today, even though Niantic removed the method of spinning pokestops weeks ago?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/keyphact/pgoapi/issues/106#issuecomment-240726448, or mute the thread https://github.com/notifications/unsubscribe-auth/AAImzdQOxhEzd2HGoslGBUAno0Lza-f6ks5qhGFKgaJpZM4JmkHk .

Ryan Hope, PhD Psychology Department Carnegie Mellon University

ApratimPanwar commented 8 years ago

@ryanHope Hardbans are instant , they take around a week to judge and ban , unfortunately even using IV checks accounts get banned , so using api = ban , they somehow figured it out

RyanHope commented 8 years ago

Yes, hardbans might instant. I am not arguing that. All I am saying it getting softbanned does not flag you for a hardban and that the 40spin fix for softbans was still working as of yesterday.

On Thu, Aug 18, 2016 at 11:27 AM, MINEREAPER notifications@github.com wrote:

@ryanHope https://github.com/ryanHope Hardbans are instant , they take around a week to judge and ban , unfortunately even using IV checks accounts get banned , so using api = ban , they somehow figured it out

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/keyphact/pgoapi/issues/106#issuecomment-240759802, or mute the thread https://github.com/notifications/unsubscribe-auth/AAImzVNdDufuvDKNKmK3G_0fVkgjJS4Dks5qhHnhgaJpZM4JmkHk .

Ryan Hope, PhD Psychology Department Carnegie Mellon University

ApratimPanwar commented 8 years ago

@ryanhope thats was something from ingress's time , people in ingress still use it after 3 years lol

ghost commented 8 years ago

What I don't understand is how I got the below message at 8:39PM Eastern last night, yet my account was not actually banned since I'm currently playing the game and catching pokemon and hitting up pokestops.

"Trainer,

Your account has been terminated. Use of any other third-party software or app, including but not limited to scripts/apps, applications used to falsify your location, emulators, modified or unofficial software, and/or accessing Pokémon GO clients or backends in an unauthorized manner is considered cheating.

If you believe your account has been terminated in error, you may fill out this form. Please consider your account permanently terminated unless we reply back to your appeal.

Is this a bluff from Niantic or is there a delay between the message and them actually banning my account?

Also, to help us get to the bottom of this, here's my two cents:

I never used my own account to access PokemonGo via the API, but I did jailbreak my phone, utilized tsProtector8+ as well as Location Faker to spoof my gps manually (no bots).

Futhermore, I always spoofed within my city and always closed the PokemonGo app before changing my GPS coordinates that way I can always make the argument that I was traveling the distance across my city when the app was off (however it was within a 5 second period that I was in one end of the city and the next).

Therefore my speculation is the following:

RyanHope commented 8 years ago

I think most permabans that people are getting recently are actually a result too many user reports of gps spoofing when taking gyms and/or suspect high level trainers/pokemon, etc.

On Thu, Aug 18, 2016 at 2:38 PM, Chris Cruz notifications@github.com wrote:

What I don't understand is how I got the below message at 8:39PM last night, yet my account was not actually banned

"Trainer,

Your account has been terminated. Use of any other third-party software or app, including but not limited to scripts/apps, applications used to falsify your location, emulators, modified or unofficial software, and/or accessing Pokémon GO clients or backends in an unauthorized manner is considered cheating.

If you believe your account has been terminated in error, you may fill out this form. Please consider your account permanently terminated unless we reply back to your appeal.

  • NianticOps"

Is this a bluff from Niantic or is there a delay between the message and them actually banning my account?

Also, to help us get to the bottom of this, here's my two cents:

I never used my own account to access PokemonGo via the API, but I did jailbreak my phone, utilized tsProtector8+ as well as Location Faker to spoof my gps manually (no bots).

Futhermore, I always spoofed within my city and always closed the PokemonGo app before changing my GPS coordinates that way I can always make the argument that I was traveling the distance across my city when the app was off (however it was within a 5 second period that I was in one end of the city and the next).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/keyphact/pgoapi/issues/106#issuecomment-240815928, or mute the thread https://github.com/notifications/unsubscribe-auth/AAImzaBb6J9HUgy8lQIaFyq59BfJ75hRks5qhKaYgaJpZM4JmkHk .

Ryan Hope, PhD Psychology Department Carnegie Mellon University

glennvgastel commented 8 years ago

I've tested with sort of a "honeypot" method with 14 different accounts. Here are my findings : Tested all these for 3 days straight except for the emulator.

No ban

Softbans

Temp IP Ban

Seems to be changed to a +/- 8 hour temp ban ONCE, resulting in status code 3. Second time is a permaban.

Permaban

Emails received, no ban yet

drricksanchez321 commented 8 years ago

@Calcyfer For each of the permabans, did you receive an email?

glennvgastel commented 8 years ago

@drricksanchez321 No, I did not. Only for 3 accounts.

dnsBlah commented 8 years ago

For me it took now... 2 weeks before I received the mail. (after I got banned)

dnsBlah commented 8 years ago

By the way I just noticed that one of the newer accounts got banned This was a pretty randomized/humanized account -no teleporting -no extensive catching -no softunbanning (not needed) -not playing for large amount of hours -wandering through central park -randomized catch parameters, even missing -randomized offsets when set positions -randomized offsets on arrival (on location of pokemon or forts) -no team member -no name change, only initial -no mass evolutions -did inventory cleanup to my max amounts per item(s) -kept pidgeys,rattata's for evolutions later on (didnt yet) -havent left the park at all

and almost exactly 7 days ago I created the account and got banned now maybe shouldve kept time difference in account.. NL <-> New York

dnsBlah commented 8 years ago

sorry for new comment, im on iphone

nequito commented 8 years ago

@dnsBlah what was the level of your account?

I have an hipotesis. I think that they focus on banning accounts with a high level (< level 28) because i´ve been using my old bot on a new account for some time and i´m already level 23 and still no ban.

Also i think bans are higly related to playing for large amount of hours, cause i´ve been using the bot only a couple of hours a day.

dnsBlah commented 8 years ago

@nequito The botted account was almost lvl 22. As I said, no problems at all for 7 days in a row. (approx.. 3-4 hours a day)

drricksanchez321 commented 8 years ago

I've been running a pretty aggressive bot for several days, with a normal humanized sleep schedule and random pauses, 24 and no ban yet. Ive modified the api with regards to altitude. I added random.random()/10 to the constant 8 to factor in a very low noise of .01-.09 meters, sets me apart from other users.

On Aug 20, 2016 2:39 PM, "dnsBlah" notifications@github.com wrote:

@nequito https://github.com/nequito The botted account was almost lvl 22. As I said, no problems at all for 7 days in a row. (approx.. 3-4 hours a day)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/keyphact/pgoapi/issues/106#issuecomment-241216446, or mute the thread https://github.com/notifications/unsubscribe-auth/AUCd3EUX55PWse6k4dpp-ORaprggPjx-ks5qh0nbgaJpZM4JmkHk .

lunarpulse commented 8 years ago

I have got 3 banned out of 6 30+ account. Only 1 account which received the ban email but not indeed permanent banned was an active account which I spent some cash on it. The other banned account were not botted for last 1 week and these ones are fast grown ones without any money spent on it.

In my case, banning are not instantaneously determined and also the spending of money on the account. I guess niantic already has flagged all the suspicious accounts over time or use a long term statistical analysis on each account where you can find it on the status menu in the game and ban forst and release if the user issues an appeal of erroneous ban. This is just an opinio based on my banned accounts.

keyphact commented 8 years ago

Not really an issue, but a topic that should be discussed on other mediums.