Jump to content

2 posts in this topic

Recommended Posts

Posted

Example/semi-doc of the IOS-Il2cppResolver tool made by @batchh. Its not gonna be the best however it is better than nothing. I recommend you use this if you don't understand how to use the tool.

I will update this if I get a better understanding or if more information is passed down to me to add here. Unless it becomes obsolete.

 

Download IOS-Il2cppResolver:

Just so you're aware it is not limited to whatever is inside the AssemblyCSharp.dll. It also includes any and all types that is being used within the game including but not limited to UnityEngine types.

 

Resolving functions from namespaces/classes:

// Get the pointer of the following function from the following Namespace/classe(s)

// Arg1: Namespace/Class path
// Arg2: Method name
// Arg3: Target arguments
// Return: target ptr (in this case 'get_CampType' pointer)
IL2CPP::Class::Utils::GetMethodPointerRVA("GameEngine.BattleSystem.BattleUnitStatus", "get_CampType", 3);
// return -> *function_ptr

// Example of get_CampType
public static void get_CampType(DataCharacter p_DataCharacter, int p_Level = 0, [Optional] Stat p_Stat)
{
	return null;
}

// As you can see we have 3 arguments within the target function.
// IF you do not parse the amount of arguments within 'get_CampType' then it can cause an issue with resolving the function. Even the [optional]'s

For some context. The method pointer is returned allowing you to instantly hook as soon as you call the function and the pointer is returned.

 

Hooking directly after getting target pointer:

// Here we are instantly hooking whatever result is resolved and returned from the GetMethodPointerRVA
HOOK(IL2CPP::Class::Utils::GetMethodPointerRVA("GameEngine.BattleSystem.BattleUnitStatus", "get_CampType", 0), Hget_CampType, old_get_CampType);

// It is recommended you dont do this but instead first get the rva, make sure it is handled then hook it to ensure it doesnt break anything or cause any issues. Remember to parse the argument size where the 0 is. Read above snippet for insight.

Helper.hpp

Going over soon.

Class.hpp

IL2CPP::Class:

Going over soon.

IL2CPP::Class::Utils:

Getting the static field of a class:

int* field = IL2CPP::Class::Utils::GetStaticField("MyClassPath", "myField");
printf(field); // prints the pointer of the field

Setting the static field of a class:

int* cashToSet = 100000;
IL2CPP::Class::Utils::SetStaticField("MyPathToClass", "myField", cashToSet);
// Gets the targeted field then sets the value to it of the targeted pointer in this case 'cashToSet'.

Getting the pointer of a static field of a class:

int* fieldPtr = IL2CPP::Class::Utils::GetFieldOffset("MyPathToClass", "myField");
printf(fieldPtr);
// We resolve the pointer of the field then we print it.

Getting the method pointer of a method:

void* methodPtr = IL2CPP::Class::Utils::GetMethodPointer("MyPathToClass", "MyMethodName"); // resolves the method then returns its pointer
int* intMethodPtr = static_cast<int*>(methodPtr); // We then cast it (I call it a convert) into a pointer 
printf("%p\n", static_cast<void*>(intMethodPtr)); // We then print the resulting pointer after convertion

Getting the RVA of a Method:

uint64_t RVA = IL2CPP::Class::Utils::GetMethodPointerRVA("MyPathToClass", "myMethod",0); // already covered above
printf(RVA); // prints the RVA of the method

Getting the param name from specific method index:

void MyMethod(int param1, int param2); // example
char* paramN = MethodGetParamName("MyMethod", 2); // get param2
printf(paramN); // -> "param2"

Getting the param type from specific method index:

void MyMethod(int param1, int param2); // example
char* paramN = MethodGetParamType("MyMethod", 2); // get param2
printf(paramN); // -> "int/integer" (not sure what the actual output would be but you get the idea)

Getting the class from a specific type:

