Skip to content
Guest Big Announcement

[IDA] Is this Function Hackable?

Featured Replies

I'm here again...

 

Someone told me to practice with an old version of Candy Crush because this would be "easy"...

I thought this function is hackable:

AcHJ7Pt.png

 

I did this:

; _DWORD __fastcall CSaveData::SetNumLives(CSaveData *__hidden this, int)
EXPORT _ZN9CSaveData11SetNumLivesEi
_ZN9CSaveData11SetNumLivesEi
STMFD           SP!, {R4-R6,LR}
MOV             R4, R0
LDR             R6, [R0,#0x29C] --> LDR R6 [R7,#0x29C]
MOV             R5, R1
BL              _ZN9CSaveData14GetNumMaxLivesEv ; CSaveData::GetNumMaxLives(void)
CMP             R6, R0
BLT             loc_F4DC0

loc_F4DC0
STR             R5, [R4,#0x29C] --> STR R7, [R4,#0x29C]
LDMFD           SP!, {R4-R6,PC}
; End of function CSaveData::SetNumLives(int)

I though this would be it because the LDR function tells #0x29C and so does the STR function.

 

Results: after playing one level it gave me a negative number of lives...

 

any help? :/

  • Author

You can mshook that.

 

And are you sure the lives are minus? Or is the value too large to fit on screen? :p

mshook on a android .so? :p

 

and yes, I am sure. I tried playing a level and it says not enough lives

Why do you ask us and don't test it?

 

Yes it is

I already tested it, I already told you the results so....

  • Author

MOV R0, R7

BX LR

The first funtion

why would that work? will try but..

 

edit: crashes the game.

Updated by xShadowGhostx

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.