Skip to content

samyk/clash-royale-client

 
 

Repository files navigation

clash-royale-client

NodeJS client to connect to Clash Royale servers.

What can it do?

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

Getting a token (Android)

Requirements

  • python3.6

You will need a rooted device

  1. Download decrypt.py tool
  2. Pull storage_new.xml file from your device. Usually it's located in /data/data/com.supercell.clashroyale/shared_prefs.
  3. Run python decrypt.py storage_new.xml. Look for Pass_PROD key, the value is your token.

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

  • Press Alt + C to type a command
  • Type 'help' to get started

Installation

  • Run npm install
  • Rename config.example to config.js and modify your credentials

Credits

About

NodeJS client to connect to Clash Royale servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%