clanner / cocdp Goto Github PK
View Code? Open in Web Editor NEWClash of Clans Documentation Project
Clash of Clans Documentation Project
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].
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?
As the title.....
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?
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.
how re-compress csv file to lzma?
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
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!
What is the compression method of the compressed fingerprint in LoginFailed message?
Is it possible to login fully with this (opening an rc4 stream, etc.), using the CoCdecoder.py and such? Thanks.
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"
},
Hi,
Can this project be used to read real-time chats and statistics from a CoC account?
Thanks
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
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
H
I would be interested in knowing how to capture packets from my phone to use in this program. Do I use wireshark then decode it with the rc4 cipher provided?
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
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?
Are there any plans in the future for writing some documentation for Clash Royale?
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.