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 


difference between hooking and memory editing?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
kitesan
Expert Cheater
Reputation: 0

Joined: 01 May 2014
Posts: 124

PostPosted: Mon Apr 11, 2016 4:21 pm    Post subject: difference between hooking and memory editing? Reply with quote

what is the difference between hooking and memory editing?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Mon Apr 11, 2016 6:09 pm    Post subject: This post has 1 review(s) Reply with quote

To put it simply, editing memory is just changing the memory of a program. For example, it could be replacing an instruction with NOPs or changing dec eax to inc eax. However, when you're changing instructions like this, you're limited to however much space you have in that section of asm. If you want to do something more advanced, you'll have to hook that instruction.

A hook is basically just redirecting the program to execute your code. It could optionally execute the code that was originally there, or it could just ignore it. You tend to use jumps to do this: wherever you want the program to start running your code, you write a jmp right there that goes to the beginning of your code. Your code is then run and eventually jumps back to some spot in the program, usually near where you jumped from.

Since you're editing the game's executable memory when you write a jmp to your code, hooking could be considered a form of memory editing.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
kitesan
Expert Cheater
Reputation: 0

Joined: 01 May 2014
Posts: 124

PostPosted: Mon Apr 11, 2016 7:55 pm    Post subject: Reply with quote

thank you
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