creating my first anti hacker

Write your question here.



Hello everybody!

I'm new in the forum , I enjoyed the articles .
Anyway, I'm creating my first anti cheater , I am finding algns problems .
I've already started the project that is below , have not tested it, but I have done some progress , in fact I need help to finish my program .

I'm still taking classes in programming in C and C + + , I am beginner, divide the program as follows :

1 - Program run by the game's executable or program windows .
2 - Program traceability if a program or program xiter not allowed open and closes .
3 - Program sends a report containing data , IP address , ID in the game , or something .
4 - After the program detectaro hacker program blocks the IP address , so that this IP address can not access the game again .
5 - Programme finds and prevents bugs ( debugger ) .
6 - Program only closes when the game is closed.

I got these codes start : ( let me know if it works , if they find an error in the code , suggestions welcome )

# include <stdlib.h>
# include <Windows>

int main ( ) {

system (" program location 1 local anti -hack " ) ;
system (" Local 2 Local program launcher " ) ;
{

DebuggerOn bool ( )
{
    if ( IsDebuggerPresent ())
        return true;

    return false;
}

CloseGame void ()
{
    DWORD ExitCode ;

    GetExitCodeProcess ( GetCurrentProcess ( ) , & ExitCode ) ;

    ExitProcess ( ExitCode ) ;
}

void MainThread ()
{
    while ( true)
    {
        if ( DebuggerOn ())
            CloseGame ();

        Sleep ( 10);
    }
}

BOOL APIENTRY DllMain ( HMODULE hModule ,
                       DWORD reason ,
                       LPVOID lpReserved
                     )
{
    if ( reason == DLL_PROCESS_ATTACH )
    {
        CreateThread (0, 0, ( LPTHREAD_START_ROUTINE ) & MainThread , 0, 0 , 0);
    }

    return TRUE;
}
Topic archived. No new replies allowed.