making wallhack help...

08/22/2009 14:45 almar2023#1
need help here making wallhack using this source [Only registered and activated users can see links. Click Here To Register...]

..

i want to bypass the DrawIndexedPrimitive by 5bytes

when i debug my wallhack

i see this 5 bytes

push ebp
mov ebp,esp
cmp dword ptr [ebp+0Ch],00000001h
jnz L1006439E
call SUB_L100405FF


i want to hook it to 5 bytes but i dont know how to make it

i try to change the code

Quote:
int end =NULL;
int dip =NULL;
int svp =NULL;
int sss =NULL;


BYTE Unhook[5] = {0x8B,0xFF,0x55,0x8B,0xEC};//Original Function Bytes.
hand1 = GetCurrentProcess();
DWORD dwmodualBase=(DWORD)GetModuleHandle("d3d8.dll");
end = 0x6d9d93a0;
dip = 0x6d9d73a0;
svp = 0x6d9d5b90;
sss = 0x6d9d6760;

WriteProcessMemory(hand1, (void*) end,Unhook, 5,, &bytes);
WriteProcessMemory(hand1, (void*) dip, Unhook, 5, &bytes);
WriteProcessMemory(hand1, (void*) svp ,Unhook, 5, &bytes);
WriteProcessMemory(hand1, (void*) sss,Unhook, 5, &bytes);
}
into

Quote:
int end =NULL;
int dip =NULL;
int svp =NULL;
int sss =NULL;


BYTE Unhook[10] = {0x8B,0xFF,0x55,0x8B,0xEC};//Original Function Bytes.
hand1 = GetCurrentProcess();
DWORD dwmodualBase=(DWORD)GetModuleHandle("d3d8.dll")+5;
end = 0x6d9d93a0;
dip = 0x6d9d73a0;
svp = 0x6d9d5b90;
sss = 0x6d9d6760;

WriteProcessMemory(hand1, (void*) end,Unhook, 10,, &bytes);
WriteProcessMemory(hand1, (void*) dip, Unhook, 10, &bytes);
WriteProcessMemory(hand1, (void*) svp ,Unhook, 10, &bytes);
WriteProcessMemory(hand1, (void*) sss,Unhook, 10, &bytes);
}
but still its

push ebp
mov ebp,esp
cmp dword ptr [ebp+0Ch],00000001h
jnz L1006439E
call SUB_L100405FF

any help would appreciate