Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Getting Static Addresses and Adding it to C++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
LunaRebirth
Newbie cheater
Reputation: 0

Joined: 05 Sep 2013
Posts: 20

PostPosted: Thu Sep 05, 2013 5:03 pm    Post subject: Getting Static Addresses and Adding it to C++ Reply with quote

Hey guys!
So I've had a problem the past... FOREVER!
I'm trying to find a 'double' address and add it to a C++ application I created - In which changes this number.

I'm using WriteProcessMemory to do so.

I just wanted some step-by-step information on how to find these addresses?
Mainly because they always change no matter what I try.

Here's what I understood and followed to do, which has failed:

STEPS:::
1.Find the address with the number you're trying to change (Good to go!)
2.Make sure it works, first! (Good to go!)
3.Right-click it and "Find out what Writes to this Address". (Good to go!)
4.Look at the ESI number and the red offset (In this case, the offset is 10). (Good to go!)
5.4 Bytes Hex search that ESI address we found. (Good to go!)
6.On our first result (Green addresses also change..), Look at the address. (Good to go!)
7."Add Address Manually". (Good to go!)
8.Check "Pointer". (Good to go!)
9.As the address, add what we found in step 6. (Good to go!)
10.Set the offset to what we found in step 4. (Good to go!)
11.Do not press 'okay', but our static address to add to 'WriteProcessMemory()' is listed on the top. It is gray and unselectable. (Hmm..)

So it seems something here is wrong. I'm not sure if I'm doing everything completely out of order, or wrong in general, or even if I'm on the wrong path here;
But would someone mind leading me on how to do this properly?

It's the non-changing address I'm looking a how-to to find.

Thank you guys for the help!
New to this forum, Hoping to get to know some of you Very Happy
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Thu Sep 05, 2013 7:46 pm    Post subject: Re: Getting Static Addresses and Adding it to C++ Reply with quote

LunaRebirth wrote:
6.On our first result (Green addresses also change..), Look at the address. (Good to go!)


the first green result in the list is not the correct one all the time, make sure you check the best one that really works(try restarting game, reload level,etc)

LunaRebirth wrote:
11.Do not press 'okay', but our static address to add to 'WriteProcessMemory()' is listed on the top. It is gray and unselectable. (Hmm..)


the last address above (the grayed one), is the address of the value you want to edit, you need to do this, say the green address is 0x124AB50:

1- Use ReadProcessMemory to read what's inside 0x124AB50
2- Add 0x10 to the resulted value, let's name it ADDRESS_A
3- Now use WriteProcessMemory again to set the value in the ADDRESS_A address.
Back to top
View user's profile Send private message
LunaRebirth
Newbie cheater
Reputation: 0

Joined: 05 Sep 2013
Posts: 20

PostPosted: Thu Sep 05, 2013 9:57 pm    Post subject: Reply with quote

Well the problem is... None of the green addresses stay, They all change.

Okay so..
Rather than using the Gray address I said,
You'd use the "Green Address" as an int, and add 0x10?

If so, Does it have to be the Green Address? They both change.
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Fri Sep 06, 2013 2:55 am    Post subject: Reply with quote

LunaRebirth wrote:
Well the problem is... None of the green addresses stay, They all change.

Does it have to be the Green Address? They both change.


the pointer static address is green mostly, but not always, but if the resulted addresses you found all of them change, then they're not correct, you can try to use cheat engine's pointer scanner.

LunaRebirth wrote:

You'd use the "Green Address" as an int, and add 0x10?


no, you take the value stored in that green address, then add 0x10
ex:
1- read what's inside this green address: [0x12ABCD] ---> some value, say it has value 0x421000
2- add 0x10, then 0x421000 + 0x10 = 0x421010
3- Modify the value inside [0x421010] as you wish then
Back to top
View user's profile Send private message
LunaRebirth
Newbie cheater
Reputation: 0

Joined: 05 Sep 2013
Posts: 20

