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 


Can't find any static address...
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
TsTg
Master Cheater
Reputation: 5

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

PostPosted: Wed Jul 03, 2013 4:25 am    Post subject: Reply with quote

yes like i said there's no enough space here to write your extra code in, write this in the new allocated memory,but here in the (Game.CreateGameInstance+105C0D), you will write only the redirection jump to your code cave(the last two WriteProcessMemory calls in the enable code i posted), so it appears as in the picture, the instruction takes 6 bytes, so there's an extra byte which we don't need.


but, in the code cave, write whatever you want.



JMP.png
 Description:
 Filesize:  8.84 KB
 Viewed:  7806 Time(s)

JMP.png


Back to top
View user's profile Send private message
vmv
Cheater
Reputation: 0

Joined: 29 Jun 2013
Posts: 32

PostPosted: Wed Jul 03, 2013 4:49 am    Post subject: Reply with quote

Assuming that i don't have any code written right now.....so, first thing to do is to open CE and to find my address.
Now in memory view on my address, i will press enter and that small window will show up. "mov [eax+000004EA],dx"((Game.CreateGameInstance+105C0D))....
Now what to do next...?
I can't change anything here because of crash.

Sorry to bother you so much Sad
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

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

PostPosted: Wed Jul 03, 2013 4:54 am    Post subject: Reply with quote

instead of testing codes here, go to Cheate engine's menu: Tools>Allocate memory, leave the size as is then press enter, in the empty area you have all your tests without crashing the game
Back to top
View user's profile Send private message
vmv
Cheater
Reputation: 0

Joined: 29 Jun 2013
Posts: 32

PostPosted: Wed Jul 03, 2013 5:33 am    Post subject: Reply with quote

Whit what do i replace this on the original address : mov [eax+000004EA],dx ?
Can you right it down exactly please... thank you,

Rolling Eyes
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

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

PostPosted: Wed Jul 03, 2013 6:23 am    Post subject: Reply with quote

from cheat engine: say your allocated memory is at 2DC0000, then you need to write this: jmp 2DC0000
Back to top
View user's profile Send private message
vmv
Cheater
Reputation: 0

Joined: 29 Jun 2013
Posts: 32

PostPosted: Wed Jul 03, 2013 6:59 am    Post subject: Reply with quote

TsTg wrote:
from cheat engine: say your allocated memory is at 2DC0000, then you need to write this: jmp 2DC0000


And my game is crashing in few seconds after i write this....
The idea is that i want to write on the address above 4EA...by my own , with what i learned from you until now...
But i am stuck here, i can't figure from where did you got that : // C7 80 EA 04 00 00 B0 04 00 00 8B E5 5D C2 08 00 address.

With a simple logic, the first thing i need are the addresses to be written on code, ...
This lines i can't get them Neutral : BYTE atkBytes[] = { 0xC7,0x80,0xEA,0x04, 0x00,0x00,0xB0,0x04, 0x00,0x00,0x8B,0xE5, 0x5D,0xC2,0x08,0x00 };

I can see that some of them are from original address, others are the value i need , but the first one...?

One last ask.... can you write the steps i need to make it done ...


Btw, the code you wrote earlier is working fine Smile
Maybe other ppl can sent rep points because i can't. Sad

Thank you very much for this long lesson,
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

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

PostPosted: Wed Jul 03, 2013 8:16 am    Post subject: Reply with quote

i told you, write the assembly line of yours in the empty area (in cheat engine), then see the bytes beside it, these are the bytes used.

you want to change the "mov [eax+000004E8],cx" to "[eax+000004E8],00000001", right ?


the corresponding bytes are: C7 80 E8 04 00 00 01 00 00 00

and if you are going to modify this, beside the value of [eax+4EA] one, so your code cave bytes array is now 26 bytes long, and the code should look like in picture.

so in this case, the full byte chain is: C7 80 E8 04 00 00 01 00 00 00 C7 80 EA 04 00 00 84 03 00 00 8B E5 5D C2 08 00



Quote:
Maybe other ppl can sent rep points because i can't.


for the rep points, just click on the 'thumbs up' ( ) icon below my user name on the left.



