How To Hack Using a Hex Editor [Tutorial]

Every Thing Related To iOS tutorials, iOS learning center. Ios Hacking And Cheating Stuff Goes Here.
  • Advertisement

How To Hack Using a Hex Editor [Tutorial]

Postby Admin » Sat Mar 14, 2015 5:47 pm


File browser
Hex Editor
Decimal to Hex Converter: ... -converter
Hex to Decimal Converter: ... -converter

[glow=red]Gathering Data[/glow]

For this tutorial I’m going to use Candy Crush Saga. I’ll be changing lives, score, and stars. Hex editing requires you to play the game’s first few levels so actual data shows up in the .dat file, unlike .plist editing which usually already has the parameters setup whether you’ve played or not.

So the first thing I’m going to do is play the first 3 levels of the game. My sav.dat file looks like this (sadly my hex editor doesn’t allow copy-paste, so I’ll be using screenshots):


n the case of Candy Crush, the FFs and 00s are placeholders. If you want to enter new data, you would do so in between and not overwrite the placeholders. Some apps are different and require you to write over the 00s. It’s a toss-up which system apps use, so make sure you backup your .dat file, as picking the wrong one usually results in a crash and/or data wipe. Alternatively you could play the game a bit further until you figure out which is correct.

Here are my stats from playing the first 3 levels:
4 lives
Level 1 score: 3000 (3 stars)
Level 2 score: 8220 (3 stars)
Level 3 score: 12980 (3 stars)


Taking the data above and converting it to hex yields:
04 lives
Level 1 score: 0BB8 (03 stars)
Level 2 score: 201C (03 stars)
Level 3 score: 32B4 (03 stars)

Compare that with the screenshot of the sav.dat file. There is a single 04 toward the top, next to all the FFs. That must be our lives. We can change it to FF to make it 255.

Toward the bottom there are a few 03s. Those must be our stars, and it’s only logical our score is nearby. Candy Crush is a good example of an app that uses reverse hex! As you can see, the level scores are listed as B80B, 1C20, and B432. Some apps use regular hex and others use reverse - it’s another toss-up which app uses which, so write down both variants so you can search for both.

Hex can only be broken down into bytes, which is 2 digits (called bits). This is why “reversed” hex isn’t completely reversed. Here’s an example:
User avatar
Posts: 1057
Joined: Sat Mar 14, 2015 9:08 am
Location: From The Middle of No Where
Has thanked: 78 times
Been thanked: 2058 times


  • Advertisement

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest