pakeke801 Cheater
Reputation: 0
Joined: 19 Apr 2012 Posts: 27
|
Posted: Wed Apr 25, 2012 2:14 am Post subject: c++ error/ crashes when injected... |
|
|
hi sir, can i ask question?????, when i injected this to a game it crashes????
maybe there is a wrong?????
help me please????
base address = 00087454
offsets= 60, 0, 24, 4
| Code: | #include <Windows.h>
void mine()
{
if (GetAsyncKeyState(VK_NUMPAD1)&1)
{
Beep(512, 100);
MessageBoxA(0,"HaCk AcTiVaTeD","sUcCsEs!!!",0);
*(float*)(0x00087454+0x60+0x0+0x24+0x4)=0;
}
else
{
Beep(612, 100);
MessageBoxA(0,"FaIlEd","HaCk NoT aCtIvAtEd!!!",0);
DLL_PROCESS_DETACH;
}
if (GetAsyncKeyState(VK_NUMPAD2)&1)
{
Beep(512, 100);
MessageBoxA(0,"HaCk DeAcTiVaTeD","sUcCsEs!!!",0);
*(float*)(0x00087454+0x60+0x0+0x24+0x4)=true;
}
}
void huk()
{
GetModuleHandleA("MineSweeper.exe");
}
BOOL __stdcall DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hDll);
if (dwReason == DLL_PROCESS_ATTACH)
{
//MessageBoxA(0,"D3d HaCk","ShEn LeI lIaNg", MB_OK);
//CreateThread(0,0,0,huk,0,0);
CreateThread(0,0,0,mine,0,0);
}
return TRUE;
} |
advance thanks to whom will help on me ^_^
_________________
this is the end! |
|
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Apr 25, 2012 2:41 pm Post subject: |
|
|
Judging by how you wrote your thread code, I can only assume you have close to no idea what you are doing. You'd be better off slowing down, and taking the time to learn the language rather then trying to copy/paste stuff you find on the net and trying to hack together something that wont in the end teach you anything.
_________________
- Retired. |
|