Jump to content

2 posts in this topic

Recommended Posts

Posted (edited)

iDevice: Jailbroken (checkra1n) iPhone 7 w/iOS 14.4

How can I change the returned value of a method to an expected string?

Below is the method as seen in dnSpy...

public string MatchEndReason
{
	[Token(Token = "0x6002EC5")]
	[Address(RVA = "0x15D2450", Offset = "0x15D2450", VA = "0x1015D2450")]
	[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x1A7C30", Offset = "0x1A7C30")]
	get
	{
		return null;
	}
	[Token(Token = "0x6002EC6")]
	[Address(RVA = "0x15D2458", Offset = "0x15D2458", VA = "0x1015D2458")]
	[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x1A7C40", Offset = "0x1A7C40")]
	set
	{
	}
}

The corresponding strings in global-metadata.dat include "PointsCaptured", "OpponentsDestroyed", "TimeWasUp", and "LeftGame" (all without quotes).

If I leave the game, I want to change the MatchEndReason from "LeftGame" to any of the other match end reasons so I can get an ad view for rewards.

Below are the corresponding ARM64 functions from IDA Pro...

il2cpp:00000001015D2450		; DATA XREF: __data:0000000104871DC8↓o
il2cpp:00000001015D2450		LDR		X0, [X0,#0x20]
il2cpp:00000001015D2454		RET
il2cpp:00000001015D2458		; DATA XREF: __data:0000000104871DD0↓o
il2cpp:00000001015D2458		STR		X1, [X0,#0x20]
il2cpp:00000001015D245C		RET

If I just try to patch LDR X0,[X0,#0x20] to a corresponding string list number for the Match End Reason (i.e. patch to MOV X0, #1 by hex-editing the binary at that offset to 200080D2), the game just crashes. I'm guessing it's looking for the actual string, but I don't know how to assign a string to a register.

Any insight you can provide would be greatly appreciated.

Updated by scatrmynd
clarification/reiteration at end of post
Posted
On 5/2/2022 at 11:03 PM, scatrmynd said:
Address(RVA = "0x15D2450", Offset = "0x15D2450", VA = "0x1015D2450")]
	[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x1A7C30", Offset = "0x1A7C30")]

Which Offset are you trying to patch? also, are you testing the offsets/patch on the go or are you compiling it as an IPA then seeing if the hacks worked.

 

 

On 5/2/2022 at 11:03 PM, scatrmynd said:
il2cpp:00000001015D2450		; DATA XREF: __data:0000000104871DC8↓o
il2cpp:00000001015D2450		LDR		X0, [X0,#0x20]
il2cpp:00000001015D2454		RET
il2cpp:00000001015D2458		; DATA XREF: __data:0000000104871DD0↓o
il2cpp:00000001015D2458		STR		X1, [X0,#0x20]
il2cpp:00000001015D245C		RET

This isn't really needed as DNSPY show's you all the offsets. 

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

    • Dragoneer Squad: Idle v1.0.13 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Dragoneer Squad: Idle By DAERI SOFT
      Bundle ID: com.daerigame.dragon
      App Store Link: https://apps.apple.com/us/app/dragoneer-squad-idle/id6746182414?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 13 replies
    • Dragoneer Squad: Idle v1.0.13 +3 Cheats [ Damage & Defence ]
      Modded/Hacked App: Dragoneer Squad: Idle By DAERI SOFT
      Bundle ID: com.daerigame.dragon
      App Store Link: https://apps.apple.com/us/app/dragoneer-squad-idle/id6746182414?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 25 replies
    • Fable Town: Merge Games v1.21.0 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Fable Town: Merge Games By REEF GAMES LTD
      Bundle ID: com.reefgames.fabletown
      iTunes Store Link: https://apps.apple.com/us/app/fable-town-merge-games/id6478150057?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Fable Town: Merge Games v1.6.4 +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/
      • 20 replies
    • Fable Town: Merge Games v1.21.0 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Fable Town: Merge Games By REEF GAMES LTD
      Bundle ID: com.reefgames.fabletown
      iTunes Store Link: https://apps.apple.com/us/app/fable-town-merge-games/id6478150057?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Fable Town: Merge Games v1.6.4 +1++ Jailed 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/
      • 10 replies
    • Hello Kitty Merch Match v3.5.0 +1 Jailed Cheat [ Freeze Time ]
      Modded/Hacked App: Hello Kitty Merch Match By Applibot Inc.
      Bundle ID: jp.co.applibot.HelloKittyMerchMatch
      App Store Link: https://apps.apple.com/us/app/hello-kitty-merch-match/id6740388983?uo=4

       
       

      🤩 Hack Features

      - Freeze Time
      • 0 replies
    • Hello Kitty Merch Match v3.5.0 +1 Cheat [ Freeze Time ]
      Modded/Hacked App: Hello Kitty Merch Match By Applibot Inc.
      Bundle ID: jp.co.applibot.HelloKittyMerchMatch
      App Store Link: https://apps.apple.com/us/app/hello-kitty-merch-match/id6740388983?uo=4

       


      🤩 Hack Features

      - Freeze Time
      • 0 replies
    • Pocket Defense v318 GM Menu [+20 Jailed Cheats]
      Modded/Hacked App: Pocket Defense By RiftSky Games Co.,Limited
      Bundle ID: com.riftsky.fgt.gb.ios
      App Store Link: https://apps.apple.com/us/app/pocket-defense/id6744015186?uo=4



      🤩 Hack Features

      - Unlimited Currency
      - Unlock Privileges Packages (No Ads, Auto-Select Bless etc..)
      - GM Menu (Enable and open in-game setting GM Menu will be appear)
      • 5 replies
    • Pocket Defense v318 GM Menu [+20 Cheats]
      Modded/Hacked App: Pocket Defense By RiftSky Games Co.,Limited
      Bundle ID: com.riftsky.fgt.gb.ios
      App Store Link: https://apps.apple.com/us/app/pocket-defense/id6744015186?uo=4

       

      🤩 Hack Features

      - Unlimited Currency
      - Unlock Privileges Packages (No Ads, Auto-Select Bless etc..)
      - GM Menu (Enable and open in-game setting GM Menu will be appear)
       
      • 32 replies
    • Weapon Merge Battle v1.4 [ +3 Cheats ] Never Die
      Modded/Hacked App: Weapon Merge Battle By Rio Master DMCC
      Bundle ID: com.riomaster.weaponmerge
      App Store Link: https://apps.apple.com/ca/app/weapon-merge-battle/id6742321536?uo=4


      🤩 Hack Features

      - HP
      - ATK
      - DEF
      • 1 reply
    • Weapon Merge Battle v1.4 [ +3 Jailed ] Never Die
      Modded/Hacked App: Weapon Merge Battle By Rio Master DMCC
      Bundle ID: com.riomaster.weaponmerge
      App Store Link: https://apps.apple.com/ca/app/weapon-merge-battle/id6742321536?uo=4

       
      🤩 Hack Features

      - HP
      - ATK
      - DEF
      • 0 replies
    • Survive & Smash v1.2 [ +2 Cheats ] Never Die
      Modded/Hacked App: Survive & Smash By Beijing New Vision Real Estate Development Co., Ltd.
      Bundle ID: com.survive.smash.io
      App Store Link: https://apps.apple.com/ca/app/survive-smash/id6469017413?uo=4


      🤩 Hack Features

      - HP [ Upgrade & Reset ] Then Equip
      - DMG [ Upgrade & Reset ] Then Equip
      • 0 replies
    • Survive & Smash v1.2 [ +2 Jailed ] Never Die
      Modded/Hacked App: Survive & Smash By Beijing New Vision Real Estate Development Co., Ltd.
      Bundle ID: com.survive.smash.io
      App Store Link: https://apps.apple.com/ca/app/survive-smash/id6469017413?uo=4

      🤩 Hack Features

      - HP [ Upgrade & Reset ] Then Equip
      - DMG [ Upgrade & Reset ] Then Equip

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