Solved MemoryEdit Problem

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

spudge1987

Newbie
Jan 20, 2013
2
152
0
Hello, I am spudge1987 I am new to this community and want to start hacking non copy and pasting. :( I am creating a hack for MapleStory. This is an .exe trainer (executable) not a Dynamic Link Library (.dll) The problem I am getting with my trainer, When ever I enable a hack it immediately crashes the trainer not the game. Am I doing something wrong? Is the memory class not detecting the target process? I am trying to get better at C++ each day and Reversing too.

#include <Windows.h> //is defined also

Mermory Class I am using
C++:
void EditMemory(DWORD address,VOID *pattern, int length)
{
    DWORD OldProtect,ProcessId;
    HANDLE GameHandle = 0;

if(HWND WindowHandle = FindWindow(0, L"MapleStory"))
    {
        GetWindowThreadProcessId(WindowHandle,&ProcessId);

        if(!GameHandle)
                GameHandle = 
				OpenProcess(PROCESS_ALL_ACCESS,false,ProcessId);

        VirtualProtect((VOID*)address,length,PAGE_EXECUTE_READWRITE,&OldProtect);

WriteProcessMemory(GameHandle,(VOID*)address,(VOID*)pattern,length,0);
            VirtualProtect((VOID*)address,length,OldProtect,0);
    }
}
How I defined it on a checkBox.
C++:
void Form1::checkBox2_CheckedChanged(System::Object^  sender, System::EventArgs^  e)
{
if(this->checkBox2->Checked) // Perfect Kami by Benny (GameKiller.net)
{
EditMemory((DWORD)(0x00CE080A), "\xEB\x2E",2); //Allow re-cast while transformed
EditMemory((DWORD)(0x00CE0F97), "\xEB",1); //Remove gauge-requirement
}
else
{
EditMemory((DWORD)(0x00CE1014), "\x74\x08",2); //81 FE E0 7A A4 03 74 ? 81 FE 08 9E A4 03 75
EditMemory((DWORD)(0x00CE17A5), "\x7D",1); //3B C8 7D ? 8D
}
}
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods