Page 1 of 1

Packet Hook Stuff

Posted: Tue Jan 02, 2007 11:36 am
by tekproxy
When hooking packets, before a character logs in, it would be helpful to at least get the IP address.

Sometimes it's necessary to keep track or recognize clients before the login, like when you're trying to prevent excessive invalid login credentials. The only way to do this right now is to ban the account for some period of time, which could easily turn into a nasty denial of service. If I could get the IP I could store it somewhere and when that IP fails to login too many times it gets banned for a period of time instead of the account.

Posted: Tue Jan 02, 2007 11:49 am
by MuadDib
Does it send Uninitialized Object for character in pre-login packets? Too lazy to create a packethook and all just to look :D

Posted: Tue Jan 02, 2007 11:53 am
by tekproxy
Yes, it does. :(

Posted: Tue Jan 02, 2007 3:09 pm
by Turley
I would prefer an accountreference not only the ip for all preloginhooks so we have more control :) I missed this during my try to hook packet 0x00.

Posted: Tue Jan 02, 2007 3:31 pm
by MuadDib
Tek and me will be testing with it. Tried account name, but unsure when it actually gets applied to the client in the core...... so will have to research if it's doable for that much.