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

Calculating checksum in EndClientTurn #25

Open
Nicofisi opened this issue Apr 14, 2017 · 2 comments
Open

Calculating checksum in EndClientTurn #25

Nicofisi opened this issue Apr 14, 2017 · 2 comments

Comments

@Nicofisi
Copy link

Hey, can you please explain how you managed to find what you wrote here? I'd really like to figure out how that works for Clash Royale. Did you use IDA Pro for this, or some other method? I can't offer anything in return but if you help me I'll for sure publish the results somewhere on github so everyone can use it :) Any details would be appreciated. Thanks in advance!

@clanner
Copy link
Owner

clanner commented May 16, 2017

For the protocol, i connect the phone to a wifihotspot on my laptop ( by sharing the wired internet connection to wifi ).
So i can use tcpdump to capture the traffic generated by the game.

the scramble function and the encryption algorithm i found using IDA Pro.

Then after capturing sufficient data, i stare very long at the hexdump of the protocol to see how it all fits together. First trying to decrypt packets manually until i found how exactly the crypto handshake works.

What also helps, is that in some apk's there is a lot more debug information than in others.

@weeco
Copy link

weeco commented Aug 30, 2017

@clanner Interesting post, is there a possibility to contact you via email / discord / skype directly as well?

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

3 participants