Jump to content

[TUTORIAL] How To Hack Using IDA


113 posts in this topic

Recommended Posts

Posted

Anyone can help me with this?

I decompiled a .dylid into this:

var_8= -8
var_4= -4

SUB             SP, SP, #8
MOVS            R2, #1
STR             R0, [SP,#8+var_4]
STR             R1, [SP,#8+var_8]
MOV             R0, R2
ADD             SP, SP, #8
BX              LR

And the actual code is:

%hook SomeClass
- (int)somemethod {
return 1;
}
%end

I try to make it to return 0 (false). I did by changing MOVS R2, #1 to MOVS R2, #0 but it still returning 1. Any ideas?

  • Like 1
Posted

"MOV R0,#0 is a very common way of writing false".....only R0 is used for true/false or it can be any register to say true as long as the operand is #0/#1.????

Posted

why do you have that less likes when you wrote this pretty damn helpful tutorial? Man wish u the best.

Posted (edited)

Quite informative <3 thanks for putting this together :D great job ;)

I personally find that using the hexreys decompiler for arm helps figure out what a subroutine does much faster than just reading the raw arm :p

Updated by x30
typo ;)
Posted

I read it once and i don't underdanted so much, now i see all again and everything is fine and awesome, now i can undestand every word in this tutorial, it's all very clear *-*. Thank you for this amazin, complete and clear tutorial \o/

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