PostPosted: Fri Sep 06, 2013 8:52 am    Post subject: Reply with quote

I believe i found one gray value that doesnt change.
But only when i "find out what writes to this address".

I go in, find the value, "find out what writes to this address," search it on 4Bytes Hex, and there it is.
I see it always there.

So i take this value,
Lets say i make a few int's.
sorry, im going to write it in code.

Code:
int Address_before = 0x000000 //this isnt the actual address, obviously. But lets pretend it is the address after 4bytes hex search.
int Offset = 0x10;
it Address_after = Address_before+offset;


This will do the trick??

(Im not at home - But i will be soon. Just wanted to ask if this is the correct way to do it before i do get home.)
Back to top
View user's profile Send private message
LunaRebirth
Newbie cheater
Reputation: 0

Joined: 05 Sep 2013
Posts: 20

PostPosted: Fri Sep 06, 2013 8:46 pm    Post subject: Reply with quote

Doesn't work.
Here's what I did:

1.Find the value.
2.Right-Click it and "Find out what Writes to this Address".
3.Take the "Is probably..." number and 4bytes Hex search it.
4.This is where I found the static address.
5.I made a few variables in my C++ app to hold these. Like so:

Code:
int IPBase_Unfinished = //The Static Address Here
int IPBase_Offset = //That +__ in red after finding what writes to the address (0x10)
int IPBase_Finished = IPBase_Unfinished+IPBase_Offset;


I'm assuming I did something wrong, concidering this does not work.

Thanks! Luna
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 473

Joined: 09 May 2003
Posts: 25908
Location: The netherlands

PostPosted: Sat Sep 07, 2013 2:27 am    Post subject: Reply with quote

Is your static address correct? E.g. 95% of the time people look at bla.exe+12345678 and assume the address is 12345678, which is wrong
You need to add the base address of bla.exe to 12345678. The base address can be different each time the game loads, so look that up with toolhelp32snapshot and module32first/module32next

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
LunaRebirth
Newbie cheater
Reputation: 0

Joined: 05 Sep 2013
Posts: 20

PostPosted: Sun Sep 08, 2013 6:49 pm    Post subject: Reply with quote

Erm..Sorry a little new to CE here Razz
How do I do this??

1. How can I see if this address is static? Every time I reopen the game; It's the same address.

2.Also, I've never saw an address "bla.exe+12345678" (Yes, I know bla.exe isn't the actual name and 12345678 isn't the actual address)

3. I've also never used toolhelp32snapshot or module32first/module32next before.
Back to top
View user's profile Send private message
LunaRebirth
Newbie cheater
Reputation: 0

Joined: 05 Sep 2013
Posts: 20

PostPosted: Mon Sep 16, 2013 3:22 pm    Post subject: Reply with quote

This is still a problem :<
Back to top
View user's profile Send private message
LunaRebirth
Newbie cheater
Reputation: 0

Joined: 05 Sep 2013
Posts: 20

PostPosted: Tue Sep 17, 2013 5:37 pm    Post subject: Reply with quote

I'm trying to figure this out. Can someone please help?

Here are my current steps:

1.Find the address we want to change.
2."Find out what writes to this address" and double-click the result.
3.Write down the offset (0x10) and the "Is probably..." address.
4.4Bytes Hex search the "Is probably..." address.
5.One of my addresses are static! But we can't change the address, We need to change the value.
6."Add address manually", type in the address that I stated was static in step 5 after check-marking "Pointer".
7.Add the offset from step 3 (0x10).
8.I have my value I need to change! Changing it also works!

I can't do this in WriteProcessMemory. I tried adding 0x10 to the static address from step 5, and this does NOT work?

Here's a list of what I have then tried:
1.After finding the static address (From step 5), "Find out what writes to this addres..." - No results.
2.After step 6, I looked at the grayed address. I tried adding 0x10 to this, and that also failed.

I just want to now how to get this going, As I'm not getting anywhere right now.

Please help!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites