Jump to content

il2cpp resolver for theos v0.3


batchh

60 posts in this topic

Recommended Posts

Hello everyone today i want to present my il2cpp resolver for theos

Are you lazy and don't won't to update your offset everytime a new version comes out? Then this is for you! 

Enjoy ❤️ 

Download:

Hidden Content

React or reply to this topic to see the hidden content & download link.

What is this?

This project provides tools for interacting with Unity's IL2CPP (Intermediate Language to C++), specifically designed to work within Theos.

What it allows to do:
- Retrieve Il2cpp metadata (assembly, classes, methods, fields)
- Manipulating field values
- Invoking methods

Todos:
Add support for strings
- Add support for arrays
- More stuff 

Important:
- This is set to target "UnityFramework", if il2cpp is initialize in another file, just change it in Il2CppAttach function!
- Don't forget to #import "il2cpp.h"
- You need to Initialize IL2CPP, how? -> Call Il2CppAttach();

#import "il2cpp.h"

void setup() {
    Il2CppAttach();
}

Example of usage:

- Fields 

//getClass
Il2CppField& getClass(const char* namespaze, const char* className)  //getClass argument is namespace, class name

// Create an Il2CppField instance for the specified assembly
Il2CppField fieldAccess("Assembly-CSharp.dll");

// Get the offset of the 'wasKnifed' field in the 'PlayerScript' class
size_t offsetField = fieldAccess.getClass("", "PlayerScript").getField("wasKnifed").getOffset();

// Get the current value of the 'wasKnifed' field
bool fieldValue = fieldAccess.getValue<bool>();

// Set the 'wasKnifed' field to true
fieldAccess.setValue<bool>(true);

- Methods

//getClass
Il2CppMethod& getClass(const char* namespaze, const char* className) //getClass argument is namespace, class name
  
//getMethod
uint64_t getMethod(const char* methodName, int argsCount) //getMethod argument is method name, number of arguments in the method
  
//invoke
invoke(Args... args) //this will invoke the method, if the method has arguments just add them

// Create an Il2CppMethod instance for the specified assembly
Il2CppMethod methodAccess("Assembly-CSharp.dll");

// Get the RVA offset of the 'CanShoot' method in the 'PlayerScript' class
uint64_t methodOffset = methodAccess.getClass("", "PlayerScript").getMethod("CanShoot", 1);

// Invoke the 'CanShoot' method
bool canShoot = methodAccess.invoke<bool>();

//Invoke with arguments
uint64_t setHealthOffset = methodAccess.getClass("", "PlayerScript").getMethod("set_health", 1);
// Replace with your desired value
float newHealthValue = 100.0f; 
// Invoke the 'set_health' method with the new value
methodAccess.invoke<void, float>(newHealthValue);

- Strings

//Create string utf8
const char *utf8String = "Hello World!";
Il2CppString il2cppStr(utf8String);

//Create string utf16
const wchar_t *utf16Str = L"Hello, World!";
Il2CppString il2cppStr(utf16Str, wcslen(utf16Str));

// Convert IL2CPP string to UTF-8
std::string utf8Str = il2cppStr.toUtf8String();

// Convert IL2CPP string to UTF-16
std::wstring utf16StrConverted = il2cppStr.toUtf16String();

// Get IL2CPP string characters directly
uint16_t *chars = il2cppStr.getChars();

//Get internal string 
void *strPointer = il2cppStr.getInternalString();

//Pratical Usage example Fields:
Il2CppField field("Assembly-CSharp.dll");

field.getClass("", "PlayerScript").getField("nickname");

// Get current nickname value
Il2CppString currentNickname(field.getValue<void*>()); 

// Create new IL2CPP string for new nickname
Il2CppString newNicknameStr("newNickname");

// Set the new nickname using setValue template method
field.setValue<void*>(newNicknameStr.getInternalString());

//Pratical Usage Methods:
Il2CppMethod methodAccess("Assembly-CSharp.dll");
methodAccess.getClass("", "PlayerScript").getMethod("set_nickname", 1);

// Create IL2CppString for the new nickname
Il2CppString newNicknameStr("newNickname");

// Invoke the set_nickname method with the new nickname argument
method.invoke<void>(newNicknameStr.getInternalString());

Credits:

- @batchh

Updated by batchh
  • Like 54
  • Winner 5
  • Agree 5
  • Informative 2
