PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

0.45 API Update - Fix

Open eRobot1 opened this issue 10 years ago • 31 comments

Can someone update the project with the latest API posted?

eRobot1 avatar Nov 12 '16 01:11 eRobot1

https://github.com/pogodevorg/pgoapi/pull/155

eRobot1 avatar Nov 12 '16 01:11 eRobot1

They haven't merge yet. Just wait.

I got it working but I only change for my Mac os only....

Who ever updating the project for Mac under get_hash_lib(self) use .dylib extension instead of .so

Also note no changes for encrypt

MerlionRock avatar Nov 12 '16 03:11 MerlionRock

which file did you update the extensions in? going to manually modify to get working on Win

eRobot1 avatar Nov 12 '16 03:11 eRobot1

The extension changes is only for Mac.

My guess is overwrite your existing DLL with the updated 0.45 should get you working on the new API.

MerlionRock avatar Nov 12 '16 03:11 MerlionRock

get errors when starting bot after updating files and changes from 0.45. I assume you updated your src/pogoapi folder with the new changes (commit by Noctem) and it worked?

eRobot1 avatar Nov 12 '16 03:11 eRobot1

@ElliotRobot1 I make changes to rpc_api.py & utilities.py too

https://github.com/pogodevorg/pgoapi/pull/155/commits/ceb8dd58039cb406a013c4d572df12c782df261b

MerlionRock avatar Nov 12 '16 04:11 MerlionRock

I did as well.

On Nov 11, 2016, at 11:16 PM, MerlionRock [email protected] wrote:

@ElliotRobot1 I make changes to rpc_api.py & utilities.py too

pogodevorg/pgoapi@ceb8dd5

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

eRobot1 avatar Nov 12 '16 04:11 eRobot1

Got it working with new 0.45 API! PM me for the details.

eRobot1 avatar Nov 12 '16 05:11 eRobot1

@ElliotRobot1 Keep getting error after pulling new changes from pogodevorg/pgoapi@ceb8dd5

File "/Users/xxxxxx/Documents/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 310, in _generate_signature signature = b''.join(list(map(lambda x: six.int2byte(x), output.contents))) ValueError: NULL pointer access [2016-11-11 21:40:53] [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/) Traceback (most recent call last):

Can't seem to PM you on github. Could you give some details here?

Thanks!

Dr8g0n avatar Nov 12 '16 05:11 Dr8g0n

same here, did you solved it? @ElliotRobot1: can you pls show details?

Thx

claudioferrari avatar Nov 12 '16 09:11 claudioferrari

Can someone post some detailed steps please?

db-coder avatar Nov 12 '16 12:11 db-coder

Instructions Below:

https://github.com/Noctem/pokecrypt-pgoapi/tree/a9a36903277fc0f0fa31827eff8f166b127417ff grab libniantichash-windows-x86-64.dll rename to niantichash64.dll replace file in \src\pgoapi\pgoapi\lib grab libpcrypt-windows-x86-64.dll rename to encrypt64.dll replace file in \src\pgoapi\pgoapi\lib Also update all other encrypt.dll locations (windows_bat). update rpc_api.py by (Change value may be different) sig.field25 = 10038237239822475814
(To) sig.field25 = 16892874496697272497
update utilities.py by (Change)HASH_SEED = 0x61247FBF # static hash seed from app
(To)HASH_SEED = 0x46E945F8 # static hash seed from app

Should work at this point. Cant confirm if it actually using the new API 0.45 You can also wait for the full commit, devs are really close.

eRobot1 avatar Nov 12 '16 14:11 eRobot1

@ElliotRobot1 changes in rpc_api.py and utilities.py are already there if you pull down from https://github.com/Noctem/pgoapi.git@ceb8dd58039cb406a013c4d572df12c782df261b

I downloaded new files from https://github.com/Noctem/pokecrypt-pgoapi/tree/a9a36903277fc0f0fa31827eff8f166b127417ff But same error :-(

Dr8g0n avatar Nov 12 '16 15:11 Dr8g0n

you cant pull down the rpc_api and utilities files because they do not include the encrypt path hashs, so you need to use the old 0.43.3 file and simply modify them manually as per above.

eRobot1 avatar Nov 12 '16 15:11 eRobot1

@Dr8g0n make sure libpcrypt-windows-x86-64.dll is present in the lib folder as well. pgoapi.zip

eRobot1 avatar Nov 12 '16 15:11 eRobot1

From 0.43 -> 0.45, the encryption does not changed, but only hash.

enginebai avatar Nov 12 '16 15:11 enginebai

on Discord, devs has to update some paths in the crypto files, code didn't change (from what I understand)

eRobot1 avatar Nov 12 '16 15:11 eRobot1

@ElliotRobot1 Yes, when I say "make changes to rpc_api.py & utilities.py", I mean edit the old files and replace the hash in the files. Encrypt, from what I last heard, no change.

MerlionRock avatar Nov 12 '16 15:11 MerlionRock

So for linux what needs to be done?

tunayuyar avatar Nov 12 '16 15:11 tunayuyar

@tunayuyar update the utilities.py hash and encrypt paths for the Linux section. Use Noctem's .so files.

eRobot1 avatar Nov 12 '16 16:11 eRobot1