Jump to content

How to make a int version return false in IDA?


Go to solution Solved by Archangel04,

6 posts in this topic

Recommended Posts

Posted

hi,

 

So I got this function:

 

Coins - (int)cheated
__text:0003F99C
__text:0003F99C ; int __cdecl -[Coins cheated](struct Coins *self, SEL)
__text:0003F99C __Coins_cheated_
__text:0003F99C                 MOV             R1, #(_OBJC_IVAR_$_Coins.cheated - 0x3F9A8) ; int cheated;
__text:0003F9A4                 ADD             R1, PC  ; int cheated;
__text:0003F9A6                 LDR             R1, [R1] ; int cheated;
__text:0003F9A8                 LDR             R0, [R0,R1]
__text:0003F9AA                 BX              LR

 

Iknow I could MSHook this, but I wanna practice IDA..

So.. how would I return the int to 0?

 

I've no idea which one I have to change..

 

I thought the first MOV to MOV R1, #0 but I don't think it worked..

 

help would be great!

Posted

Use MOV R0, #0 (00207047)

This is covered in one of Zahir's hacking videos.

  • Solution
Posted (edited)

i.e mov r0, #0 then bx lr. 

LDR             R0, [R0,R1] is your coins cheated i think
1 minute ago, DiDA said:

Use MOV R0, #0 (00207047)

This is covered in one of Zahir's hacking videos.

Beat you ( ͡° ͜ʖ ͡°)

Updated by Archangel04
Posted
1 minute ago, Archangel04 said:

i.e mov r0, #0 then bx lr. 


LDR             R0, [R0,R1] is your coins cheated i think

 

 

2 minutes ago, DiDA said:

Use MOV R0, #0 (00207047)

This is covered in one of Zahir's hacking videos.

Thanks guys <3

Posted
1 minute ago, Archangel04 said:

i.e mov r0, #0 then bx lr. 


LDR             R0, [R0,R1] is your coins cheated i think

Beat you ( ͡° ͜ʖ ͡°)

Lol

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