Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   L2C# General (https://postpacific.mmorpg-game.online/forumdisplay.php?f=48)
-   -   Merry Xmas to All - C# login packet source (https://postpacific.mmorpg-game.online/showthread.php?t=2866)

Digital 24.12.2005 09:33

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 !!!

torune 24.12.2005 16:57

man, you got me for a couple minutes
i tho this was retail's packet info, but too bad, its from l2j

Sindol 24.12.2005 18:20

I was all pumped to see RequestAuthLogin packet, but santa left me a stockin full o coal on that one!

Eliot 24.12.2005 21:46

("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 ??

Digital 25.12.2005 04:15

yeah.. it's all converted from l2j ;p
what's wrong with the RequestAuthLogin packet?

Sindol 25.12.2005 10:01

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).

navy 26.12.2005 11:06

SupportClass is not included? :)

Digital 27.12.2005 09:44

hmm.. anyone tried crypto.net libs?
maybe worth a try?

navy 27.12.2005 11:47

hm..... google doesn't know this lib :) Do you have direct link to its home page


All times are GMT. The time now is 21:46.