Help writing to memory.
Hey guys, I'm making my hack still,,, I have tons D3D functions ALL working with a hook and everything... but for some reason,,, no matter what method I try,,, It won't write to memory. Maybe it is and my # of guns for gun loop is wronge?? the thread definitely is starting cause I got MsgBox in it.
So here's my DLL Main (working) and my Hacks thread. (not giving my hooks lol)
Code:
#pragma region DllMain/Thread
void Hooker(void *)
{
Sleep(10);
_beginthread (MyHacks, 0, 0);
}
BOOL WINAPI DllMain(HMODULE dHandle, DWORD nReason, LPVOID Reserved)
{
DisableThreadLibraryCalls( dHandle );
if(nReason == DLL_PROCESS_ATTACH)
_beginthread (Hooker, 0, 0);
return TRUE;
}
#pragma endregion
There WAS D3D stuff in my "Hooker" section, but i removed it :P
then here's my Hacks section, I removed some of stuff so only got no recoil.
Code:
void MyHacks (void *)
{
MessageBeep(MB_ICONINFORMATION);
MessageBox(NULL, "Made by kinibayVIP4", "Hooked Successfully!",MB_OK);
while (1) {
if(GetAsyncKeyState(VK_F6) || GetAsyncKeyState(VK_NUMPAD1) &1) {
reload = !reload;
if(reload)
{
if (pWeaponMgr)
{
for(int i=0; i<577; i++)
{
DWORD Weapon = *(DWORD*)(pWeaponMgr +(4*i));
for(int y=0; y<9; y++)
{
if(Weapon){
*(float*)( Weapon + (NoRecoil1 + (4*y))) = 0.0f;
*(float*)( Weapon + (NoRecoil2 + (4*y))) = 0.0f;
*(float*)( Weapon + (NoRecoil3 + (4*y))) = 0.0f;
*(float*)( Weapon + (NoRecoil4 + (4*y))) = 0.0f;
*(float*)( Weapon + (NoRecoil5 + (4*y))) = 0.0f;
*(float*)( Weapon + (NoRecoil6 + (4*y))) = 0.0f;
*(float*)( Weapon + (NoRecoil7 + (4*y))) = 0.0f;
}
}
}
}
}
}
}
}
I HAVE tried other methods but REALLY I'm just confused now that NOTHING works for mem hacking?? can you give me a way that u write to memory?? plz.
And thats my CShell and Stuff. I'm using XoR strings. and YES I'm sure taht CShell is being impoired.. i think..
Code:
DWORD CShell = ( DWORD ) GetModuleHandleA(CShellEncrypted);
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);