Skip to content
Guest Big Announcement

How to make a int version return false in IDA?

Featured Replies

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!

Solved by Archangel04

  • Solution

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

  • Author
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

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.