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

    • MeChat - Interactive Stories v4.36.0 +5 Cheats [ Unlimited Gems ]
      Modded/Hacked App: MeChat - Interactive Stories By IMPONILOX LIMITED
      Bundle ID: world.playme.mechat
      App Store Link: https://apps.apple.com/us/app/mechat-interactive-stories/id1536157979?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Unlimited Gems -> Will increase instead of decrease.
      - Unlock All Photos
      - Unlock All Audio Clips
      -- VIP Enabled

      VIP
      - Unlimited Gems -> Earn some then disable this feature. DO NOT SPEND ANY GEMS WHILST THIS FEATURE IS ENABLED!
      • 320 replies
    • Ultimate Golf! v4.21.04 +1 Jailed Cheat [ Perfect Shot ]
      Modded/Hacked App: Ultimate Golf! By Miniclip.com
      Bundle ID: com.hypgames.ultimategolf
      iTunes Store Link: https://apps.apple.com/us/app/ultimate-golf/id1475163222
       

      Hack Features:
      - Perfect Shot -> Every ball hit will go straight.


      Jailbreak required hack(s): [Mod Menu Hack] Ultimate Golf! v4.4.3 +1 Cheat [ Perfect Shot ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 177 replies
    • Ultimate Golf! v4.21.04 +1 Cheat [ Perfect Shot ]
      Modded/Hacked App: Ultimate Golf! By Miniclip.com
      Bundle ID: com.hypgames.ultimategolf
      iTunes Store Link: https://apps.apple.com/us/app/ultimate-golf/id1475163222


      Hack Features:
      - Perfect Shot -> Every ball hit will go straight.


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 288 replies
    • Airport Simulator: Plane City v2.00.321 +1 Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Airport Simulator: Plane City By Playrion SARL
      Bundle ID: com.playrion.airportmanager
      iTunes Store Link: https://apps.apple.com/us/app/airport-simulator-plane-city/id1572244031?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Unlimited Currencies -> Earn or spend some.


      Jailbreak required hack(s): [Mod Menu Hack] Airport Simulator: First Class v1.01.0202 +1++ Cheat [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 359 replies
    • Airport Simulator: Plane City v2.00.321 +1 Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Airport Simulator: Plane City By Playrion SARL
      Bundle ID: com.playrion.airportmanager
      iTunes Store Link: https://apps.apple.com/us/app/airport-simulator-plane-city/id1572244031?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Unlimited Currencies -> Earn or spend some.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Airport Simulator: First Class v1.01.0202 +1++ Cheat [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 245 replies
    • Royal Kingdom v19683 +4 Jailed Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Jailbreak required hack(s): [Mod Menu Hack] Royal Kingdom v3987 +4 Cheats [ Unlimited Coins ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 137 replies
    • Royal Kingdom v19683 +4 Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Royal Kingdom v3987 +4 Jailed Cheats [ Unlimited Coins ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 88 replies
    • League of Dreamers - My Story v2.1.4 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: League of Dreamers - My Story By Story Inc. Company
      Bundle ID: com.storyincorporate.leagueofdreamers
      iTunes Store Link: https://apps.apple.com/us/app/league-of-dreamers-my-story/id1591679538
       

      Hack Features:
      - 666 Gems -> Earn some then restart the game.
      - 666 Keys -> Earn some then restart the game.
      - Free In-App Purchases -> Allows free in-app purchases.


      Jailbreak required hack(s): [Mod Menu Hack] League of Dreamers - My Story v1.54 +3 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 172 replies
    • League of Dreamers - My Story v2.1.4 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: League of Dreamers - My Story By Story Inc. Company
      Bundle ID: com.storyincorporate.leagueofdreamers
      iTunes Store Link: https://apps.apple.com/us/app/league-of-dreamers-my-story/id1591679538
       

      Hack Features:
      - 666 Gems -> Earn some then restart the game.
      - 666 Keys -> Earn some then restart the game.
      - Free In-App Purchases


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 81 replies
    • Power Slap v7.2.6 +2++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Power Slap By Rollic Games Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.uncosoft.powerslap
      iTunes Store Link: https://apps.apple.com/us/app/power-slap/id6449244841?uo=4


      Hack Features:
      - Unlimited Everything -> Will increase instead of decrease.
      - Pro Pass Unlocked


      Jailbreak required hack(s): [Mod Menu Hack] Power Slap v0.4.1 +4 Cheats [ Damage & Defence ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 160 replies
    • Idle Breaker v1.4.0 +5++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Idle Breaker By Estoty LLC
      Bundle ID: com.idlesurvivor.game
      iTunes Store Link: https://apps.apple.com/us/app/idle-breaker/id6448195469?uo=4


      Hack Features:
      - Unlimited Everything -> Earn some.
      - Damage Multiplier
      - Health Multiplier
      - Tool Damage Multiplier
      - Move Speed Multiplier


      Jailbreak required hack(s): [Mod Menu Hack] Idle Breaker v1.0.31 +5++ Cheats [ Unlimited Everything ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 58 replies
    • Power Slap v7.2.6 +2++ Cheats [ Unlimited Everything ]
      Modded/Hacked App: Power Slap By Rollic Games Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.uncosoft.powerslap
      iTunes Store Link: https://apps.apple.com/us/app/power-slap/id6449244841?uo=4


      Hack Features:
      - Unlimited Everything -> Will increase instead of decrease.
      - Pro Pass Unlocked


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Power Slap v0.4.1 +2 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 113 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