Jump to content

Code Injection doesn't work, except credit popup.


Go to solution Solved by Rook,

12 posts in this topic

Recommended Posts

Posted (edited)

Heyyy it's me again.. :sad:

I used this tutorial also: https://www.dropbox.com/s/y3rcskg8uigt5lm/IDA PRO Code Inject Tutorial.pdf?dl=0

 

 

I'm kind of practicing to work with IDA on Pou,

So I figured out how to hack some functions by editing the binary using a hex editor.

 

Now I wanted to try to make a code injection tweak out of it.

 

The function is:

; Coins - (int)have
__text:0003EBD4 ; Attributes: bp-based frame
__text:0003EBD4
__text:0003EBD4 ; int __cdecl -[Coins have](struct Coins *self, SEL)
__text:0003EBD4 __Coins_have_                           ; DATA XREF: __objc_const:0045C890o
__text:0003EBD4                 PUSH            {R4-R7,LR}
__text:0003EBD6                 ADD             R7, SP, #0xC
__text:0003EBD8                 MOV             R4, R0
__text:0003EBDA                 MOV             R0, #(_OBJC_IVAR_$_Coins.given - 0x3EBEA) ; int given;
__text:0003EBE2                 MOVW            R1, #:lower16:(selRef_collected - 0x3EBF0)

 

well the function is longer, but in the hex editor I changed 

 ; Coins - (int)have
__text:0003EBD4 ; Attributes: bp-based frame
__text:0003EBD4
__text:0003EBD4 ; int __cdecl -[Coins have](struct Coins *self, SEL)
__text:0003EBD4 __Coins_have_                           ; DATA XREF: __objc_const:0045C890o
__text:0003EBD4                 PUSH            {R4-R7,LR}
__text:0003EBD6                 ADD             R7, SP, #0xC

TO:
 ; Coins - (int)have
__text:0003EBD4 ; Attributes: bp-based frame
__text:0003EBD4
__text:0003EBD4 ; int __cdecl -[Coins have](struct Coins *self, SEL)
__text:0003EBD4 __Coins_have_                           ; DATA XREF: __objc_const:0045C890o
__text:0003EBD4                 MOV            R0,R7
__text:0003EBD6                 BX LR

 

This worked.

 

So the HEX Offsets I need are

0003ebd4 & 0003ebd6

Right?

 

So what I did in my tweak.xm was:

 

%ctor {
	if(GetPrefBool(@"key1")) {
		writeData(0x3ebd4, 0x38467047);
		writeData(0x3ebd6, 0x7047);
	} else {
}

 

It had no effect, however I got the credit popup which is automaticly added in the tweak.xm

 

So after that I tried this, which didn't make sense to me since the BX LR had another hex adress

 

%ctor {
	if(GetPrefBool(@"key1")) {
		writeData(0x3ebd4, 0x38467047);
	} else {
}

}

 

but this didn't work either..

 

It doesn't make any sense I try this on Pou, since this can be hooked too,

but for me it's just practicing & playing around lol

 

Someone knows what the problem can be?

Am I doing something wrong?

 

Thankyou in advance! :D

Updated by Ted2
  • Solution
Posted

Seems like you only hacked armv7 and likely didn't think your binary.

If the Pou binary has both armv7 & arm64, you'll likely need to integrate armv7 binary into your deb so it automatically thins it. 

According to your profile fields, your iPhone 6s is loading the arm64 portion. But you only hacked armv7 portion so that's why you need to thin it.

Posted (edited)
2 minutes ago, DiDA said:

Seems like you only hacked armv7 and likely didn't think your binary.

If the Pou binary has both armv7 & arm64, you'll likely need to integrate armv7 binary into your deb so it automatically thins it. 

According to your profile fields, your iPhone 6s is loading the arm64 portion. But you only hacked armv7 portion so that's why you need to thin it.

I did thin the binary to armv7 using shmoo's tutorial about 'How to perform a Binary patch' :/ 

 

edit: you're right.. I redownloaded because otherwise it would've loaded my hacks still into it. Sh*t man, lol sorry.. I feel so stupidd

My bad & thankyou for helping :D

Updated by Ted2
im stupid xd
Posted
7 minutes ago, DiDA said:

Seems like you only hacked armv7 and likely didn't think your binary.

If the Pou binary has both armv7 & arm64, you'll likely need to integrate armv7 binary into your deb so it automatically thins it. 

According to your profile fields, your iPhone 6s is loading the arm64 portion. But you only hacked armv7 portion so that's why you need to thin it.

ehmm, it still doesn't work.. I've defenitly thinned it this time :/

Posted
1 minute ago, Ted2 said:

ehmm, it still doesn't work.. I've defenitly thinned it this time :/

Did you enable the switch with key 'key1'?

Also, use 381c7047

Posted
1 minute ago, DiDA said:

Did you enable the switch with key 'key1'?

Also, use 381c7047

Lol I feel so stupid sometimes.. It was switched off -.-

Works now.

 

Why 381c7047 though? :)

Posted
8 minutes ago, Ted2 said:

Lol I feel so stupid sometimes.. It was switched off -.-

Works now.

 

Why 381c7047 though? :)

Nevermind, 38467047 is the same :p

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
  • Our picks

    • EndZone: Defend and Survive v1.0.2 [+3 Cheats]
      Modded/Hacked App: EndZone: Defend and Survive By Artemis Aura Limited
      Bundle ID: com.jiujiu.zombiedefense
      App Store Link: https://apps.apple.com/us/app/endzone-defend-and-survive/id6742880291?uo=4



      🤩 Hack Features

      - Never Die
      - Always Can Upgrade
      - No Resource Cost
       
        • Thanks
        • Like
      • 3 replies
    • EndZone: Defend and Survive v1.0.2 [+3 Jailed Cheats]
      Modded/Hacked App: EndZone: Defend and Survive By Artemis Aura Limited
      Bundle ID: com.jiujiu.zombiedefense
      App Store Link: https://apps.apple.com/us/app/endzone-defend-and-survive/id6742880291?uo=4



      🤩 Hack Features

      - Never Die
      - Always Can Upgrade
      - No Resource Cost
        • Informative
        • Like
      • 5 replies
    • Knights of Pen and Paper 3 v1.5.3 [+5 Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

        • Winner
        • Like
      • 5 replies
    • Knights of Pen and Paper 3 v1.5.3 [+5 Jailed Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

        • Thanks
        • Like
      • 7 replies
    • Idle Army: Trading Weapons v1.14.1 [+5 Jailed Cheats]
      Modded/Hacked App: Idle Army: Trading Weapons By UNIMOB VIET NAM COMPANY LIMITED
      Bundle ID: com.unimob.idle.army
      App Store Link: https://apps.apple.com/us/app/idle-army-trading-weapons/id6670773625?uo=4



      🤩 Hack Features

      - Always Enough Resources (Gem, Skip Ads etc.)
      - Max Gold (Enable inside game)
      - 2x Game Speed (Enable inside game)
      - Kill Monster (Enable inside game)
      - Add All Pet

        • Thanks
        • Winner
        • Like
      • 16 replies
    • Idle Army: Trading Weapons v1.14.1 [+5 Cheats]
      Modded/Hacked App: Idle Army: Trading Weapons By UNIMOB VIET NAM COMPANY LIMITED
      Bundle ID: com.unimob.idle.army
      App Store Link: https://apps.apple.com/us/app/idle-army-trading-weapons/id6670773625?uo=4

       

      🤩 Hack Features

      - Always Enough Resources (Gem, Skip Ads etc.)
      - Max Gold (Enable inside game)
      - 2x Game Speed (Enable inside game)
      - Kill Monster (Enable inside game)
      - Add All Pet

        • Agree
        • Thanks
        • Winner
        • Like
      • 6 replies
    • Kingdom Survivors v1.0760 [+4 Cheats]
      Modded/Hacked App: Kingdom Survivors By a plant standing on a chair Game Studio HB
      Bundle ID: com.DefaultCompany.MonsJacobSurvivorGame
      iTunes Store Link: https://apps.apple.com/us/app/kingdom-survivors/id1662497248?uo=4



      🚀 Hack Features

      - Never Die
      - Gain Exp (Toggle On gives you exp in battle)
      - Unlock All Characters
      - Add Currency
        • Winner
        • Like
      • 22 replies
    • Kingdom Survivors v1.0760 [+4 Jailed Cheats]
      Modded/Hacked App: Kingdom Survivors By a plant standing on a chair Game Studio HB
      Bundle ID: com.DefaultCompany.MonsJacobSurvivorGame
      iTunes Store Link: https://apps.apple.com/us/app/kingdom-survivors/id1662497248?uo=4



      Hack Features:

      - Never Die
      - Gain Exp (Toggle On gives you exp in battle)
      - Unlock All Characters
      - Add Currency

        • Informative
        • Agree
        • Thanks
        • Like
      • 19 replies
    • Stand & Fight: Backpack Battle v0.9.1 Debug Menu [+10 Jailed Cheats]
      Modded/Hacked App: Stand & Fight: Backpack Battle By VERARIUM COM SERVICOS LDA ZFM
      Bundle ID: com.V.StandAndFight
      App Store Link: https://apps.apple.com/us/app/stand-fight-backpack-battle/id6740915182?uo=4



      🤩 Hack Features

      - Debug Menu

       
        • Informative
        • Like
      • 10 replies
    • Stand & Fight: Backpack Battle v0.9.1 Debug Menu [+10 Cheats]
      Modded/Hacked App: Stand & Fight: Backpack Battle By VERARIUM COM SERVICOS LDA ZFM
      Bundle ID: com.V.StandAndFight
      App Store Link: https://apps.apple.com/us/app/stand-fight-backpack-battle/id6740915182?uo=4



      🤩 Hack Features

      - Debug Menu
        • Agree
        • Winner
        • Like
      • 10 replies
    • Flambé: Merge and Cook v1.20.1 [+2 Jailed Cheats]
      Modded/Hacked App: Flambé: Merge and Cook By Microfun Limited
      Bundle ID: com.mf.cola
      App Store Link: https://apps.apple.com/us/app/flamb%C3%A9-merge-and-cook/id6618142292?uo=4



      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency (Gold, Gem and Skip Ticket)
        • Winner
        • Like
      • 3 replies
    • Flambé: Merge and Cook v1.20.1 [+2 Cheats]
      Modded/Hacked App: Flambé: Merge and Cook By Microfun Limited
      Bundle ID: com.mf.cola
      App Store Link: https://apps.apple.com/us/app/flamb%C3%A9-merge-and-cook/id6618142292?uo=4

       

      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency (Gold, Gem and Skip Ticket)
       
        • Winner
        • Like
      • 5 replies
×
  • 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