Hello.
I have this codesnipped;
Code:
DWORD val2 = 0;
bool State2 = false;
void punkte2()
{
if(State2)
{
DWORD wert2 = 0;
HANDLE hProc = OpenProcess(((0x000F0000L) | (0x00100000L) | 0xFFFF), 0xFFFFFF, (unsigned int)GetCurrentProcessId());
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)((int*)((BasePointer2))), sizeof((PDWORD)(BasePointer2)));
if(wert2 > 0){
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)((int*)((BasePointer2))), sizeof((PDWORD)(BasePointer2)));
wert2 += Points5;
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
wert2 += Points6;
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
wert2 += Points7;
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
wert2 += Points8;
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
wert2 += Points9;
memcpy((PVOID*)(*(int*)(&wert2)), (PWORD*)((void*)&(*(_Uint32t*)&val2)), 4);}
}
}
DWORD WINAPI HackThread2(LPVOID unused)
{
for(; ;)
{
punkte2();
if(GetAsyncKeyState(VK_CONTROL) & GetAsyncKeyState(VK_F5)){
if(State2){ State2 = false; }
else{
State2 = true;
HANDLE hProc = OpenProcess(((0x000F0000L) | (0x00100000L) | 0xFFFF), 0xFFFFFF, (unsigned int)GetCurrentProcessId());
DWORD wert2 = 0;
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)((int*)(BasePointer2)), sizeof((PDWORD)(BasePointer2)));
if(wert2 > 0){
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)((int*)(BasePointer2)), sizeof((PDWORD)(BasePointer2)));
wert2 += Points5;
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
wert2 += Points6;
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
wert2 += Points7;
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
wert2 += Points8;
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
wert2 += Points9;
RtlCopyMemory((LPVOID)((void*)(&wert2)), (PVOID*)&(*(_Uint32t*)(wert2)), sizeof((PDWORD)(wert2)));
wert2 = 16666;
val2 = wert2;}
}
}
//Sleep(2);
}
}
Can you please tell me, how to delete the "for (; " so it do it once and not again and again?
I was not able to delete without mistakes..
I hope you can delete it fast, because i think its easy, but not for a newbie..
Thank you really much! And sorry for my English..
Regards, Rene