aperpen / clash-royale-client

NodeJS client to connect to Clash Royale servers
GNU General Public License v3.0
49 stars 16 forks source link

clash-royale-client

NodeJS client to connect to Clash Royale servers.

What can it do?

This is a basic client. Now is your turn. Modify the client and add functions to fit it to your requirements.

Installation

Getting a token (Android)

You will need a rooted device

  1. Download decrypt.js tool
  2. Pull storage_new.xml file from your device. Usually it's located in /data/data/com.supercell.clashroyale/shared_prefs.
  3. Run node decrypt.js. Look for your account in SCID_PROD_ACCOUNTS key, the value contains your token.
  4. Put your token in scidtoken key in config.js

Usage

Running the client

node index

Using the replay option

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.

Commands

Credits