Link to comment
Share on other sites

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

    • Dear My Cat Cheats v2.1.7 +1
      Modded/Hacked App: Dear My Cat by FLERO GAMES Co.,Ltd.
      Bundle ID: com.flerogames.AfterRain
      iTunes Store Link: https://apps.apple.com/us/app/dear-my-cat/id1526637165?uo=4&at=1010lce4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/134204-dear-my-cat-v103-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/134201-dear-my-cat-cheats-all-versions-1-infinite-currencies/
      • 133 replies
    • AdVenture Communist v6.39.2 +2 Cheats
      Modded/Hacked App: AdVenture Communist By Hyper Hippo Publishing Ltd.
      Bundle ID: com.kongregate.mobile.adventurecommunist
      iTunes Store Link: https://apps.apple.com/us/app/adventure-communist/id1225683141?uo=4


      Hack Features:
      - Freeze Currencies
      - Unlimited Cards [Get Some]


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/149919-adventure-communist-v6392-2-cheats-for-jailed-idevices/


      iOS Hack Download Link: https://iosgods.com/topic/149902-adventure-communist-v6392-2-cheats/
      • 109 replies
    • Otherworld Three Kingdoms Cheats v1.0.13 +3
      Modded/Hacked App: Otherworld Three Kingdoms By SuperPlanet corp.
      Bundle ID: com.superplanet.samworld
      iTunes Store Link: https://apps.apple.com/us/app/otherworld-three-kingdoms/id6496345383?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skills


      iOS Hack Download Link: https://iosgods.com/topic/183743-otherworld-three-kingdoms-cheats-v103-3/
      • 84 replies
    • Rumble Heroes : Adventure RPG Cheats v2.1.0.27 +4
      Modded/Hacked App: Rumble Heroes : Adventure RPG By playhard Inc.,
      Bundle ID: com.playhardlab.heroes
      iTunes Store Link: https://apps.apple.com/us/app/rumble-heroes-adventure-rpg/id6443603223?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Always Drop x5 Loot
      - Freeze Currencies


      DO NOT BUY VIP FOR JUST THIS CHEAT. REMOVE ANY JB BYPASS FOR THE GAME


      iOS Hack Download Link: https://iosgods.com/topic/186304-rumble-heroes-adventure-rpg-cheats-v20091-4/
      • 28 replies
    • Zooba: Zoo Battle Royale Game v4.55.0 Jailed Cheats +2
      Modded/Hacked App: Zooba: Zoo Battle Royale Games By Wildlife Studios Limited
      Bundle ID: com.fungames.battleroyale
      iTunes Store Link: https://apps.apple.com/us/app/zooba-zoo-battle-royale-games/id1459402952?uo=4


      Hack Features:
      - Map Hacks
      - Allow Shoot in Water


      Jailbreak required hack(s): https://iosgods.com/topic/131104-arm64-zooba-zoo-battle-royale-game-cheats-all-versions-2/


      iOS Hack Download Link: https://iosgods.com/topic/131134-arm64-zooba-zoo-battle-royale-game-v320-jailed-cheats-2/
      • 1,137 replies
    • Last Day On Earth: Survival v1.28.1 +36 FREE Hacks
      Modded/Hacked App: Last Day on Earth: Survival By Andrey Pryakhin
      Bundle ID: zombie.survival.craft.z
      iTunes Link: https://itunes.apple.com/us/app/last-day-on-earth-survival/id1241932094

      Hack Features:
      - Coins Hack - Spend/Buy something that costs Coins to increase Coins!
      - Durability Hack - Weapons, Clothes, Boots, etc. Will not break. You can always keep using them.
      - Crafting Hack - Able to craft stuff without required items!
      - Skill Points Hack - Skill Points won't decrease, reset to increase.
      - Duplicate Items Hack - Split Items to duplicate them! Now it will duplicate by 20!
      - Loot box hack - Open 1 lootbox for 1000! - x64 only
      - Items increase when Taking from Inbox. You will never run out of Items in your inbox! - x64 only
      - Minigun Doesn't Overheat - x64 only
      - Unlimited Energy. Energy Increases instead of subtracting! - x64 only
      - Bow One Hit Kill - x64 only
      - Anti-Ban

      During the month of December, we have decided to make the ViP hack for free for all users! :) Extra features include:
      • 29,560 replies
    • Last Day on Earth: Survival v1.28.1 +17 FREE Jailed Cheats
      Modded/Hacked App: Last Day On Earth: Zombie Survival By Andrey Pryakhin
      Bundle ID: zombie.survival.craft.z
      iTunes Link: https://itunes.apple.com/us/app/last-day-on-earth-zombie-survival/id1241932094


      Hack Features
      Hack Features
      - Coins Hack - Buy something that costs coins to increase
      - Duplicate Items Hack - Split items to duplicate them :p
      - Skill Points Hack - Use to increase
      - Weapon/Item Durability Hack - Your weapons and items will never break.
      - Loot Boxes Hack! -> Open 1 loot box and gain 10,000!

      This hack was made by ZahirSher for iOSGods.com.
      • 41,749 replies
    • Demon Hunter Idle Cheats v1.4.5 +3
      Modded/Hacked App: Demon Hunter Idle By MOBIRIX
      Bundle ID: com.mobirix.mbpdh
      iTunes Store Link: https://apps.apple.com/us/app/demon-hunter-idle/id6472879858?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Freeze Currencies*

      *NOTE: Do not abuse or buy ViP for just this cheat


      iOS Hack Download Link: https://iosgods.com/topic/183710-demon-hunter-idle-cheats-v102-3/
      • 111 replies
    • Mob Control v2.78.0 +7 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Skip'Its
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Jailbreak required hack(s): [Mod Menu Hack] Mob Control v2.78.0 +7 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/
      • 1 reply
    • Mob Control v2.78.0 +7 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Skip'Its
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Mob Control v2.78.0 +7 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/
      • 3 replies
    • Survivor!.io v3.3.0 +4 Jailed Cheats
      Modded/Hacked App: Survivor!.io By HABBY PTE. LTD.
      Bundle ID: com.dxx.firenow
      iTunes Store Link: https://apps.apple.com/us/app/survivor-io/id1528941310?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:
      - Damage Multiplier
      - Never Die
      - No Skills Cooldown
      - Infinite Magnet


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 188 replies
    • Office Cat: Idle Tycoon Game v1.0.25 +1 Jailed Cheat
      Modded/Hacked App: Office Cat: Idle Tycoon Game By treeplla Inc.
      Bundle ID: com.tree.idle.cat.office
      iTunes Store Link: https://apps.apple.com/us/app/office-cat-idle-tycoon-game/id6471960010?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:
      - Reward Multiplier*

      *Turn Off When You Get Enough Currencies Otherwise It'll Go Negative


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 32 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