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

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

    • Alien Survivor: Survival Arena v1.38.1 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4
       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 15 replies
    • Alien Survivor: Survival Arena v1.38.1 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 26 replies
    • Legend of Survivors V1.2.8 [ +17 Jailed ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 48 replies
    • Legend of Survivors V1.2.8 [ +17 Cheats ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:
      - IAP Free [ Buy Anything - Gems Gold Ads Premium Packs ]

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]
      • 132 replies
    • Kitchen Masters v15.0.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Kitchen Masters By Bigger Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.bigger.kitchenmasters
      iTunes Store Link: https://apps.apple.com/ph/app/kitchen-masters/id6474870266?uo=4


      🤩 Hack Features

      - Coins

      - Cash

      - Lives

      - Tile Cost 0
      • 6 replies
    • Kitchen Masters v15.0.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Kitchen Masters By Bigger Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.bigger.kitchenmasters
      iTunes Store Link: https://apps.apple.com/ph/app/kitchen-masters/id6474870266?uo=4
       

      🤩 Hack Features

      - Coins

      - Cash

      - Lives

      - Tile Cost 0
      • 10 replies
    • Score Masters v2.2 [ +7 Jailed ] Always Win
      Modded/Hacked App: Score Masters By SKYLOFT YAZILIM BILISIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.bh.hypergoal
      iTunes Store Link: https://apps.apple.com/us/app/score-masters/id6473402760?uo=4


      🚀 Hack Features

      - Auto ADS Disable

      - Gems [ Mission Rewards ]

      - Coins [ Mission Rewards ]

      - Player Score 20 Max

      - Always Win Player

      - AI Score 0

      - AI Miss
      • 5 replies
    • Score Masters v2.2 [ +7 Cheats ] Always Win
      Modded/Hacked App: Score Masters By SKYLOFT YAZILIM BILISIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.bh.hypergoal
      iTunes Store Link: https://apps.apple.com/us/app/score-masters/id6473402760?uo=4


      🚀 Hack Features

      - Auto ADS Disable

      - Gems [ Mission Rewards ]

      - Coins [ Mission Rewards ]

      - Player Score 20 Max

      - Always Win Player

      - AI Score 0

      - AI Miss
      • 8 replies
    • Adventure Bay - Farm Games v1.42.14 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4
       

      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
      • 19 replies
    • Adventure Bay - Farm Games v1.42.14 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4


      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
      • 25 replies
    • Disney Solitaire v1.3.0 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4
       

      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
      • 15 replies
    • Disney Solitaire v1.3.0 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4


      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
      • 21 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