Jump to content

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


𓄼 . f v c k . 𓄹

522 posts in this topic

Recommended Posts

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
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

    • Travel Town - Merge Adventure v2.12.632 Jailed Cheats +1
      Modded/Hacked App: Travel Town - Merge Adventure By Magmatic Games Ltd
      Bundle ID: io.randomco.travel
      iTunes Store Link: https://apps.apple.com/us/app/travel-town-merge-adventure/id1521236603?uo=4


      Hack Features:
      - Infinite Currencies


      iOS Hack Download Link: https://iosgods.com/topic/148953-travel-town-merge-adventure-v212287-jailed-cheats-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 351 replies
    • Township: Farm & City Building v20.0.0 Jailed Cheats +2
      Modded/Hacked App: Township by PLR Worldwide Sales Limited
      Bundle ID: com.playrix.township-ios
      iTunes Store Link: https://apps.apple.com/us/app/township/id638689075?uo=4&at=1010lce4


      Hack Features:
      - Freeze Currencies

      EDIT: Please be aware that this maybe cause your account banned, please use with caution and don’t abuse


      iOS Hack Download Link: https://iosgods.com/topic/116584-arm64-township-farm-city-building-v852-jailed-cheats-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,511 replies
    • Bullet Force [ Auto updating il2cpp Showoff ] [ +2 Cheat ]
      Modded/Hacked App: Bullet Force By Blayze Games, L.L.C.
      Bundle ID: com.blayzegames.iosfps
      iTunes Store Link: https://apps.apple.com/us/app/bullet-force/id1009134067?uo=4

      What's this?: 
      This is a showoff of my il2cpp auto updater, no matter if the offset changes, it will continue to update itself without any maintenance by me. Only if the location of the method is changed (that happens rarely) it will need a maintenance. This is a really powerfull tool, for now it's only a beta version, when i finish it with all other features i'll release for the public. 


      Hack Features: 
      - Rapid Fire + Unlimited Ammo [ All features already activated]
        • Agree
        • Winner
        • Like
      • 15 replies
    • Modern Community v1.5004.114281 +1++ Jailed Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Jailbreak required hack(s): [Mod Menu Hack] Modern Community v1.1008.81088 +1++ Cheat [ Unlimited Everything ] - ViP 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/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 40 replies
    • Modern Community v1.5004.114281 +1++ Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Non-Jailbroken & No Jailbreak required hack(s): [No Jailbreak Required] Modern Community v1.1008.81088 +1++ Jailed Cheat [ Unlimited Everything ] - ViP Non-Jailbroken Hacks & 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/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 44 replies
    • Survival Raiders v1.0.4 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Survival Raiders By Super Flex Incorporated
      Bundle ID: com.neowiz.game.psr
      iTunes Store Link: https://apps.apple.com/us/app/survival-raiders/id6502325512?uo=4


      Hack Features:
      - God Mode
      - Unlimited Currencies -> Will increase instead of decrease.
      - Premium Pass Purchased


      Jailbreak required hack(s): [Mod Menu Hack] Survival Raiders v1.0.3 +4 Cheats [ Damage & Defence ] - 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/
        • Thanks
        • Winner
        • Like
      • 10 replies
    • Survival Raiders v1.0.4 +4 Cheats [ Damage & Defence ]
      Modded/Hacked App: Survival Raiders By Super Flex Incorporated
      Bundle ID: com.neowiz.game.psr
      iTunes Store Link: https://apps.apple.com/us/app/survival-raiders/id6502325512?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
      - Unlimited Currencies -> Will increase instead of decrease.
      - Premium Pass Purchased


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Survival Raiders v1.0.3 +3 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/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 10 replies
    • Little Piggy Defense v1.05.73 +1 Jailed Cheat [ God Mode ]
      Modded/Hacked App: Little Piggy Defense By Game Duo Co.,Ltd.
      Bundle ID: net.gameduo.tbd
      iTunes Store Link: https://apps.apple.com/us/app/little-piggy-defense/id6467606457?uo=4


      Hack Features:
      - God Mode


      Jailbreak required hack(s): [Mod Menu Hack] Little Piggy Defense v1.00.11 +3 Cheats [ Damage & Defence ] - 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 49 replies
    • Little Piggy Defense v1.05.73 +3 Cheats [ Damage & Defence ]
      Modded/Hacked App: Little Piggy Defense By Game Duo Co.,Ltd.
      Bundle ID: net.gameduo.tbd
      iTunes Store Link: https://apps.apple.com/us/app/little-piggy-defense/id6467606457?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
      - Tower Defence Multiplier


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Little Piggy Defense v1.00.11 +1 Jailed Cheat [ God Mode ] - 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/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 79 replies
    • Royal Kingdom v9152 +4 Jailed Cheats [ Unlimited Coins ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Unlimited Coins -> Will not decrease.
      - Unlimited Lives -> Will not decrease.
      - Unlimited Boosters -> Will not decrease.
      - Unlimited Moves -> Will not decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Royal Kingdom v3987 +4 Cheats [ Unlimited Coins ] - 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 41 replies
    • Royal Kingdom v9152 +4 Cheats [ Unlimited Coins ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Unlimited Coins -> Will not decrease.
      - Unlimited Lives -> Will not decrease.
      - Unlimited Boosters -> Will not decrease.
      - Unlimited Moves -> Will not decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Royal Kingdom v3987 +4 Jailed Cheats [ Unlimited Coins ] - 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/
        • Informative
        • Winner
        • Like
      • 21 replies
    • Slime Legion v2.3.1 +2 Jailed Cheats [ God Mode ]
      Modded/Hacked App: Slime Legion By Perfeggs
      Bundle ID: com.hero.may.cry.adventure.game
      iTunes Store Link: https://apps.apple.com/us/app/slime-legion/id1664686966
       

      Hack Features:
      - God Mode
      - Unlimited Moves


      Jailbreak required hack(s): https://iosgods.com/topic/173174-slime-legion-v162-3-cheats-damage-defence/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 121 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