View Full Version : Merry Xmas to All - C# login packet source
well.. my present to everyone this xmas ^^
enjoy... hope this'd be some use to some ppl ^^
TheOrder
24.12.2005, 10:31
Digi when it comes to C# you rule , tnx for the share !!! Merry Christmas to you !!!
man, you got me for a couple minutes
i tho this was retail's packet info, but too bad, its from l2j
I was all pumped to see RequestAuthLogin packet, but santa left me a stockin full o coal on that one!
("The Order" mode=on) "Oh <put Your favourite developer name here> You rule so much" ("The Order" mode=off)
Flamestrike
24.12.2005, 21:52
@ Digital & torune: provide me a good sniffer and I can make it happen
TheOrder
24.12.2005, 21:53
You have nothing better to do ?? Or you just wanna pick on me ??
yeah.. it's all converted from l2j ;p
what's wrong with the RequestAuthLogin packet?
It won't decrypt the RSA part of the packet :)
Windows Crypto API doesn't support unpadded RSA decryption, so you can't use any of C#'s built in methods to decrypt it. I worked around it using a BigInt class with a modpow function, but it performs like crap on top of crap, adding almost 500% to the time it takes to handle the packet, and for some reason it doesn't work at random times. I think it has something to do with me generating RSA keys using C# RSACryptoProvider, but decrypting in the BigInt class and it's mishandling of Big/Little Endian order (an M$ "bug"). So I just reverted back to supporting the old encryption (C1- C3) but left the code in for when I get it hammered out.
I'm practically useless when it comes to crypto, I know most of the basic math involved, but thats the extent of it. Torune was supposed to be working on an updated version of Authd that supports the new encryption but I havent heard about it for awhile, he probably got fed up with the same black hole of despair that I went through when trying to deal with it. Sad part is, its almost no differant then the old encyption minus the RSA part and a larger packet length (due to sending RSA public key).
SupportClass is not included? :)
hmm.. anyone tried crypto.net libs?
maybe worth a try?
hm..... google doesn't know this lib :) Do you have direct link to its home page