Jump to content

How to find the correct hook?


Go to solution Solved by Rook,

10 posts in this topic

Recommended Posts

Posted

i've watched this video made by phoenix http://iosgods.com/topic/904-tutorialvideo-hack-games-with-flex-and-convert-it-to-deb-tweak/

i don't understand how does he find the good argument for instance:

%hook LevelLayer... how does he know "levelLayer" is the good classname . Does he use IDA pro and look for the functions? :)

Iam new to this please help :p

  • Solution
Posted

He searches for "coins" and coins method has the LevelLayer class so he returns the coins to 9999.

 

You can't really know if that's the right one or if it'll work unless you test it. :)

 

All this is done in Flex, not IDA.

Posted

well where do i search for coins ? i dont get it .... all i understand is that he might have donc ctrl+F in the binary to search for strings and functions but how does he find this on iphone ?

Posted

well where do i search for coins ? i dont get it .... all i understand is that he might have donc ctrl+F in the binary to search for strings and functions but how does he find this on iphone ?

Did you watch the video? :ermm:

 

He's using Flex 2 from Cydia. Process the app on Flex and then you can search. :)

Posted

You often skip lots of valuable functions using Flex/2. I'll recommend you to use Class-Dump for further hacking using basic MS.

 

1. Download Class-Dump from cydia store

 

2. I showed you how to crack an app using Clutch but I will do it again

2.1 Open Terminal and type

su
alpine
Clutch   // The first time to see the binary names
Clutch "BinaryName"
2.2 Go to /var/mobile/Documents/Cracked

2.3 Click the info button of the .IPA you just cracked

2.4 Change the extension to .zip (It's .ipa.zip now)

2.5 Open the zip file and extract the binary

2.6 Go to /var/mobile/Documents/Payload and copyt the binary to /var/mobile (You can rename it to whatever you want)

 

3. Create a folder at /var/mobile/ called class-dump or something

 

4.Open Terminal again and type

su
alpine
class-dump -H /var/mobile/BinaryName -o /var/mobile/class-dump.  // Only if you named the folder class-dump
]

5. Now in this folder all the header files will appear. Feel free to go through all of them and find the best functions available !

Posted

i got it so i have to try every functions ? :D ty

Not EVERY. Just the ones you see important. :)

Posted (edited)

wow i didn't know we could do this on iphone!! that's really cool thank you !!

i hope i can make more hacks.

but for games such like modern combat IDA is a must isnt it ? there are sub_x functions...

Updated by mehdiphone
Posted

wow i didn't know we could do this on iphone!! that's really cool thank you !!

i hope i can make more hacks.

but for games such like modern combat IDA is a must isnt it ? there are sub_x functions...

Flex & Class Dump for sub_x functions is useless. You'll need to find the correct offset using gdb/lldb and then hacking it via IDA.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines