Jump to content

(“Class”_Typeinfo;) hidden trying to hook


Go to solution Solved by Saitama,

5 posts in this topic

Recommended Posts

Posted

Ok so the game is pocket ants very easy to modify with hex patches but now I’m trying to figure out if it’s possible with function pointers and stuff like that.

So I figured out a lot of useful fields (ints,floats,etc.)come from this class called Puntos problem is that in this game almost all fields from the other classes are just gameobjects,sprites,(basically no way to reference it as far as I know )

so I looked further via ida and I notice almost every class that related to changing values from Puntos  had this thing called Puntos_info in it and which it did ADRP x20,#Puntos_info@page then ADD... @pageoff then it would have a tbnz that would go to another area where it loaded the(ldr x0,[x20 or another x2#]=Puntos_typeinfo) Puntos_typeinfo then did this Ldr w8,[x0,#0xe0] after this a cbnz which if not nz then it would return but if is z it call some like this j_1l2cpp_runtime_class_init_0 then loads Puntos_typeinfo again also I can’t figure out what this 0xe0 really I checked dump.cs and fake .dlls and nothing is here that relates to that 

But Point is somehow Puntos is being referenced and I want to know if it’s possible to use it for function pointers so I can edit this useful field mostly the floats as it’s hard to edit them with arm64 without constantly crashing 

 

more info : Puntos seems to be some obfuscate thing as from the functions in the class

and game uses unityframework

Posted

// RVA: 0x1616D58 Offset: 0x1616D58 VA: 0x1616D58
public void ClaimDaily() { }

