| View previous topic :: View next topic |
| Author |
Message |
Endlesskiss Grandmaster Cheater
Reputation: 0
Joined: 12 May 2007 Posts: 620 Location: Israel - CEF
|
Posted: Fri Apr 02, 2010 9:18 pm Post subject: [C++] Basics of patching a file |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Apr 02, 2010 9:30 pm Post subject: |
|
|
1. allocate memory for file
2. read it into your buffer
3. change something in buffer
4. write buffer out
|
|
| Back to top |
|
 |
Endlesskiss Grandmaster Cheater
Reputation: 0
Joined: 12 May 2007 Posts: 620 Location: Israel - CEF
|
Posted: Sat Apr 03, 2010 12:14 am Post subject: |
|
|
Wow.... very helpful ><"
Now seriously, an example or a detailed guide would be awesome.
|
|
| Back to top |
|
 |
TROLOLOLOLOLOLOLOLOLOLOLO Expert Cheater
Reputation: -1
Joined: 27 Dec 2009 Posts: 100
|
Posted: Sat Apr 03, 2010 12:43 am Post subject: |
|
|
| Endlesskiss wrote: | Wow.... very helpful ><"
Now seriously, an example or a detailed guide would be awesome. |
You won't find that here
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
|
| Back to top |
|
 |
Endlesskiss Grandmaster Cheater
Reputation: 0
Joined: 12 May 2007 Posts: 620 Location: Israel - CEF
|
Posted: Sat Apr 03, 2010 2:23 am Post subject: |
|
|
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 |
|
 |
Cheat Engine User Something epic
Reputation: 61
Joined: 22 Jun 2007 Posts: 2071
|
Posted: Sat Apr 03, 2010 2:27 am Post subject: |
|
|
| 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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat Apr 03, 2010 2:55 am Post subject: |
|
|
| Endlesskiss wrote: |
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 |
|
 |
|