Wednesday, August 12, 2009

Hex Editing - Part 1

Sometimes when you're thinking like a hacker, you need to go to the very core of the structure of different programs and files and edit them to your purpose. This isn't always a very easy task. Imagine you want to modify your favorite map in Yuri's Revenge or perhaps modify the Pinball game to your liking. What will you do? There are tools like Resource Hacker which help you in manipulating the basic structure of the executable files but they're not always very successful due to their platform dependency and other limitations. In such cases, we use 'Hex Editing' to edit the contents of the file. This sounds like a very tedious and a difficult task, but believe me, it is as easy as installing Windows. Or perhaps, even more.

So what to begin with? Okay, first of all you need to select which Hex Editor to use. There is a built in Hex Editor in Windows which can be opened by typing "EDIT" in Run and pressing enter. This isn't really the best out there though. There are better, free Hex Editors which make your job easier and are fun to use. I'll recommend you to download XVI32 because of the fact that it is both free and powerful.

1>>Open the C drive on your computer and make a new Text Document.
2>> Write your name in the document and save it.
3>> After this, open the editor and locate the file.
4>>You will see the binary form of your name written on the left side and your name on the right side of the screen. Each letter in your name would be matching a binary component on the left. Just as shown in the picture.















5>>Now, if you change the binary value, the change would effect the content of your text file. Save it and that's all!

For now write all the letters from A to Z in the a notepad file and try to know the binary notation for each. Also try the numbers from 1 to 9. These will be your baby steps in Hex Editing. Keep up for the second part! Happy 'Hexing'!

Related Posts

Hex Editing Tutorial - Part 2

0 comments:

Post a Comment