Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.45 API Update - Fix #5809

Closed
eRobot1 opened this issue Nov 12, 2016 · 31 comments
Closed

0.45 API Update - Fix #5809

eRobot1 opened this issue Nov 12, 2016 · 31 comments

Comments

@eRobot1
Copy link
Contributor

eRobot1 commented Nov 12, 2016

Can someone update the project with the latest API posted?

@eRobot1
Copy link
Contributor Author

eRobot1 commented Nov 12, 2016

pogodevorg/pgoapi#155

@eRobot1 eRobot1 closed this as completed Nov 12, 2016
@eRobot1 eRobot1 reopened this Nov 12, 2016
@MerlionRock
Copy link
Contributor

MerlionRock commented Nov 12, 2016

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

@eRobot1
Copy link
Contributor Author

eRobot1 commented Nov 12, 2016

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

@MerlionRock
Copy link
Contributor

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.

@eRobot1
Copy link
Contributor Author

eRobot1 commented Nov 12, 2016

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?

@MerlionRock
Copy link
Contributor

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

pogodevorg/pgoapi@ceb8dd5

@eRobot1
Copy link
Contributor Author

eRobot1 commented Nov 12, 2016

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
Copy link
Contributor Author

eRobot1 commented Nov 12, 2016

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

@Dr8g0n
Copy link

Dr8g0n commented Nov 12, 2016

@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!

@claudioferrari
Copy link

claudioferrari commented Nov 12, 2016

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

Thx

@db-coder
Copy link

Can someone post some detailed steps please?

@eRobot1
Copy link
Contributor Author

eRobot1 commented Nov 12, 2016

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 eRobot1 changed the title 0.45 API Update 0.45 API Update - Fix Nov 12, 2016
@Dr8g0n
Copy link

Dr8g0n commented Nov 12, 2016

@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 :-(

@eRobot1
Copy link
Contributor Author

eRobot1 commented Nov 12, 2016

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
Copy link
Contributor Author

eRobot1 commented Nov 12, 2016

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

@enginebai
Copy link

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

@eRobot1
Copy link
Contributor Author

eRobot1 commented Nov 12, 2016

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

@MerlionRock
Copy link
Contributor

@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.

@tunayuyar
Copy link

So for linux what needs to be done?

@eRobot1
Copy link
Contributor Author

eRobot1 commented Nov 12, 2016

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

@tunayuyar
Copy link

@ElliotRobot1 so i suppose when it offers to update it at first run I should say no right?

@MerlionRock
Copy link
Contributor

@tunayuyar If you have updated, follow @ElliotRobot1 instructions. Make sure you have both the encrypt and the hash files in \src\pgoapi\pgoapi\lib

The hash files download from Noctem's repo https://github.com/Noctem/pokecrypt-pgoapi/tree/a9a36903277fc0f0fa31827eff8f166b127417ff

The files name might also have change, in that case, you'll need to search /pokemongo_bot/init.py and replace the old file names with new ones, or simply make sure you edit new files to old file names, which ever is easier for you.

@Dr8g0n
Copy link

Dr8g0n commented Nov 12, 2016

@ElliotRobot1 , thx!

updating the OLD files and using the new dylib worked!
if it complains about missing file, just go to \src\pgoapi\pgoapi\lib and create the symlink for the file it asks or just rename the file

@eRobot1
Copy link
Contributor Author

eRobot1 commented Nov 12, 2016

You got it! Once they commit, someone can create a PR with the changes here to get the repo updated, in the interim happy boting!

@tunayuyar
Copy link

@MerlionRock @ElliotRobot1 thanks. It was working when I asked not to update(since it overrides the changes I did)

So far it is working.

@tunayuyar
Copy link

Also please note guys:

update rpc_api.py by
(Change value may be different) sig.field25 = 10038237239822475814
(To) sig.field25 = 16892874496697272497

I did have "-" infront of my sig.field25 value it needs to removed.

@houkop
Copy link

houkop commented Nov 12, 2016

there are no libs for centos now, right?

@tunayuyar
Copy link

@houkop unless you have specific reason to use centos, you can use virtualbox > ubuntu, thats what im doing on windows.

@MerlionRock
Copy link
Contributor

Guys! It should be working soon~

They have committed the files in https://github.com/pogodevorg/pgoapi/tree/master/pgoapi

@joltir
Copy link

joltir commented Nov 12, 2016

update (setup -u) gave this:
Obtaining pgoapi from git+https://github.com/sebastienvercammen/pgoapi.git#egg=pgoapi (from -r requirements.txt (line 3))
git clone in ./src/pgoapi exists with URL https://github.com/pogodevorg/pgoapi.git/
The plan is to install the git repository https://github.com/sebastienvercammen/pgoapi.git
What to do? (s)witch, (i)gnore, (w)ipe, (b)ackup s
Switching clone ./src/pgoapi to https://github.com/sebastienvercammen/pgoapi.git

Is this ok? Do i have api 0.45 now? Or did i hace to select an other option as s?

@solderzzc
Copy link
Contributor

Latest commit updated to the new API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants