Jump to content

Universal ESP hack for all FPS Games (Unity3D) - H5GG - [No JB]


667 posts in this topic

Recommended Posts

Posted
On 3/3/2023 at 9:33 PM, 𓄼 . f v c k . 𓄹 said:

Oh okay, yeah afaik Unity5D do not have such features.

Tho if you could manage to do something like this, it would be insane PepeStop

I am getting good progress on it but got stuck on Javascript cannot pass primitive type as reference .

In cpp, we can do following

      void* fieldValue;

      IL2CPP_.il2cpp_field_get_value(objectIL_, fieldInfo, &fieldValue);

while, fieldValue will store the result.

But in Javascript, I can’t do primitive type passing by reference. fieldValue suppose will store an Integer. 
but in JavaScript, I will always get 0.

Is it possible to write a wrapper function in cpp and package as Dylib for H5GG to use?

What I need is a simple function that wrap the IL2CPP_.il2cpp_field_get_value and return fieldValue as usual.

I actually found something similar online.

Spoiler
#include <exception>
#include "GameObject.h"
 
/******************** External API ********************/
 
/******************** Module Typedefs ********************/
 
/******************** Module Constants ********************/
 
/******************** Module Variables ********************/
 
/* Declare the static reference to the IL2CPP object. */
IL2CPP GameObject::IL2CPP_ = IL2CPP();
 
/******************** Module Prototypes ********************/
 
/******************** Public Code ********************/
 
GameObject::GameObject(Il2CppObject* objectIL)
	:	objectIL_(objectIL), className_(getIL2CPPClassName(objectIL))
{
	/* Constructor that sets the objects base address. */
}
 
std::unique_ptr<GameObject> GameObject::getStaticGameObjectFromClass(const char* nameSpace, const char* className, const char* fieldName)
{
	std::unique_ptr<GameObject> result = nullptr;
 
	/* Get the IL2CPP object. */
	auto ilObject = (Il2CppObject*)getIL2CPPStaticFieldFromClass(nameSpace, className, fieldName);
	if (NULL != ilObject)
	{
		result = std::make_unique<GameObject>(ilObject);
	}
 
	return result;
}
 
void* GameObject::getStaticValueFromClass(const char* nameSpace, const char* className, const char* fieldName)
{
	return getIL2CPPStaticFieldFromClass(nameSpace, className, fieldName);
}
 
std::unique_ptr<GameObject> GameObject::getGameObjectFromField(const char* fieldName)
{
	std::unique_ptr<GameObject> result = nullptr;
 
	auto ilObject = (Il2CppObject*)getIL2CPPFieldFromObject(fieldName);
	if (NULL != ilObject)
	{
		result = std::make_unique<GameObject>(ilObject);
	}
 
	return result;
}
 
void* GameObject::getValueFromField(const char* fieldName)
{
	return getIL2CPPFieldFromObject(fieldName);
}
 
/******************** Private Code ********************/
 
std::string GameObject::getIL2CPPClassName(Il2CppObject* objectIL)
{
	TypeInfo* typeInfo = IL2CPP_.il2cpp_object_get_class(objectIL);
	if (NULL == typeInfo)
	{
		throw std::exception("Unable to get TypeInfo of object.");
	}
 
	return std::string(typeInfo->namespaze) + "::" + typeInfo->name;
}
 
void* GameObject::getIL2CPPStaticFieldFromClass(const char* nameSpace, const char* className, const char* fieldName)
{
	void* result = NULL;
 
	/* Attempt to find typeinfo of the class in all of the loaded assemblies. */
	TypeInfo* classTypeInfo = NULL;
 
	Il2CppDomain* domain = IL2CPP_.il2cpp_domain_get();
	if (NULL == domain)
	{
		throw std::exception("Unable to get domain.");
	}
 
	size_t assemblyListLength = 0;
	Il2CppAssembly** assemblyList = IL2CPP_.il2cpp_domain_get_assemblies(domain, &assemblyListLength);
 
	for (size_t i = 0; i < assemblyListLength; i++)
	{
		Il2CppAssembly* assembly = assemblyList[i];
 
		if (NULL != assembly)
		{
			Il2CppImage* image = IL2CPP_.il2pp_assembly_get_image(assembly);
			if (NULL != image)
			{
				classTypeInfo = IL2CPP_.il2cpp_class_from_name(image, nameSpace, className);
 
				if (NULL != classTypeInfo)
				{
					/* Class has been found, break from the loop. */
					break;
				}
			}
		}
	}
 
	/* If we managed to get the type information of the class, continue. */
	if (NULL != classTypeInfo)
	{
		/* Get the field information of the class. */
		FieldInfo* classFieldInfo = IL2CPP_.il2cpp_class_get_field_from_name(classTypeInfo, fieldName);
		if (NULL == classFieldInfo)
		{
			throw std::exception("Unable to get FieldInfo of the requested field.");
		}
 
		/* Retrieve the static value. */
		IL2CPP_.il2cpp_field_static_get_value(classFieldInfo, &result);
	}
	else
	{
		throw std::exception("Unable to get type information of class.");
	}
 
	return result;
}
 
