Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrypt client packets #7

Open
NL0bP opened this issue Aug 13, 2018 · 10 comments
Open

Decrypt client packets #7

NL0bP opened this issue Aug 13, 2018 · 10 comments

Comments

@NL0bP
Copy link
Owner

NL0bP commented Aug 13, 2018

Decrypt client packets

@uranusq
Copy link

uranusq commented Aug 17, 2018

Client messages encrypted with 2 stages:

  1. AES-CBC-128 Encryption
  2. Then aes encrypted message encrypts with XOR procedure similar (but not the same) to server encryption

@NL0bP
Copy link
Owner Author

NL0bP commented Aug 17, 2018

We'll keep thinking.

@uranusq
Copy link

uranusq commented Aug 17, 2018

That is my prototype for now (Python). It works if you get the aes_key and xor_key from memory on running app.
dec_code.zip

@uranusq
Copy link

uranusq commented Aug 17, 2018

So basically i stuck on point of key generation. Do you have any ideas?

@NL0bP
Copy link
Owner Author

NL0bP commented Aug 17, 2018

def init(self, aes_key, xor_key, iv=None):
aes_key & xor_key Where to take?

@uranusq
Copy link

uranusq commented Aug 17, 2018

I don't know how to tell, i have breakpoints in ollydbg on certain functions to get them

@NL0bP
Copy link
Owner Author

NL0bP commented Aug 17, 2018

Give them to me (for crynetwork you can have the last 4 digits). I also use ollydbg.

@NL0bP
Copy link
Owner Author

NL0bP commented Aug 21, 2018

The algorithm for decrypting packets from the client is disassembled.
I try to disassemble how to get the keys.
Thanks uranusq!

@menta2k
Copy link

menta2k commented Aug 6, 2020

Guys its a bit offtopic but i will give it a try.
Do you know how the S2C packets are encrypted when packet level is 5 ?

@NL0bP
Copy link
Owner Author

NL0bP commented Aug 18, 2020

The link is for decrypting SC packets. The encryption algorithm is the reverse of the decryption. https://github.com/NL0bP/Archeage-Server-emulator/blob/master/AAEmu.Commons/Cryptography/EncryptSC.cs

NL0bP pushed a commit that referenced this issue Mar 31, 2024
-refactiong: Login, Game network
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants