Git Product home page Git Product logo

cocdp's Introduction

Clash of clans documentation project

  • Protocol
  • [Protocol Messages](../../wiki/Protocol Messages)
  • [Protocol Commands](../../wiki/Protocol Commands)
  • [Object Identifiers](../../wiki/Object Identifiers)
  • [Csv Files](../../wiki/Csv Files)
  • [Sc Files](../../wiki/Sc Files), and all the Bitmaps
  • Versions
  • The protocol is quite similar to that of Hayday and BoomBeach
  • Servers - list of clash of clans servers
  • Configuration - how are your user credentials stored

links

assets

... Sigh: some stupid lawyer dude goes pushing around the poor people of github, and forces them to ask me to remove the unzipped asset files.

cocdp's People

Contributors

clanner avatar clugh avatar viproz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cocdp's Issues

login/encryption scheme is no longer valid

Has anyone worked out the new 10100/20100 setup?

Also, the old androidgamehacks forum threads are either dead or behind their new VIP wall. Is there any meaningful discussion going on there? If not, is there a better place to join in?

cocprefs.py getting error ...

While running this code getting error at #cocprefs.py line 126 at print function.
Can you please suggest me which python version prefer to this code

Some more code or at least IDEA is needed

I just added some code to your default decompress_csv.py and managed to get human readable files. But how do i recompress them. So if you have any idea about what a compress.py program may contain or IF you have program ready. Please let me know either here or in personal at [email protected].

Calculating checksum in EndClientTurn

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!

How to fix this error? (cocprefs.py )

python cocprefs.py --from 592174f07a037393 "E:\Users\1219\Desktop\script\change_Lang_bot\z-7.xml"
Traceback (most recent call last):
File "cocprefs.py", line 7, in
from xml.sax.saxutils import escape as xml_escape
File "C:\Python27\lib\xml\sax\saxutils.py", line 6, in
import os, urlparse, urllib, types
File "C:\Python27\lib\urllib.py", line 26, in
import socket
File "C:\Python27\lib\socket.py", line 47, in
import _socket
ImportError: DLL load failed: The specified procedure could not be found.

IRC chan?

Hey clanner,

Great work here! I really appreciate all you put in this and i seriously want to thank you!

If you know other people interested in reversing coc (I for myself am trying to write a sort of proxy to dump live communication) we should really create an irc chan if it doesn't exist yet.

Again, thanks for everything!

How to use cocdecoder.py?

Hello,This project is well documented but there is no demo or simple script to show how to decrypt packets.
im using client version 7.65 and i wanted to use cocdecoder.py to decode packets but all functions required some information like data,name,decoder or ...
but my problem is that i dont know what to do with the Encrypted packet i get directly from client...
before calling functions i have to do some proccessing on the packet but i dont know what to do?
i would be happy if someone gives me a simple demonstration of usage of this project

Read Chats?

Hi,

Can this project be used to read real-time chats and statistics from a CoC account?

Thanks

cocprefs.py not returning all values & not correctly

Windows, Python 3.4 is just a no go with this script.
So used python 2.7 with pscrypto 2.6 with storage.xml from CoC v.8.212.12

That does work, but only small subset of string name from storage.xml gets decrypted & even then some values are obviously wrong ie

<string name="ð◄a┴Xwù☻N"></string>

sebus

DMCA

I'm going to save every page of the wiki just in case anything real bad happens.

May I suggest going to bitbucket like WhatsAPI did?

Small update for messages.py

Clanner thank you for all this information.
Some messages have changed (version 7.650). Below, a few changes I made.
Currently I try to get as much as possible data from the clan. If anyone is doing the same, we can work together to get faster progress.
Sometimes I use "?" before name when it is not verified.

14302:{"name":"AskForAllianceData", "format":{"..6.000":"dd", "7.650..":"q"}},
24101:{"name":"OwnHomeData",
        "format":{
            "7.650..":"ddddqdddbsdqq?(qsddd)?(q)?(q)dddddssdddddddddddddd?(q)bdddd#[dd]#[dd]#[dd]#[dd]#[dd]#[dd]#[dd]#[dd]#[dd]#[ddd]#[d]#[d]#[dd]#[dd]#[dd]#[dd]ddd",
        },
            "7.650..":"? ? timestamp ? userid shieldtime ? ? ? compressed ? userid1 userid2 clan (id name badge ? level) ? () ? () ? ? ? alliance_units_count townhall_level username facebookid stars points diamonds diamonds2 ? ? trophies attacks_won attacks_lost defenses_won defenses_lost ? ? ? ? () ? ? ? ? ? storage [storage capacity] resources [resource quantity] units [unit quantity] spells [spell quantity] unit_upgrades [unit level] spell_upgrades [spell level] hero_upgrades [hero level] hero_health [hero health] hero_state [hero state] alliance_units [unit quantity level] tutorial_progress [] achievements [achievement] achievement_progress [achievement progress] npc_progress [] npc_gold [] npc_elixir []",
        },

24301:{"name":"AllianceData", "format":{
"7.650..":"qsdddddddddddddsdbdd#[qsddddddddbddbq]", #qsddqsdd
        },"fields":{
            "7.650..":"clanId clanName ? ? ?warsWon totalPoints requiredTrophies ?members ? ?clanLevel shield ?warFrequency ? clanPerksPoints ? description ? ? ? ? members [id name role level leagueLevel trophies troopsDonated troopsReceived rank previousRank newMember ?clanWarPreference ?clanWarPreference2 ? userId2]"}},

2:{"name":"Chat", "format":{
    "7.650..":"ddbqqsdddds",
},
   "fields":"id ? messageId userId homeId userName ? ? ? ? text"
   },

Scramble changed again (?)

Im able to decipher the Login & Encryption packet with basekey + "nonce", however, after generating the new nonce im only getting rubbish. Since the rc4 algorithm seems to work the blame is on the nonce scrambler. But im not skilled enough to verify this, any ideas?

.sc File deconding

Hi,

Can you help me to solve this error !

"struct.error: unpack_from requires a buffer of at least Z bytes"
Z depends to file size
Tahnks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.