Infestation Survivor Stories:Ghost Hack Source Code - LagSwitch

From UnKnoWnCheaTs Game Hacking Wiki
Jump to: navigation, search

by: fredaikis

Info

Hey, as i promised...
This will work for all games..
Its pretty simple, here is a video of how to use it:

Note

Caution.png

If you can't code c++, this is not for you

Source

char* ReadINI(char* szSection, char* szKey, const char* szDefaultValue) 
{ 
     char* szResult = new char[255]; 
     memset(szResult, 0x00, 255); 
     GetPrivateProfileString(szSection,  szKey, szDefaultValue, szResult, 255, ".\\Config.ini");  
     return szResult; 
} 
void Ghost()
{

    //Some Defines
    static bool hue = true;
    static bool hueinit = false;
    static char warthpath[MAX_PATH];

        if (!hueinit) //Only do this shit once
        {
            hueinit = true;
            //Only call this once, in the start 
            sprintf(warzpath,"%s", ReadINI("CONFIG","ISSPath","0"));
            //Delete a rule, in case there was a previous there... avoids spam
            WinExec("netsh advfirewall firewall delete rule name=\"GhostHack\"", SW_HIDE);
            char Command[1024];
            //Create our FireWall Rule
            sprintf(Command, "netsh advfirewall firewall add rule name=\"GhostHack\" dir=\"out\" action=\"block\" program = \"%s\" enable=\"no\" profile=\"any\"", warzpath);
            //Run our little command
            WinExec(Command, SW_HIDE);
        }
        if (GetAsyncKeyState(VK_OEM_5)&1)//Key: "ยบ"
        {
            
                if(hue)
                {
                    hue = false;
                    //Turn on our rule
                    WinExec("netsh advfirewall firewall set rule name=\"GhostHack\" new enable=yes", SW_HIDE);
                    //Turn Off Any Iss Rule...
                    WinExec("netsh advfirewall firewall set rule name=\"infestation.exe\" new enable=no", SW_HIDE);
                    WinExec("netsh advfirewall firewall set rule name=\"Infestation: Survivor Stories\" new enable=no", SW_HIDE);
                }
                else
                {
                    hue = true;
                    //Do the opposite here.
                    WinExec("netsh advfirewall firewall set rule name=\"GhostHack\" new enable=no", SW_HIDE);
                    WinExec("netsh advfirewall firewall set rule name=\"infestation.exe\" new enable=yes", SW_HIDE);
                    WinExec("netsh advfirewall firewall set rule name=\"Infestation: Survivor Stories\" new enable=yes", SW_HIDE);                
                }
            
        }
    
    if(!hue)
    {
        //Draw your "GHOST MODE ON HUEHEUEHU"
    }
}

Your config file:

[CONFIG] 
ISSPath="C:\Blablabla\infestation.exe"

Link