NodeJS client to connect to Clash Royale servers.
- Connect and login into Clash Royale servers
- Basic actions:
- Fetch player and clan stats
- Get tops
- Invite to a clan
- ...
This is a basic client. Now is your turn. Modify the client and add functions to fit it to your requirements.
- python3.6
You will need a rooted device
- Download decrypt.py tool
- Pull storage_new.xml file from your device. Usually it's located in
/data/data/com.supercell.clashroyale/shared_prefs
. - Run
python decrypt.py storage_new.xml
. Look forPass_PROD
key, the value is your token.
node index
If you want to save the packets dumps to replay later run the client with the option --save
(or -s
)
node index --save
Client will save the packets in the folder specified in config.js
.
Then you can decode again saved messages using the option --replay
(or -r
):
node index --replay
The client has built-in support for save multiple sessions.
- Press Alt + C to type a command
- Type 'help' to get started
- Run
npm install
- Rename config.example to config.js and modify your credentials
- iGio90 for the new key and all the amazing contributions he does
- dcsposh for blake2b logic (blakejs)
- clugh for documentation of the Clash Royale protocol
- Contributors of node-cr-proxy for packetreceiver and bytebuffer-sc libs