void* GameObject::getIL2CPPFieldFromObject(const char* fieldName)
{
	/* Get the type info of the current object. */
	TypeInfo* thisType = IL2CPP_.il2cpp_object_get_class(objectIL_);
	if (NULL == thisType)
	{
		throw std::exception("Unable to get TypeInfo of current object.");
	}
 
	/* Then get the field info from the type info. */
	FieldInfo* fieldInfo = IL2CPP_.il2cpp_class_get_field_from_name(thisType, fieldName);
	if (NULL != fieldInfo)
	{
		throw std::exception("Unable to get FieldInfo of the requested field.");
	}
 
	/* Then get the value from the object. */
	void* fieldValue;
	IL2CPP_.il2cpp_field_get_value(objectIL_, fieldInfo, &fieldValue);
 
	return fieldValue;
}

 

But I have no idea how to compile it as Dylib that H5GG can consume. Not much experience in cpp

  • 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

    • Iron knight : Nonstop Idle RPG v1.4.0 [+7 Jailed Cheats]
      Modded/Hacked App: Iron knight : Nonstop Idle RPG By SUPERBOX. Inc
      Bundle ID: com.superbox.ios.ironknightmaker
      iTunes Store Link: https://apps.apple.com/us/app/iron-knight-nonstop-idle-rpg/id1587861608?uo=4

       

      🤩 Hack Features

      -  High Damage

      -  Unlimited Diamond

      -  Increased Coin Gain (Don't Abuse)

      -  Increased Exp Gain (Don't Abuse)

      -  Free Weapon Upgrade

      -  Free Necklace Upgrade

      -  Free Accessory Upgrade
      • 11 replies
    • Iron knight : Nonstop Idle RPG v1.4.0 [+7 Cheats]
      Modded/Hacked App: Iron knight : Nonstop Idle RPG By SUPERBOX. Inc
      Bundle ID: com.superbox.ios.ironknightmaker
      iTunes Store Link: https://apps.apple.com/us/app/iron-knight-nonstop-idle-rpg/id1587861608?uo=4

       

      🤩 Hack Features

      -  High Damage

      -  Unlimited Diamond

      -  Increased Coin Gain (Don't Abuse)

      -  Increased Exp Gain (Don't Abuse)

      -  Free Weapon Upgrade

      -  Free Necklace Upgrade

      -  Free Accessory Upgrade
      • 17 replies
    • Modded/Hacked App: Iron knight : Nonstop Idle RPG By SUPERBOX. Inc
      Bundle ID: com.superbox.ios.ironknightmaker
      iTunes Store Link: https://apps.apple.com/us/app/iron-knight-nonstop-idle-rpg/id1587861608?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Cydia, Sileo or Zebra).

       

      🤩 Hack Features

      -  High Damage

      -  Unlimited Diamond

      -  Increased Coin Gain (Don't Abuse)

      -  Increased Exp Gain (Don't Abuse)

      -  Free Weapon Upgrade

      -  Free Necklace Upgrade

      -  Free Accessory Upgrade


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - Cashlaz

       

      📷 Cheat Video/Screenshots

      N/A

       

      🔗 More iOS App Hacks & Android Modded APKs

      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOSGods No Jailbreak Section for a variety of modded games and apps for non-jailbroken iOS devices.

      Need Modded Android APKs too? Head over to the iOSGods Android Section for custom APK mods, cheats, and more.
      • 17 replies
    • Margonem Adventures v2.2.3 [+3 Jailed Cheats]
      Modded/Hacked App: Margonem Adventures By GARMORY sp. z o.o. sp. k.
      Bundle ID: pl.Garmory.MargonemAdventures
      iTunes Store Link: https://apps.apple.com/us/app/margonem-adventures/id6444410609?uo=4

       

      🤩 Hack Features

      - Enemy Can't Move
      - Enemy Can't Attack
      - Unlimited Mana
      • 21 replies
    • Margonem Adventures v2.2.3 [+3 Cheats]
      Modded/Hacked App: Margonem Adventures By GARMORY sp. z o.o. sp. k.
      Bundle ID: pl.Garmory.MargonemAdventures
      iTunes Store Link: https://apps.apple.com/us/app/margonem-adventures/id6444410609?uo=4



      🤩 Hack Features

      - Enemy Can't Move
      - Enemy Can't Attack
      - Unlimited Mana
      • 14 replies
    • Guns Arena: PvP Shooting Games v1.32.47 [+5 Cheats]
      Modded/Hacked App: Guns Arena: PvP Shooting Games By VIVA GAMES S.L.
      Bundle ID: com.vivastudios.gunsatdawn.shooter
      iTunes Store Link: https://apps.apple.com/us/app/guns-arena-pvp-shooting-games/id1613912708?uo=4

       

      🚀 Hack Features

      - [VIP] Enemy Can't Attack

      - [VIP] High Damage / OHK

      - [VIP] Enemy Can't Attack Battle Royale

      - [VIP] Always can Enter Battle Royale (Enable go Royale tab and click get dawn pass)

      - Inf Coins (Can't use on Characters, Weapons and Dawnpass)

      - Inf Gold (Can't use on Characters, Weapons and Dawnpass)


      🍏 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/
      • 53 replies
    • Guns Arena: PvP Shooting Games v1.32.47 [+5 Jailed Cheats]
      Modded/Hacked App: Guns Arena: PvP Shooting Games By VIVA GAMES S.L.
      Bundle ID: com.vivastudios.gunsatdawn.shooter
      iTunes Store Link: https://apps.apple.com/us/app/guns-arena-pvp-shooting-games/id1613912708?uo=4
       

      🚀 Hack Features

      - [VIP] Enemy Can't Attack

      - [VIP] High Damage / OHK

      - [VIP] Enemy Can't Attack Battle Royale

      - [VIP] Always can Enter Battle Royale (Enable go Royale tab and click get dawn pass)

      - Inf Coins (Can't use on Characters, Weapons and Dawnpass)

      - Inf Gold (Can't use on Characters, Weapons and Dawnpass)


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 45 replies
    • Mafia Empire: Crime Tycoon v1.12.2 Cheat Menu [+10 Cheats]
      Modded/Hacked App: Mafia Empire: Crime Tycoon By PINPIN TEAM SARL
      Bundle ID: mafia.empire.tycoon
      App Store Link: https://apps.apple.com/us/app/mafia-empire-crime-tycoon/id6738845139?uo=4



      🤩 Hack Features

      - Cheat Menu (Enable and Cheat Menu Will Appear)
      • 15 replies
    • Mafia Empire: Crime Tycoon v1.12.2 Cheat Menu [+10 Jailed Cheats]
      Modded/Hacked App: Mafia Empire: Crime Tycoon By PINPIN TEAM SARL
      Bundle ID: mafia.empire.tycoon
      App Store Link: https://apps.apple.com/us/app/mafia-empire-crime-tycoon/id6738845139?uo=4



      🤩 Hack Features

      - Cheat Menu (Enable and Cheat Menu Will Appear)
      • 16 replies
    • Knights of Pen and Paper 3 v1.5.11 [+5 Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

      • 6 replies
    • Knights of Pen and Paper 3 v1.5.11 [+5 Jailed Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

      • 10 replies
    • Neon Wings v20.1.51 [+4 Cheats]
      Modded/Hacked App: Neon Wings By Voodoo
      Bundle ID: games.omicron.neonflight
      App Store Link: https://apps.apple.com/us/app/neon-wings/id6741190842?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Currency
      - Always Can Level Modules
      - Free Upgrades (Enable inside upgrade menu) 
      • 15 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