im not realy sure if this should be posted in visual c++ or here, but this is the scenario.
(note: i am no assembly programmer, i just understand the basics)
i have a project which loads a DLL (win32). this dll manages connections to a server.
anyway. i dont have access to the code of this dll, only the compiled release.
what i want to do is insert a simple ip check into the DLL because some nice people on the internet are filling the server with "fake players".
i have read articles on code injection (such as but was wondering if there was a simpler way to "patch" the dll itself.
ie can i simply write some code to check the ip and insert it into the dll and modify a few calls?
i can post the function if it would help the understanding of my question but in a pseudo code way.
hope that makes sense.
if any more info is needed to post an answer ask away
thnx in advance
If somethings hard to do, its not worth doing - Homer Simpson
(note: i am no assembly programmer, i just understand the basics)
i have a project which loads a DLL (win32). this dll manages connections to a server.
anyway. i dont have access to the code of this dll, only the compiled release.
what i want to do is insert a simple ip check into the DLL because some nice people on the internet are filling the server with "fake players".
i have read articles on code injection (such as but was wondering if there was a simpler way to "patch" the dll itself.
ie can i simply write some code to check the ip and insert it into the dll and modify a few calls?
i can post the function if it would help the understanding of my question but in a pseudo code way.
Code:
void somefunction(..some params)
{
len=recvfrom(..some params)
if(len && len!=ERROR)
if(buff[0]=0x00)
//before i process the requested feature
//i want to check ip address for being banned
//if so i want to return
if(buff[1]=0x01)
else(buff[1]=0x03)
else()
else
//not interested in this section
return
}
hope that makes sense.
if any more info is needed to post an answer ask away
thnx in advance
If somethings hard to do, its not worth doing - Homer Simpson