| View previous topic :: View next topic |
| Author |
Message |
denismu321 Newbie cheater
Reputation: 0
Joined: 24 Dec 2018 Posts: 20
|
Posted: Mon Dec 24, 2018 12:18 pm Post subject: Hi there I have a simple question.. |
|
|
Hi ,I just wanted to ask how to get a static memory address ,even if I can get the static in cheat engine. What will I have to do to make that address
feasible in a c++ program ?
I can post the code of my program, if neccessary.
The problem I think is the pointer type ,because in cheat engine you get the static addresses in form of pointers.
So what could I do to embedd this in my very own c++ program ?
Any help would be dearly appreciated.
I hope you can do that ,
regards,
Denis.
|
|
| Back to top |
|
 |
OldCheatEngineUser Whateven rank
Reputation: 20
Joined: 01 Feb 2016 Posts: 1586
|
Posted: Mon Dec 24, 2018 2:21 pm Post subject: |
|
|
process base address + offset, you probably need to read + write to that address.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
| STN wrote: | | i am a sweetheart. |
|
|
| Back to top |
|
 |
denismu321 Newbie cheater
Reputation: 0
Joined: 24 Dec 2018 Posts: 20
|
Posted: Tue Dec 25, 2018 9:43 am Post subject: Hi thank you for responding so fast ;-) |
|
|
So thanks for answering..
Here are my questions. Would the base address be something like
Doom3BFG.exe+D09F10 and the offsets something like , e.g.
+0x20
+0x3190 ?
Because I cannot figure that out in c++.
Also ,if I want to calculate the Doom3BFG.exe+D09F10 + offsets I never end up at the address that Cheat engine points me to.
Thanks for your help,
and btw have some good holidays...
regards,
Denis.
| Description: |
| just some additional info. |
|
| Filesize: |
62.46 KB |
| Viewed: |
3550 Time(s) |

|
|
|
| Back to top |
|
 |
OldCheatEngineUser Whateven rank
Reputation: 20
Joined: 01 Feb 2016 Posts: 1586
|
Posted: Tue Dec 25, 2018 1:51 pm Post subject: |
|
|
| denismu321 wrote: | Would the base address be something like
Doom3BFG.exe+D09F10 |
no.
in PE header there is a preferred virtual address base, the default is 00400000.
however some programs have a relocation directory or changed their default base, in this case windows program-loader may load the executable in a different virtual address base.
| Code: | if we said default is 00400000, then:
Doom3BFG.exe is the 00400000 as well.
so "Doom3BFG.exe"+D09F10 is:
00400000 + 00D09F10 = 01109F10
your static address is:
01109F10 + 3190 = ??
?? + 20 = your desired address. |
you will need at least to:
- open the process
- get the module base address *
- read/write to process memory
* API GetModuleHandle is useful when you inject it into process memory and call it from there, not sure about GetModuleHandleEx.
there is an alternative, which is VirtualQueryEx.
| OldCheatEngineUser wrote: | your static address is:
01109F10 + 3190 = ??
?? + 20 = your desired address. |
you must sum the static address and the first offset, and then pass it to ReadProcessMemory.
then sum the returned address and the next offset, do the same for every offset you have.
once the desired address is found, you can simply write and/or read it value.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
| STN wrote: | | i am a sweetheart. |
|
|
| Back to top |
|
 |
denismu321 Newbie cheater
Reputation: 0
Joined: 24 Dec 2018 Posts: 20
|
Posted: Tue Dec 25, 2018 4:01 pm Post subject: Hi thank you for answering.. |
|
|
I am going to provide you with a bit of code I wrote, because I think I can understand, but it still won't work out..
here it is :
DWORD address, address2, address3;
DWORD value1, value2;
address = 0x01109f10 + 0x3190;
ReadProcessMemory(handle, (void *)address, &address2, sizeof(DWORD), 0);
printf("address is now %x\n", address2);
address2 = address2 + 0x20;
ReadProcessMemory(handle, (void *)address2, &value1, sizeof(DWORD), 0);
printf("address is %d\n",value1);
It does not work ,but I think the green static address just said "01109f10".
Here is a picture of the output.
| Description: |
|
| Filesize: |
5.19 KB |
| Viewed: |
3522 Time(s) |

|
|
|
| Back to top |
|
 |
OldCheatEngineUser Whateven rank
Reputation: 20
Joined: 01 Feb 2016 Posts: 1586
|
Posted: Tue Dec 25, 2018 4:37 pm Post subject: |
|
|
something is incorrect, and display values as hex.
question, what offset you got first in CE?
also keep in-mind the top offset in CE is the last offset, and the bottom one is the first offset.
and about your second post, im not sure in what order you typed your offsets.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
| STN wrote: | | i am a sweetheart. |
|
|
| Back to top |
|
 |
denismu321 Newbie cheater
Reputation: 0
Joined: 24 Dec 2018 Posts: 20
|
Posted: Tue Dec 25, 2018 4:43 pm Post subject: hi thanks again.. |
|
|
Here I will provide you with two pictures.
One is cheat engine , the other is the output of the program.
I hope you can tell what's wrong
| Description: |
|
| Filesize: |
4.82 KB |
| Viewed: |
3513 Time(s) |

|
| Description: |
|
| Filesize: |
82.1 KB |
| Viewed: |
3513 Time(s) |

|
|
|
| Back to top |
|
 |
OldCheatEngineUser Whateven rank
Reputation: 20
Joined: 01 Feb 2016 Posts: 1586
|
Posted: Tue Dec 25, 2018 4:54 pm Post subject: |
|
|
| denismu321 wrote: | | I hope you can tell what's wrong |
yes, i was wrong.
i wrote what i did not mean, i apologize.
| OldCheatEngineUser wrote: | your static address is:
01109F10 + 3190 = ??
?? + 20 = your desired address. |
i meant:
01109F10 = ?
? + 3190 = ??
?? + 20 = your desired address.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
| STN wrote: | | i am a sweetheart. |
|
|
| Back to top |
|
 |
denismu321 Newbie cheater
Reputation: 0
Joined: 24 Dec 2018 Posts: 20
|
|
| Back to top |
|
 |
OldCheatEngineUser Whateven rank
Reputation: 20
Joined: 01 Feb 2016 Posts: 1586
|
Posted: Tue Dec 25, 2018 5:29 pm Post subject: |
|
|
enjoy, seems you added couple more offsets.
anyhow, its better to put this in a loop with a hotkey to increase or decrease the value.
or simply freeze it by writing the same value over and over, and if the freeze rate is too high just call sleep function.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
| STN wrote: | | i am a sweetheart. |
|
|
| Back to top |
|
 |
denismu321 Newbie cheater
Reputation: 0
Joined: 24 Dec 2018 Posts: 20
|
Posted: Tue Dec 25, 2018 6:10 pm Post subject: |
|
|
well I'll do what I can, but for now I am delighted..
Thx,
Denis.
|
|
| Back to top |
|
 |
|