Comments (1)
To recap our discussion from here:
There was a formatting error on the Protocol wiki page, as it should be len(
basekey
+"nonce")
bytes skipped initially. So the steps would be:
- Initialize an RC4 stream with
basekey
+"nonce"
using theRC4()
function provided inrc4.py
. - Skip
len(basekey+"nonce")
bytes in your key stream (seexorstream.py
for an example of this). - The critical bit (that seems to be missing from the wiki) is to XOR your payload against the key stream (see the old
scramble()
function fromcocutils.py
for an example of how to do it).
cocdecoder.py
is used to read the bytes from the decrypted payload into an object.
Note: All of this is obsolete as of the Dec 2015 update.
from cocdp.
Related Issues (20)
- IRC chan? HOT 1
- DMCA HOT 1
- Read Chats? HOT 3
- Scramble changed again (?) HOT 2
- Small update for messages.py HOT 4
- Some more code or at least IDEA is needed HOT 4
- About compressed fingerprint in LoginFailed message
- Is there any document or description about this bot? HOT 6
- Adding API/Remarks on how to login as your own account? HOT 1
- Fully working python CoC Login?
- login/encryption scheme is no longer valid HOT 1
- Clash Royale Documentation HOT 48
- re-compress csv file
- cocprefs.py not returning all values & not correctly
- hey HOT 1
- .sc File deconding HOT 1
- cocprefs.py getting error ... HOT 5
- Calculating checksum in EndClientTurn HOT 2
- How to fix this error? (cocprefs.py )
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocdp.