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 


[C++] Basics of patching a file

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Endlesskiss
Grandmaster Cheater
Reputation: 0

Joined: 12 May 2007
Posts: 620
Location: Israel - CEF

PostPosted: Fri Apr 02, 2010 9:18 pm    Post subject: [C++] Basics of patching a file Reply with quote

Well, can anybody provide me with a tutorial\example of patching a file? (as done in game-cracking, for example).

As the title says, I need it to be written for C++.

Thanks from advance,
Adam.


P.S - I am not going to crack a game\doing any other illegal stuff, I just want to learn the point of it.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Apr 02, 2010 9:30 pm    Post subject: Reply with quote

1. allocate memory for file
2. read it into your buffer
3. change something in buffer
4. write buffer out
Back to top
View user's profile Send private message
Endlesskiss
Grandmaster Cheater
Reputation: 0

Joined: 12 May 2007
Posts: 620
Location: Israel - CEF

PostPosted: Sat Apr 03, 2010 12:14 am    Post subject: Reply with quote

Wow.... very helpful ><"

Now seriously, an example or a detailed guide would be awesome.
Back to top
View user's profile Send private message
TROLOLOLOLOLOLOLOLOLOLOLO
Expert Cheater
Reputation: -1

Joined: 27 Dec 2009
Posts: 100

PostPosted: Sat Apr 03, 2010 12:43 am    Post subject: Reply with quote

Endlesskiss wrote:
Wow.... very helpful ><"

Now seriously, an example or a detailed guide would be awesome.


You won't find that here Neutral
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Apr 03, 2010 1:54 am    Post subject: Reply with quote

Endlesskiss wrote:
Wow.... very helpful ><"

Now seriously, an example or a detailed guide would be awesome.


http://cplusplus.com/doc/tutorial/files/
Back to top
View user's profile Send private message
Endlesskiss
Grandmaster Cheater
Reputation: 0

Joined: 12 May 2007
Posts: 620
Location: Israel - CEF

PostPosted: Sat Apr 03, 2010 2:23 am    Post subject: Reply with quote

slovach wrote:
Endlesskiss wrote:
Wow.... very helpful ><"

Now seriously, an example or a detailed guide would be awesome.


http://cplusplus.com/doc/tutorial/files/


Can you please stop posting here? I know C++ and I have already read this article long ago...

Trust me I googled it and didn't found what I wanted to find, that's why I came here.

Spare yourself to post first page on Google, because I have already done this before and these guides suck.
Back to top
View user's profile Send private message
Cheat Engine User
Something epic
Ban
Reputation: 61

Joined: 22 Jun 2007
Posts: 2071

PostPosted: Sat Apr 03, 2010 2:27 am    Post subject: Reply with quote

Endlesskiss wrote:
slovach wrote:
Endlesskiss wrote:
Wow.... very helpful ><"

Now seriously, an example or a detailed guide would be awesome.
http://cplusplus.com/doc/tutorial/files/
Can you please stop posting here?
I love how you said this to a moderator.

And guess what? Slovach's pretty right.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Apr 03, 2010 2:55 am    Post subject: Reply with quote

Endlesskiss wrote:
slovach wrote:
Endlesskiss wrote:
Wow.... very helpful ><"

Now seriously, an example or a detailed guide would be awesome.


http://cplusplus.com/doc/tutorial/files/


Can you please stop posting here? I know C++ and I have already read this article long ago...

Trust me I googled it and didn't found what I wanted to find, that's why I came here.

Spare yourself to post first page on Google, because I have already done this before and these guides suck.


then what do you want, someone to write the entire thing for you? maybe if you actually tried to read it you would have gotten somewhere and failing that you could fall back to the earlier stuff that would teach you what you needed.

i don't know why you think you're going to get anywhere if you're not willing to do anything. you obviously don't know nearly as much as you think you do.
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 programming 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