il2cpp:0000000001616E3C                 ADRP            X22, #Puntos_TypeInfo@PAGE ; Puntos_TypeInfo
il2cpp:0000000001616E40                 ADD             X22, X22, #Puntos_TypeInfo@PAGEOFF ; Puntos_TypeInfo
il2cpp:0000000001616E44                 LDR             X0, [X22] ; Puntos_TypeInfo
il2cpp:0000000001616E48                 LDR             W8, [X0,#0xE0]
il2cpp:0000000001616E4C                 CBNZ            W8, loc_1616E58
il2cpp:0000000001616E50                 BL              j__il2cpp_runtime_class_init_0
il2cpp:0000000001616E54                 LDR             X0, [X22] ; Puntos_TypeInfo
il2cpp:0000000001616E58
il2cpp:0000000001616E58 loc_1616E58                             ; CODE XREF: Anniv2$$ClaimDaily+F4↑j
il2cpp:0000000001616E58                 LDR             X8, [X0,#0xB8]
il2cpp:0000000001616E5C                 LDR             W9, [X8,#0x1A0]

X8  -> public class Puntos : MonoBehaviour // TypeDefIndex: 704
W9 -> public static int a2day; // 0x1A0

 

// RVA: 0x17D1F14 Offset: 0x17D1F14 VA: 0x17D1F14
public void ClaimQuest(int index) { }

il2cpp:00000000017D208C                 LDR             X0, [X23] ; Puntos_TypeInfo
il2cpp:00000000017D2090                 LDR             W8, [X0,#0xE0]
il2cpp:00000000017D2094                 CBNZ            W8, loc_17D20A0
il2cpp:00000000017D2098                 BL              j__il2cpp_runtime_class_init_0
il2cpp:00000000017D209C                 LDR             X0, [X23] ; Puntos_TypeInfo
il2cpp:00000000017D20A0
il2cpp:00000000017D20A0 loc_17D20A0                             ; CODE XREF: Quests$$ClaimQuest+180↑j
il2cpp:00000000017D20A0                 LDR             X8, [X0,#0xB8]
il2cpp:00000000017D20A4                 LDR             X0, [X8,#0xC30]

X8  -> public class Puntos : MonoBehaviour // TypeDefIndex: 704
W9 -> public static List<Quest> misiones; // 0xC30

Class Puntos is looks like a static Singleton
 

 

  • Winner 1
Posted (edited)

17D2BCC                 BL              SaveData$$SaveQuests
17D2BCC -> 1F2003D5

17D1C3C                 BL              SaveData$$SaveDailies
17D1C3C -> 1F2003D5

18E1F4C                 BL              SaveData$$SaveSummerDaily
18E1F4C -> 1F2003D5

and after restart game u can again collect ur quest rewards :D

 

Updated by Saitama
  • Winner 1
Posted
On 10/2/2022 at 2:17 PM, Saitama said:

// RVA: 0x1616D58 Offset: 0x1616D58 VA: 0x1616D58
public void ClaimDaily() { }

il2cpp:0000000001616E3C                 ADRP            X22, #Puntos_TypeInfo@PAGE ; Puntos_TypeInfo
il2cpp:0000000001616E40                 ADD             X22, X22, #Puntos_TypeInfo@PAGEOFF ; Puntos_TypeInfo
il2cpp:0000000001616E44                 LDR             X0, [X22] ; Puntos_TypeInfo
il2cpp:0000000001616E48                 LDR             W8, [X0,#0xE0]
il2cpp:0000000001616E4C                 CBNZ            W8, loc_1616E58
il2cpp:0000000001616E50                 BL              j__il2cpp_runtime_class_init_0
il2cpp:0000000001616E54                 LDR             X0, [X22] ; Puntos_TypeInfo
il2cpp:0000000001616E58
il2cpp:0000000001616E58 loc_1616E58                             ; CODE XREF: Anniv2$$ClaimDaily+F4↑j
il2cpp:0000000001616E58                 LDR             X8, [X0,#0xB8]
il2cpp:0000000001616E5C                 LDR             W9, [X8,#0x1A0]

X8  -> public class Puntos : MonoBehaviour // TypeDefIndex: 704
W9 -> public static int a2day; // 0x1A0

 

// RVA: 0x17D1F14 Offset: 0x17D1F14 VA: 0x17D1F14
public void ClaimQuest(int index) { }

il2cpp:00000000017D208C                 LDR             X0, [X23] ; Puntos_TypeInfo
il2cpp:00000000017D2090                 LDR             W8, [X0,#0xE0]
il2cpp:00000000017D2094                 CBNZ            W8, loc_17D20A0
il2cpp:00000000017D2098                 BL              j__il2cpp_runtime_class_init_0
il2cpp:00000000017D209C                 LDR             X0, [X23] ; Puntos_TypeInfo
il2cpp:00000000017D20A0
il2cpp:00000000017D20A0 loc_17D20A0                             ; CODE XREF: Quests$$ClaimQuest+180↑j
il2cpp:00000000017D20A0                 LDR             X8, [X0,#0xB8]
il2cpp:00000000017D20A4                 LDR             X0, [X8,#0xC30]

X8  -> public class Puntos : MonoBehaviour // TypeDefIndex: 704
W9 -> public static List<Quest> misiones; // 0xC30

Class Puntos is looks like a static Singleton
 

 

Do you think its possible to use this static singleton with function pointers to modify the float fields? that’s really my main goal

  • Solution
Posted
1 hour ago, Wowowowww said:

Do you think its possible to use this static singleton with function pointers to modify the float fields? that’s really my main goal

sure
il2cpp:0000000001616E58                 LDR             X8, [X0,#0xB8]
il2cpp:0000000001616E5C                 LDR             W9, [X8,#0x1A0]

mov w28, 1
str w28,[X8,#0x1A0]


public static int a2day; // 0x1A0 == 1

also exist more easy way - i know thats is on forum exists
named like static bla bla bla dont remember

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Disney Speedstorm v1.11.2 +2 Jailed Cheats [ Unlimited Nitro ]
      Modded/Hacked App: Disney Speedstorm By Gameloft
      Bundle ID: com.gameloft.disneyspeedstorm
      iTunes Store Link: https://apps.apple.com/us/app/disney-speedstorm/id6449708682?uo=4


      Hack Features:
      - Unlimited Nitro -> Will not decrease.
      - Instant Nitro Max


      Jailbreak required hack(s): [Mod Menu Hack] Disney Speedstorm v1.5.0 +2 Cheats [ Unlimited Nitro ] - 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/
      • 77 replies
    • Disney Speedstorm v1.11.2 +2 Cheats [ Unlimited Nitro ]
      Modded/Hacked App: Disney Speedstorm By Gameloft
      Bundle ID: com.gameloft.disneyspeedstorm
      iTunes Store Link: https://apps.apple.com/us/app/disney-speedstorm/id6449708682?uo=4


      Hack Features:
      - Unlimited Nitro -> Will not decrease.
      - Instant Nitro Max


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Disney Speedstorm v1.5.0 +2 Jailed Cheats [ Unlimited Nitro ] - 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/
      • 69 replies
    • EGGCRYPTO ( エグリプト 世界に一体だけのモンスターを育成して戦うRPG ) v1.97.2 +1 Jailed Cheat [ Auto Win ]
      Modded/Hacked App: エグリプト 世界に一体だけのモンスターを育成して戦うRPG By Kyuzan Inc.
      Bundle ID: com.kyuzan.eggrypto
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%82%A8%E3%82%B0%E3%83%AA%E3%83%97%E3%83%88-%E4%B8%96%E7%95%8C%E3%81%AB%E4%B8%80%E4%BD%93%E3%81%A0%E3%81%91%E3%81%AE%E3%83%A2%E3%83%B3%E3%82%B9%E3%82%BF%E3%83%BC%E3%82%92%E8%82%B2%E6%88%90%E3%81%97%E3%81%A6%E6%88%A6%E3%81%86rpg/id1450911855?uo=4

       


      🤩 Hack Features

      - Auto Win
      • 9 replies
    • Lamar - Idle Vlogger v226.0.1 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Lamar - Idle Vlogger By Advant Limited
      Bundle ID: com.advant.lamar
      iTunes Store Link: https://apps.apple.com/us/app/lamar-idle-vlogger/id1595314851
       

      Hack Features:
      - Unlimited Cash -> Will increase instead of decrease.
      - Unlimited Gold -> Spend some.


      Jailbreak required hack(s): [Mod Menu Hack] Lamar - Idle Vlogger v151.07.05 +2 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/
      • 86 replies
    • Lamar - Idle Vlogger v226.0.1 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Lamar - Idle Vlogger By Advant Limited
      Bundle ID: com.advant.lamar
      iTunes Store Link: https://apps.apple.com/us/app/lamar-idle-vlogger/id1595314851
       

      Hack Features:
      - Unlimited Cash -> Will increase instead of decrease.
      - Unlimited Gold -> Spend some.


      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/
        • Like
      • 41 replies
    • Combat Master Mobile v0.24.71 +2 Jailed Cheats [ No Recoil ]
      Modded/Hacked App: Combat Master Mobile By Alfa Bravo Inc.
      Bundle ID: com.AlfaBravo.CombatMaster
      iTunes Store Link: https://apps.apple.com/us/app/combat-master-mobile/id1598639131
       

      Hack Features:
      - No Recoil
      - Instant Reload


      Jailbreak required hack(s): https://iosgods.com/topic/171228-combat-master-mobile-v08381-2-cheats-no-recoil/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
      • 99 replies
    • Combat Master Mobile v0.24.71 +2 Cheats [ No Recoil ]
      Modded/Hacked App: Combat Master Mobile By Alfa Bravo Inc.
      Bundle ID: com.AlfaBravo.CombatMaster
      iTunes Store Link: https://apps.apple.com/us/app/combat-master-mobile/id1598639131
       

      Hack Features:
      - No Recoil
      - Instant Reload


      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/
      • 113 replies
    • EGGCRYPTO ( エグリプト 世界に一体だけのモンスターを育成して戦うRPG ) v1.97.2 +1 Cheat [ Auto Win ]
      Modded/Hacked App: エグリプト 世界に一体だけのモンスターを育成して戦うRPG By Kyuzan Inc.
      Bundle ID: com.kyuzan.eggrypto
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%82%A8%E3%82%B0%E3%83%AA%E3%83%97%E3%83%88-%E4%B8%96%E7%95%8C%E3%81%AB%E4%B8%80%E4%BD%93%E3%81%A0%E3%81%91%E3%81%AE%E3%83%A2%E3%83%B3%E3%82%B9%E3%82%BF%E3%83%BC%E3%82%92%E8%82%B2%E6%88%90%E3%81%97%E3%81%A6%E6%88%A6%E3%81%86rpg/id1450911855?uo=4

       
       

      🤩 Hack Features

      - Auto WIn
      • 8 replies
    • AFK Magic TD v0.25.0 +3 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: AFK Magic TD By ARIZONA, INC.
      Bundle ID: com.arizonags.afktd
      iTunes Store Link: https://apps.apple.com/gb/app/afk-magic-td/id6479079201?uo=4


      Hack Features:
      - God Mode
      - Damage Mulitplier
      - No Skill Consumption -> Charge skill first.


      Jailbreak required hack(s): [Mod Menu Hack] AFK Magic TD v0.16.1 +3 Cheats [ Damage + More ] - 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/
      • 13 replies
    • AFK Magic TD v0.25.0 +3 Cheats [ Damage + More ]
      Modded/Hacked App: AFK Magic TD By ARIZONA, INC.
      Bundle ID: com.arizonags.afktd
      iTunes Store Link: https://apps.apple.com/gb/app/afk-magic-td/id6479079201?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - No Skill Consumption -> Charge skill first.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] AFK Magic TD v0.16.1 +3 Jailed Cheats [ Damage + More ] - 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/
        • Haha
      • 17 replies
    • Backpack Brawl v0.33.2 +1++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Backpack Brawl By 1986 GAMES SIA
      Bundle ID: com.rapidfiregames.backpackbrawl
      iTunes Store Link: https://apps.apple.com/us/app/backpack-brawl/id6479175676?uo=4


      Hack Features:
      - Unlimited Currencies -> Earn some.


      Jailbreak required hack(s): [Mod Menu Hack] Backpack Brawl v0.14.0 +1++ 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/
      • 57 replies
    • Backpack Brawl v0.33.2 +1++ Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Backpack Brawl By 1986 GAMES SIA
      Bundle ID: com.rapidfiregames.backpackbrawl
      iTunes Store Link: https://apps.apple.com/us/app/backpack-brawl/id6479175676?uo=4


      Hack Features:
      - Unlimited Currencies -> Earn some.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Backpack Brawl v0.14.0 +1++ 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/
      • 47 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