Memory identifier is not defined

Asked

Viewed 3,097 times

0

The script would basically be this.

#include

pragma comment(lib,"user32.lib")

DWORD WINAPI th(LPVOID param)

{ while (TRUE) {

    if (GetAsyncKeyState(VK_F1) & 1)
    {


        Memory mem = new Memory();
        DWORD PID = mem->GetProcessByName("PROCESSO");

        bool bypassed = false;
        bool IsAttach = false;



        for (;;)
        {
            if (mem->GetProcessByName("PROCESSO") == 0)
            {
                IsAttach = true;
                exit(0);
            }
            if (!bypassed)
            {
                if (mem->GetModuleBase32("MODULO DO PROCESSO", PID) > 0)
                {
                    Sleep(1000);


                    mem->FindPattern32("PROCESSO", 0x00000000, 0x00000000, (BYTE)"\x00\x00\x00\x00\x00", 5);
                    WriteProcessMemory(OpenProcess(PROCESS_ALL_ACCESS, false, PID), (LPVOID)mem->Result32[0], (PBYTE)"\x00\x00\x00", 3, 0);


                    mem->Free();

                    mem->FindPattern32("PROCESSO", 0x00000000, 0x00000000, (BYTE*)"\x00\x00\x00\x00\x00\x00\x00\x00\x00", 9);
                    WriteProcessMemory(OpenProcess(PROCESS_ALL_ACCESS, false, PID), (LPVOID)(mem->Result32[1] - 14), (LPVOID)"\x00", 1, NULL);

                    bypassed = true;

                    IsAttach = true;
                }
            }
            if (bypassed)
            {
            }
        }
        Sleep(100);
    }

} Return 1; }

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lplpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: Createthread(NULL, NULL, (LPTHREAD_START_ROUTINE)th, NULL, NULL, NULL); break; case DLL_PROCESS_DETACH: break; default: break; }

return(TRUE);

}

You’re making that mistake

"the "Memory" identifier is not defined".

I don’t know if I forgot to care about anything or if I’m doing something wrong..

  • 1

    And you put the include necessary? At the time of compiling specified what the library should be included? If you didn’t do this I suggest starting with simpler things before moving on to more complex things.

  • 1

    put your entire code to give us a better definition of what’s going on

  • I put the whole code in now

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.