royale-proxy / cr-proxy

A simple Clash Royale proxy, implementing the new encryption, built on top of Twisted in Python 3.5.
https://discord.gg/BuUtGPM
24 stars 7 forks source link

1.8.2 Version ? #8

Closed S1M0N38 closed 7 years ago

S1M0N38 commented 7 years ago

Where I can find the Keys, Key Offsets and URL Offsets for 1.8.2 Version

Galaxy1036 commented 7 years ago

Key for 1.8.2 are the same as 1.8.1

erichegit commented 7 years ago

What might be the problem if I get

ClientHello: { "protocol": 1, "keyVersion": 10, "majorVersion": 3, "minorVersion": 0, "build": 193, "contentHash": "f3df9782c358....", "deviceType": 2, "appStore": 2 } ServerHello: { "sessionKey": "8ac12e14d017...." } Failed to decrypt the message (server, 10101). connection from 192.168.1.x:53721 closed ... connection to 54.190.22.27:9339 closed ...

Galaxy1036 commented 7 years ago

It's because you use the original APK you need to patch one with cr-patcher

erichegit commented 7 years ago

thX - working fine. Can you please explain why patching is so important?

With COC (when I was active) I always used the APK from the app store - it was only to know the encryption algorithm and the seed + key,...

Galaxy1036 commented 7 years ago

Patching was important cuz the game use asymetric crypto protocol so if you wan't to decrypt packet you need the Supercell private key who is impossible to know. So we are using modded public key to use private modded key then we can decrypt all data (public key was in libg.so )