HELP ME PLZ!

Posts 1–10 of 10 · Page 1 of 1
HELP ME PLZ!
IM TRYING TO MAKE A SIMPLE HACK SUPER BULLETS HACK FOR COMBAT ARMS IM USING THIS CODE http://www.mpgh.net/forum/207-combat...mple-hack.html (ALL CREDITS TO flameswor10)can someome help me plz?HERES THE CODE ALL OF ITS FROM flameswor10 just differnt adress thats all!HERES THE CODE:#include <window.h>
int HackOn = 0;
bool test = false;
#define ADDR_S_BULLETS 0x37428EFD
void Main (void)
{
while(1)

{
if (GetAsyncKeyState(VK_NUMPAD1)&1)
{
test = (!test);
}
if (GetAsyncKeyState(VK_NUMPAD2)&1)
{
HackOn ++;
}
if (HackOn == HackMax)
}
if (test)
{
memcpy( (PBYTE)ADDR_S_BULLETS, (PBYTE) "\x33\xC0\x90", 3 );
}else{
memcpy( (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x0F\x94\xC0", 3 );
}
}
}
DWORD WINAPI Lesson (LPVOID)
Main();
return 1;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, Lesson, NULL, NULL, NULL);DWORD WINAPI Lesson (LPVOID)
}
return TRUE;
}
Code:
#define ADDR_S_BULLETS 0x374201ED
Your address is out of date.
Using memcpy is detected by HackShield I belive.
Quote Originally Posted by Flengo View Post
Using memcpy is detected by HackShield I belive.
I doubt it, but it's easy enough to just write your own.
Quote Originally Posted by Jason View Post


I doubt it, but it's easy enough to just write your own.
It never works for me

I created my own, works like a charm
Quote Originally Posted by Flengo View Post


It never works for me

I created my own, works like a charm
Just wrote this then, probs more elegant ways of doing it though :3

Code:
void *memcpy_n(void *dest, void *src, size_t sz, DWORD flProtect = 0)
{
	DWORD temp;

	DWORD *dwDest = (DWORD*)dest;
	DWORD *dwSrc = (DWORD*)src;

	if (flProtect > 0)
		VirtualProtect(dest, sz, flProtect, &temp);

	for(size_t i = 0; i < ((sz - ( sz % 4 )) >> 2); i++, dwDest++, dwSrc++)
		*dwDest = *dwSrc;

	if (sz & 2)
		*(WORD*)dwDest = *(WORD*)dwSrc;
	if (sz & 1)
		*((BYTE*)dwDest + (sz & 2)) = *((BYTE*)dwSrc + (sz & 2));

	if (flProtect > 0)
		VirtualProtect(dest, sz, temp, &flProtect);

	return dest;
}

EDIT: Neatened the code after I looked at it for a while.
Wait, is that all the code O_O? You aren't even making the memcpy function, so how is it supposed to work.

Unless there is more.
Quote Originally Posted by AtomicStone View Post
Wait, is that all the code O_O? You aren't even making the memcpy function, so how is it supposed to work.

Unless there is more.
If you're talking about @Jason's function, it works. Tested it in Combat Arms.
Quote Originally Posted by AtomicStone View Post
Wait, is that all the code O_O? You aren't even making the memcpy function, so how is it supposed to work.

Unless there is more.
That function will emulate memcpy. It also has the added benefit of allowing you to specify a page protection level for the destination of the of the copy.
Quote Originally Posted by Jason View Post


That function will emulate memcpy. It also has the added benefit of allowing you to specify a page protection level for the destination of the of the copy.
I was talking about the guys post above The OP.
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us