coc-proxy icon indicating copy to clipboard operation
coc-proxy copied to clipboard

v9 encryption

Open zyxwvuts opened this issue 7 years ago • 17 comments

This is a continuation of the other v9 encryption thread that was closed because the kids were spamming it.

To recap the state of where we are with that, we can update the client_globals.csv property USE_PEPPER_CRYPTO to false and this will cause the client to send/receive messages using the old RC4 encryption. This can be used to communicate with private servers and Ficture7 indicates that it can be used to connect to the live server (at least I think that's what he was saying).

I'm still working to reverse the normal encryption, but could use direction from people more accustomed to to disassembly using IDA Pro.

What methods are people using to get IDA running against this? x86 or ARM? Any emulators that are debuggable? I've gotten it to attach to a process running on a physical ARM device , but IDA (at least version 6.8) doesn't support breakpoints on ARM devices. I figured the general idea would be to drop a breakpoint when the RC4 key address is read (I would switch it to RC4 mode where I know the key's address) and then walk the stack backwards to find where it branches from the "normal" encryption to RC4.

zyxwvuts avatar Jun 02 '17 23:06 zyxwvuts

maybe https://stackoverflow.com/questions/38477795/how-to-use-connect-adb-with-emulator-like-memu-bluestacks-nox-app-player .Btw could you DM me on discord knightking10#6482

knightking100 avatar Jun 02 '17 23:06 knightking100

I don't think the live server accepts messages using the old encryption - at least I can't get it to work at all. Anyhow, if the live server can still accept connections with USE_PEPPER_CRYPTO set to false, then why can't that be used as a MITM anyways, just disregarding the new version? I doubt they'd leave that big of a security loophole, given that they're obviously actively working against modders.

likuilin avatar Jun 10 '17 04:06 likuilin

Yeah, they modified the server to no longer accept the RC4 messages. I guess the encryption type was passed as part of the handshake (10100) message, but I never verified it.

zyxwvuts avatar Jun 10 '17 04:06 zyxwvuts

Ladies, please, ladies, calm down. I don't understand why you people want the crypto soo baaad, what are you going to do with it ? Nothing, trash. So please, ladies, get the fuck out of my property

BerkanYildiz avatar Jun 13 '17 22:06 BerkanYildiz

^^

zzVertigo avatar Jun 13 '17 23:06 zzVertigo

Your property, BeekanYildiz? Seriously? You get off our discussion thread.

likuilin avatar Jun 13 '17 23:06 likuilin

  1. Berkan*
  2. We are already on the live servers with the old crypto. How do you think we got this far?

zzVertigo avatar Jun 13 '17 23:06 zzVertigo

@likuilin Ouch. What you are saying right now hurts.

BerkanYildiz avatar Jun 13 '17 23:06 BerkanYildiz

I don't know and I don't care how you got this far, if you're not willing to share then you shouldn't be here. Why the heck do you need to come here to brag about getting servers with the old crypto first? It isn't "your" crypto and it isn't "your" thread. GTFO.

This is the last drama related message I'm going to post here, because I don't want to fill this thread with unrelated drama too, for the future ones reading. For your information, I admin a network of a lot of clans, and use the crypto to automate the gathering of war weight data - I don't think there's anyone but me that's working on a non-vanilla client, rather than a non-vanilla server. There's more uses to the Clash protocol than y'alls' little world of modded servers.

likuilin avatar Jun 13 '17 23:06 likuilin

"For your information, I admin a network of a lot of clans, and use the crypto to automate the gathering of war weight data - I don't think there's anyone but me that's working on a non-vanilla client, rather than a non-vanilla server. There's more uses to the Clash protocol than y'alls' little world of modded servers."

There is also a difference between making $0 and $1,000 🤷 ¯_(ツ)_/¯

zzVertigo avatar Jun 13 '17 23:06 zzVertigo

Anyways, I'm done talking to jealous people. Good luck with the updated crypto lmao.

zzVertigo avatar Jun 13 '17 23:06 zzVertigo

Is anyone working on it? We got a group on discord, if you want to join us i'll start dig this afternoon. Do we have any info about the new crypto? I red the old issue and someone said they could concatenate keys in runtime but im not that sure they are doing like this.

iGio90 avatar Jul 02 '17 10:07 iGio90

I've been poking at it daily with a haphazard combination of Flex and Frida and manually working out what obfuscated name does what, but with honestly no "real" progress as I don't have any formal RE experience and don't have IDA haha, just have loads of creativity and time. I'd love to join the Discord group though

likuilin avatar Jul 02 '17 19:07 likuilin

We have some discoveries!! Nice to have a frida in! I can use it quite good too! Ping me on discord

iGio90 avatar Jul 02 '17 20:07 iGio90

My tag's [redacted], idk yours, you ping me :P

likuilin avatar Jul 02 '17 20:07 likuilin

I've made a little headway as well. Add me to the discord if you don't mind. zyxwvuts#4660

zyxwvuts avatar Jul 03 '17 15:07 zyxwvuts

doing it https://discord.gg/hTVhy3V

iGio90 avatar Jul 06 '17 23:07 iGio90