Solved I don't understand what this code is {Memory Hacking}

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

__Steven

Newbie
Silenced
Dank Tier Donator
Mar 3, 2014
33
198
0
//AMMO VARS
bool AmmoStatus;
BYTE AmmoValue[] = {0xA3, 0x1C, 0x0, 0x0};
DWORD AmmoBaseAddress = {0x00509B74};
DWORD AmmoOffsets[] = {0x384, 0x14, 0x0};

//Health VARS
bool HealthStatus;
BYTE HealthValue[] = {0x39, 0x5, 0x0, 0x0};
DWORD HealthBaseAddress = {0x00509B74};
DWORD HealthOffsets[] = {0xF8};

I don't understand the code in blue. May someone explain it to me?

:smile:
 

crx123

Jr.Coder
Silenced
Nobleman
Apr 16, 2014
59
598
2
I have no idea but i think its the same thing as in CE memory viewer just a hex value, depends how you use it i guess. Maybe that code changes your ammo to unlimited or 99999 or something

example : find base address/pointer 0x00509B74 with offsets 0x384, 0x14, 0x0 and change the value to {0xA3, 0x1C, 0x0, 0x0} whatever that does
 
Last edited:

Crazywink

Hacker
Meme Tier VIP
Dank Tier Donator
Jul 18, 2012
626
4,613
17
Those are the offsets for the address. :) They're used when you're finding the DMA (Dynamic Memory Allocated) address.
If you look in the FindDMAaddress function (assuming you're following Fleep's tutorial)
you'll see what it's doing:

C++:
for(int i = 0; i < PointerLevel; i ++)
    {
            if(i == 0)
            {
                ReadProcessMemory(hProcHandle, (LPCVOID)pointer, &pTemp, 4, NULL);
            }
          
            pointerAddr = pTemp + Offsets[i];  



            ReadProcessMemory(hProcHandle, (LPCVOID)pointerAddr, &pTemp, 4, NULL);
    }
It's adding the address and the offset, which points you to the address you want. :)
 
Last edited:

NebulaGrey

Newbie
Full Member
Jun 8, 2014
30
218
1
When doing a memory write, that value is what's to be written. The first one in blue is 10689536 in 4Byte decimal. and the 2nd one is 3736832.
So that's what those values will become.
 

NebulaGrey

Newbie
Full Member
Jun 8, 2014
30
218
1
Whichever op-codes those bytes represent is what change will be made if written to memory. You can have more control on what goes on by writing your own asm code and writing what changed in the dump.
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods