Muemu Packet Flood Protection

Started by ShadowCode, Yesterday at 04:19 AM

ShadowCode

Most of the sourcein the forum dont have this Rate limiting, people could easily sending malicious packet to your gameserver and flood the dataserver (Queue Size) causing lag, disconnect and dupe.

Today i will show you how to apply this protection.

in Gameserver Protocol.cpp find this:

void CGCharacterInfoRecv(PMSG_CHARACTER_INFO_RECV* lpMsg,int aIndex) // OK

void CGCharacterDeleteRecv(PMSG_CHARACTER_DELETE_RECV* lpMsg,int aIndex) // OK

void CGCharacterCreateRecv(PMSG_CHARACTER_CREATE_RECV* lpMsg,int aIndex) // OK

void CGMapServerMoveAuthRecv(PMSG_MAP_SERVER_MOVE_AUTH_RECV* lpMsg,int aIndex) // OK

void CGPositionRecv(PMSG_POSITION_RECV* lpMsg,int aIndex) // OK

void CGChatWhisperRecv(PMSG_CHAT_WHISPER_RECV* lpMsg,int aIndex) // OK

void CGChatRecv(PMSG_CHAT_RECV* lpMsg,int aIndex) // OK





And you can replace with this:

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.



At the end of your protocol.cpp add:
You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.


Protocol.h

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.

SPK

  •  

Demonu

great what you offer, but please provide a tutorial with steps on how to install it, what program do you need, well if you want
  •  
    The following users thanked this post: SPK


Powered by SMFPacks Ads Manager Mod