Monday, February 16, 2015

Code Injection

NOTE*: I will use Cygwin( terminal for Windows), so some commands would be different.
  1. Make new project
P91Td0c.png

2. Your project folder:
XbwsGLB.png
  •  Step 2: Write new code

jzaRnXx.png


  • Step 3: Your Profect folder after modifications

fhBH6Kz.png


1. INSIDE DEBIAN FOLDER:

Just take "control" file and place it there

2. INSIDE LIBRARY FOLDER:

Create folders:
MobileSubstrate/DynamicLibraries/
PreferenceLoader/Preferences/

3. INSIDE var FOLDER:

Create Folder:
mobile/Library/Preferences

PLACE ALL CONTENT AS I HAVE:



  • Step 4: Make Project

caAP0XH.png

If you made everything right, you get that :P

Save file editing

  • iFile
  • A game hackable with this method
save file of a game would normally be found in the Documents folder. And we will talk about that shortly. Now, we will be talking about the .plist file! 

What is that? Well, this file is located in /Library/Preferences of your game. Normally the one that is not highlighted in blue, it usually contains the data of your game. But it only contains the data for some games, not all.

You can find several things in this file, for example:
  • Money
  • Levels
  • Scores
  • Time
  • Stages
  • And more!
Now, just find the .plist file and open it (just in case you don't know which one it is, it normally looks like this: com.NameOfCompany.NameofGame.plist).

There are two ways of opening this file:

Text Editor
OR
Plist Editor

If you want a backup of the original .plist file, use the Plist Editor. Otherwise, use the Text Editor. They both work the same way. Just select one of them, search for the current amount of money you have, or another value, and change it to whatever you wish.

It should work for a game that can be hacked by this method. Now, after doing that, select Done, and another file should appear. That file has a % sign at the end. That file is the backup of the original .plist file, so you can delete it or move it elsewhere for safe keeping.

Sometimes, the saved data is not in the .plist file, but in another file. Usually it is in the Documentsfolder of that application, but exceptions like Plants vs Zombies 2 have been found, where they are located in the Library folder or elsewhere.