char* Class = ClassFromType("bool"); // get param2
printf(paramN); // -> myClass

 

  • Like 2

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

    • Nickelodeon Card Clash v1.5.0 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Nickelodeon Card Clash By Monumental, LLC
      Bundle ID: io.monumental.cardclash
      iTunes Store Link: https://apps.apple.com/us/app/nickelodeon-card-clash/id6503707285?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems


      Jailbreak required hack(s): [Mod Menu Hack] Nickelodeon Card Clash v1.0.3 +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/
      • 7 replies
    • Nickelodeon Card Clash v1.5.0 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Nickelodeon Card Clash By Monumental, LLC
      Bundle ID: io.monumental.cardclash
      iTunes Store Link: https://apps.apple.com/us/app/nickelodeon-card-clash/id6503707285?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Nickelodeon Card Clash v1.0.3 +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/
      • 23 replies
    • Kitty’s Kitchen Diary v1.0.8 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Kitty’s Kitchen Diary By SuperPlanet corp.
      Bundle ID: com.superplanet.catrecipe
      iTunes Store Link: https://apps.apple.com/us/app/kittys-kitchen-diary/id6496345774?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Head into Settings and toggle the Notifications button.
      - Unlock All -> Head into Settings and toggle the Nightly Notifications button.
      - Freeze Diamonds
      • 4 replies
    • Kitty’s Kitchen Diary v1.0.8 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Kitty’s Kitchen Diary By SuperPlanet corp.
      Bundle ID: com.superplanet.catrecipe
      iTunes Store Link: https://apps.apple.com/us/app/kittys-kitchen-diary/id6496345774?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Head into Settings and toggle the Notifications button.
      - Unlock All -> Head into Settings and toggle the Nightly Notifications button.
      - Freeze Diamonds
      • 8 replies
    • Perfect Kick 2 v2.0.61 [ +4 Cheats ] AI Freeze
      Modded/Hacked App: Perfect Kick 2 By Gamegou Limited
      Bundle ID: com.gamegou.perfectkick2
      iTunes Store Link: https://apps.apple.com/us/app/perfect-kick-2/id1475459866?uo=4
       

      🤩 Hack Features

      - Auto ADS OFF
      - Ball Speed 999x
      - AI Freeze
      - No Wind Effect
      • 0 replies
    • Perfect Kick 2 v2.0.61 [ +4 Jailed ] AI Freeze
      Modded/Hacked App: Perfect Kick 2 By Gamegou Limited
      Bundle ID: com.gamegou.perfectkick2
      iTunes Store Link: https://apps.apple.com/us/app/perfect-kick-2/id1475459866?uo=4


      🤩 Hack Features

      - Auto ADS OFF
      - Ball Speed 999x
      - AI Freeze
      - No Wind Effect
      • 1 reply
    • Nightfall: Kingdom Frontier TD v1.0.350 +8 Jailed Cheats [ Currencies ]
      Modded/Hacked App: Nightfall: Kingdom Frontier TD By Fansipan Limited
      Bundle ID: com.fansipan.nightfall.tower.simulation.strategy.td.game
      iTunes Store Link: https://apps.apple.com/us/app/nightfall-kingdom-frontier-td/id6621272416?uo=4


      Hack Features:
      - God Mode
      - Unlimited In-Game Coins -> Will increase instead of decrease.
      - Unlimited Currencies -> Will increase instead of decrease.
      - No Ads
      - Add 1K Currency -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All Features -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All / Everything ->  Head over to Settings and toggle the Discord button. [ VIP ]
      - Complete Tutorial -> Head over to Settings and toggle the Discord button. [ VIP ]


      Jailbreak required hack(s): [Mod Menu Hack] Nightfall: Kingdom Frontier TD v1.0.41 +8 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/
      • 79 replies
    • Nightfall: Kingdom Frontier TD v1.0.350 +8 Cheats [ Currencies ]
      Modded/Hacked App: Nightfall: Kingdom Frontier TD By Fansipan Limited
      Bundle ID: com.fansipan.nightfall.tower.simulation.strategy.td.game
      iTunes Store Link: https://apps.apple.com/us/app/nightfall-kingdom-frontier-td/id6621272416?uo=4


      Hack Features:
      - God Mode
      - Unlimited In-Game Coins -> Will increase instead of decrease.
      - Unlimited Currencies -> Will increase instead of decrease.
      - No Ads
      - Add 1K Currency -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All Features -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All / Everything ->  Head over to Settings and toggle the Discord button. [ VIP ]
      - Complete Tutorial -> Head over to Settings and toggle the Discord button. [ VIP ]


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Nightfall: Kingdom Frontier TD v1.0.41 +8 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/
      • 94 replies
    • Longleaf Valley v1.32.22 +1++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Longleaf Valley: Merge & Match By TreesPlease Games Ltd
      Bundle ID: com.treespleasegames.merge1
      iTunes Store Link: https://apps.apple.com/us/app/longleaf-valley-merge-match/id1573565989?uo=4


      Hack Features:
      - Unlimited Currencies -> Spend some.


      Jailbreak required hack(s): [Mod Menu Hack] Longleaf Valley: Merge & Plant ( All Versions ) +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/
      • 32 replies
    • Longleaf Valley v1.32.22 +1++ Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Longleaf Valley: Merge & Match By TreesPlease Games Ltd
      Bundle ID: com.treespleasegames.merge1
      iTunes Store Link: https://apps.apple.com/us/app/longleaf-valley-merge-match/id1573565989?uo=4


      Hack Features:
      - Unlimited Currencies -> Spend some.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Longleaf Valley: Merge & Plant v1.10.48 +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/
      • 15 replies
    • Dinosaur Universe v39.0.0 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Dinosaur Universe By Supercent Inc.
      Bundle ID: io.supercent.ageofdinosaurs
      iTunes Store Link: https://apps.apple.com/us/app/dinosaur-universe/id6448496802?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies
      - Damage Multiplier
      - God Mode
      - Free In-App Purchases
      • 0 replies
    • Dinosaur Universe v39.0.0 +4 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Dinosaur Universe By Supercent Inc.
      Bundle ID: io.supercent.ageofdinosaurs
      iTunes Store Link: https://apps.apple.com/us/app/dinosaur-universe/id6448496802?uo=4

       
       

      🤩 Hack Features

      - Unlimited Currencies
      - Damage Multiplier
      - God Mode
      - Free In-App Purchases
      • 3 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