Jump to content

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


669 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

    • Zombie Blast - Link Match v3.4.16 [ +3 Cheats ] Auto Win
      Modded/Hacked App: Zombie Blast - Link Match By SNG Bilisim Yazilim Danismanlik ve Pazarlama Dis Ticaret Ltd. Sti.
      Bundle ID: com.sngict.zblast
      App Store Link: https://apps.apple.com/us/app/zombie-blast-link-match/id1549172917?uo=4

      🤩 Hack Features

      - Auto Win
      - Hero HP Max
      - Hero ATK Max
        • Like
      • 2 replies
    • Zombie Blast - Link Match v3.4.16 [ +3 Jailed ] Auto Win
      Modded/Hacked App: Zombie Blast - Link Match By SNG Bilisim Yazilim Danismanlik ve Pazarlama Dis Ticaret Ltd. Sti.
      Bundle ID: com.sngict.zblast
      App Store Link: https://apps.apple.com/us/app/zombie-blast-link-match/id1549172917?uo=4

      🤩 Hack Features

      - Auto Win
      - Hero HP Max
      - Hero ATK Max
        • Agree
      • 1 reply
    • Star Rising: Basketball v1.5.8 [ +2 APK MOD ] Unlimited Gems
      Mod APK Game Name: Star Rising: Basketball
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.basketball.nba.star.sport&hl=en

      🤩 Hack Features

      - ADS NO
      - Unlimited Gems 
      • 0 replies
    • Saddlebag Survival v1.6.0 [ +5 APK MOD ] Battle Coin
      Mod APK Game Name: Saddlebag Survival
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.gameloops.saddlebagsurvival&hl=en

      🤩 Hack Features

      - Currency / No Need
      - Resources / No Need
      - Unlimited Battle Coins / Use To Get
      - DMG 1
      - DMG 2
      • 0 replies
    • Almost a Hero — Idle RPG V5.8.7 [ +13 APK MOD ] Auto Win
      Mod APK Game Name: Almost a Hero — Idle RPG
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.beesquare.almostahero&hl=en

      🤩 Hack Features

      - ALL Currency Unlimited / Disable After Hack
      - All Resources Unlimited / Disable After Hack
      - Unlimited Merchant Items / Gold - Auto Tap etc.
      - Auto Win 
      - Stage Skipper 
      - Wave Skipper 
      - Enemy Skipper 
      Hero Status
      - ATK MAX
      - HP MAX
      - ATK SPEED
      - LvL UP DMG HP Faster Increase 
      Enemy Status
      - ATK 0
      - HP 0
      • 0 replies
    • iSurvivor: Epic Shoot ‘Em Up v1.1.1 [ +15 APK MOD ] Currency Max
      Mod APK Game Name: iSurvivor: Epic Shoot ‘Em Up
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.Gcenter.i.Survivor.Epic.SHMUP&hl=en

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Gold
      - Unlimited Ancient Coin
      - Unlimited Stars
      - Unlimited Booster HP
      - Unlimited Booster EXP
      - Unlimited Booster DMG
      - Unlimited Gold Loot
      - Zone Unlock Cost 0
      - Zone Rewards / Claim Unlimited
      - Hero Unlocked
      - Pet Unlocked
      - Base DMG
      - Spirit DMG / Just Check Status
      - Hero Status / HP DMG - Just Change
      • 0 replies
    • ZombTube Last Hero Zombie War v0.1.450 [ +10 APK MOD ] Currency Max
      Mod APK Game Name: ZombTube: Last Hero Zombie War
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.booblyc.zombtube&hl=en
      🤩 Hack Features

      - No ADS
      - Unlimited Red coins
      - Unlimited Gold
      - Parts / Upgrade Free Guns-Items
      - Damage
      - Bullet Range
      - Gun Range
      - Unlimited Ammo
      - No Reload
      - Accuracy
      • 0 replies
    • Tower And Swords v2.308 [ +5 APK MOD ] Currency Max
      Mod APK Game Name: Tower And Swords
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.Jaems.ProjectCreationRPG&hl=en

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Never Die
      - DMG
      - Crit Hit
      • 0 replies
    • Vinland Tales・ Viking Survival v1.11.12 +2 Cheats
      Mod APK Game Name: Vinland Tales: Viking Survival By Colossi Games Ltd
      Rooted Device: Not Required.
      Google Play Store Link: 

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download Modded APK







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Like
      • 3 replies
    • Age of Magic: Turn Based RPG v3.1.0 +2 Cheats
      Mod APK Game Name: Age of Magic: Turn Based RPG By Playkot Ltd
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.playkot.ageofmagic&ref=apkcombo.com

       

      🤩 Hack Features

      - Damage Multiplier
      - Never Die

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download Modded APK







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Agree
        • Winner
        • Like
      • 15 replies
    • Elemental World: Adventure v4.1.0 +3 Cheats
      Mod APK Game Name: Elemental World: Adventure By 春阳 曹
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=julyhot.elementalworld

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Unlimited MP

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download Modded APK







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 1 reply
    • Shooter.io: War Survivor v1.119 [ +16 APK MOD ] Currency Max
      Mod APK Game Name: Shooter.io: War Survivor
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.iris.hunter.adventure&hl=en

      🤩 Hack Features

      - ADS Card Active / Rewards Free
      - Premium Card Active
      - Super Card Active
      - Claim Unlimited / Premium Card
      - Claim Unlimited / Super Card
      - Unlimited Cash
      - Unlimited Gold
      - Unlimited Energy
      - Grown Pack Active +3
      - Unlock All Rewards / Grown Pack
      - Claim Unlimited / Grown Pack
      Equip Stats
      - ATK MAX
      - HP MAX
      Hero Stats
      - HP MAX
      - ATK MAX
      - Shield MAX
        • Like
      • 0 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