SolvedFreezing Value

Posts 1–8 of 8 · Page 1 of 1
Freezing Value
i have code like this
*(DWORD*)(*(DWORD*)ADDR_BASE + ADDR_OFF1)) 0;
now 1 want to freeze final address to 0 and now the problem is how to freeze this code on c++
thanks for helping me
freezing just means constantly overwriting its value
THis is what happens when leeching. Not knowing how to do a loop
First you can make a loop then put your set syntax inside it..
or you can try to find who write your address and make it no operation.

CMIIW
ok now i try to edit my source like this
Code:
#include "ayam.h" // sumber offset dan deklarasi dll
#include <windows.h> // include untuk createthread

void Start();

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved)
{
    if (ulReason == DLL_PROCESS_ATTACH)
    {
        CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
    }

    return TRUE;
}

void Start()
{
    while (1)
    {
        if (GetKeyState(VK_F11) < 0) // Turn On
        {
            *(DWORD*)ADDR_GM = 2;
            *(DWORD*)ADDR_AOE = 100;
            *(DWORD*)ADDR_RANGE = 7;
        }
        
        if (GetKeyState(VK_F12) < 0) // Turn Off
        {
            *(DWORD*)ADDR_GM = 0;
            *(DWORD*)ADDR_AOE = 0;
            *(DWORD*)ADDR_RANGE = 0;
        }
	}

	while (true)
	 {
        if (GetKeyState(VK_F10) < 0) // Turn On
        {
            *(DWORD*)(*(DWORD*)ADDR_BASE + ADDR_OFF1) = 0;
            *(DWORD*)(*(DWORD*)ADDR_BASE + ADDR_OFF2) = 0;
		}
        Sleep(1);
    }
}
and my header
#ifndef __ayam_kampong_H
#define __ayam_kampong_H

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

#endif
// ADDYS TEMPELKAN DISINI !!!
#define ADDR_GM 0x1075C40
#define ADDR_AOE 0x10C62DC
#define ADDR_RANGE 0x10C62D8
#define ADDR_BASE 0x0B8BBF0
#define ADDR_OFF1 0x7384
#define ADDR_OFF2 0x73A1

now my problem on this
*(DWORD*)(*(DWORD*)ADDR_BASE + ADDR_OFF1) = 0; <==== i want my final address of value to 0(zero) so can u tell me where my mistake again sir???
Code:
void setAlwaysZero()
{
    while(1)
    {
          *(DWORD*)(*(DWORD*)ADDR_BASE + ADDR_OFF1) = 0;
          *(DWORD*)(*(DWORD*)ADDR_BASE + ADDR_OFF2) = 0;
          Sleep(1);
    }
}

void Start()
{
    while (1)
    {
        if (GetKeyState(VK_F11) < 0) // Turn On
        {
            *(DWORD*)ADDR_GM = 2;
            *(DWORD*)ADDR_AOE = 100;
            *(DWORD*)ADDR_RANGE = 7;
        }
        
        if (GetKeyState(VK_F12) < 0) // Turn Off
        {
            *(DWORD*)ADDR_GM = 0;
            *(DWORD*)ADDR_AOE = 0;
            *(DWORD*)ADDR_RANGE = 0;
        }

        if (GetKeyState(VK_F10) < 0) // Turn On
        {
            CreateThread(0, 0, (LPTHREAD_START_ROUTINE)setAlwaysZero, 0, 0, 0); // so u make another thread to always make value off with loop
	}
        Sleep(1);
    }
}
if you wanted to looping after you press F10, so make another thread like what i do..
hope this solve your problem..

CMIIW..
Junk deleted.

Marked solved as the OP has the problem solved. No more useless posting.
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us