Code.png
 Description:
 Filesize:  9.53 KB
 Viewed:  7737 Time(s)

Code.png


Back to top
View user's profile Send private message
vmv
Cheater
Reputation: 0

Joined: 29 Jun 2013
Posts: 32

PostPosted: Wed Jul 03, 2013 8:34 am    Post subject: Reply with quote

I can't use that "thumbs up" yet i think..it's just an image for me Smile
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

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

PostPosted: Wed Jul 03, 2013 8:36 am    Post subject: Reply with quote

ok, never mind, did you make the hack to work now ?
Back to top
View user's profile Send private message
vmv
Cheater
Reputation: 0

Joined: 29 Jun 2013
Posts: 32

PostPosted: Wed Jul 03, 2013 8:43 am    Post subject: Reply with quote

See...this is where i lose it....there are more then c++ things, i need assembly lines to get it right, ... that's why i was asking for help here, is not that simple as you see it ...for me.
I'm trying to understand from your posts... the steps to walk to write a new hack address.
You show me the results of what that address is there but,..if i try to do it..i get a crash...

"you want to change the "mov [eax+000004E8],cx" to "[eax+000004E8],00000001", right ?"

Yes...how do i do that avoiding crash ?
How do i myself find that address w/o crash.

It's awesome that you wrote the code (the corresponding bytes are: C7 80 E8 04 00 00 01 00 00 00) for me but ...i need to find it myself...

I really can give you the teamviwer address if you have time ...Smile

Thank you,



=========



Your hack is working man, is working flawless... Smile

But, i am feeling like the dumbest persons around here...
I just copied all your work and ... not even understand it...to make it work...
Back to top
View user's profile Send private message
vmv
Cheater
Reputation: 0

Joined: 29 Jun 2013
Posts: 32

PostPosted: Thu Jul 04, 2013 4:04 am    Post subject: Reply with quote

For 64bit version of the Game.dll, it's the same procedure ?
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Thu Jul 04, 2013 6:46 am    Post subject: Reply with quote

vmv wrote:
I can't use that "thumbs up" yet i think..it's just an image for me Smile
+repped TsTg for you.
Back to top
View user's profile Send private message
vmv
Cheater
Reputation: 0

Joined: 29 Jun 2013
Posts: 32

PostPosted: Thu Jul 04, 2013 7:58 am    Post subject: Reply with quote

Gniarf wrote:
vmv wrote:
I can't use that "thumbs up" yet i think..it's just an image for me Smile
+repped TsTg for you.


Awesome, thank you Smile
Back to top
View user's profile Send private message
vmv
Cheater
Reputation: 0

Joined: 29 Jun 2013
Posts: 32

PostPosted: Fri Jul 05, 2013 8:23 am    Post subject: Reply with quote

Hi, it's me again Smile

I want to modify a new value on my own... and i want to know from where to start and where to end with asm code..:
I don't need the full result, only from where to start...
This is 6 bytes long, so i need to modify the c++ code also, right ?
And what about x64 version of ".bin or .exe" module, ...i can't read it with my actual code. I looked on some forums and didn't found anything about it.

Thank you,



this_cr.png
 Description:
 Filesize:  33.56 KB
 Viewed:  7595 Time(s)

this_cr.png


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 Jul 05, 2013 9:03 am    Post subject: Reply with quote

before anything, thanks for the rep, vmv (+ thanks to Gniarf for helping in that)


vmv wrote:
I want to modify a new value on my own... and i want to know from where to start and where to end with asm code..:


Since that address is your point of interest, and it's 6 bytes or higher, then you can put your code cave jump there(jmp XXXXXXX or jmp dword [XXXXXXX]), then in the code cave, add the new instruction as i did before, plus any extra code you want, then another jump that returns to the game code (jump to the instruction after, which is 2E15E516)


vmv wrote:
And what about x64 version of ".bin or .exe" module, ...i can't read it with my actual code. I looked on some forums and didn't found anything about it.


if you mean the C++ code, you have to make your output executable 64 bit (as normally 32 bit process can not write or read an 64 bit process), if you mean for the assembly or the hack, the assembly instructions of 64 bit executable are also different.
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
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
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