Newbie Spellweaver
- Joined
- Aug 17, 2017
- Messages
- 5
- Reaction score
- 0
i like penis
Last edited:
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!int nLen;
int dwKey = bUseKey ? dwKey : 0;
int nRes = dwKey;
byte[] pDest;
byte[] pSrc;
for (int i = 0; i < nLen; ++i) {
pDest[i] = dwKey + pSrc[i];
nRes = i + 1;
}
return nRes;
Funny, I looked into this yesterday but in the client I had all references to a5 set it to 1 so I didn't bother checking it. I'm going to take a look now but no guarantees
so like i looked at it and saw this:
So it's clearly not such a complex encryption. I renamed the vars in notepad based on kmst, the vars passed to this crypt are identical to the ones passed to the CAESCipher::Encrypt giving me this:
And translating that to java will give you this:
PHP:int nLen; int dwKey = bUseKey ? dwKey : 0; int nRes = dwKey; byte[] pDest; byte[] pSrc; for (int i = 0; i < nLen; ++i) { pDest[i] = dwKey + pSrc[i]; nRes = i + 1; } return nRes;
And that should do the trick
Credits to @sunnyboy for checking my IDA translation since i'm a noob that likes to have his work checked by a master.
Help ~~
How to use this for mapleshark
tried this.. no work
PHP:public void TransformAES(byte[] pBuffer) { for (int i = 0; i < pBuffer.Length; i++) { pBuffer[i] = (byte)(mIV[0] + pBuffer[i]); } }
You are using mIV[0], so the addition would never be correct. IV's in the client are integer numbers, a lot of src's incorrectly (but for convenience prolly cuz it was annoying to add) use 4 byte array's for IV's instead. If you want this crypto to work you're gonna have to cast the byte array IV into an Integer. Keep in mind that the client uses an unsigned integer btw.
On a side note, InnoHash also changed (the function that generates a new IV). But it seems to yield the exact same results for IV's as before so don't worry about it too much.
thx. i can see inbound packet now... but why cant i see outbound??
inbound:
outbound:
is there some other encryption for outbound...?