Try this gg.getRangesList('libil2cpp.so')[2]. In --[[ Game Guardian Lua Script…
- User
Try this gg.getRangesList('libil2cpp.so')[2]. In --[[ Game Guardian Lua Script Description: Hook and call methods at offsets 0x13E9AD4 and 0x13E9AF0 relative to the base address of libil2cpp.so --]]
gg.setVisible(false) gg.alert("GG Script: Hooking Methods")
-- Function to retrieve the base address of libil2cpp.so local function getLibIl2cppBase() local ranges = gg.getRangesList("libil2cpp.so") if #ranges == 0 then gg.alert("libil2cpp.so not found!") os.exit() end return ranges[1].start end
-- Retrieve the base address local libBase = getLibIl2cppBase() gg.alert(string.format("libil2cpp.so Base Address: 0x%X", libBase))
-- Define the offsets local offset1 = 0x13E9AD4 local offset2 = 0x13E9AF0
-- Calculate the absolute addresses local address1 = libBase + offset1 local address2 = libBase + offset2
gg.alert(string.format("Method1 Address: 0x%X\nMethod2 Address: 0x%X", address1, address2))
-- Define your custom function addresses -- Replace these with the actual addresses of your custom functions local customFunction1 = 0xDEADBEEF -- Example Address: Replace with your custom function address local customFunction2 = 0xFEEDC0DE -- Example Address: Replace with your custom function address
-- Overwrite the function pointers at the specified addresses gg.setValues({ { address = address1, flags = gg.TYPE_POINTER, value = customFunction1 }, { address = address2, flags = gg.TYPE_POINTER, value = customFunction2 } })
gg.alert("Function pointers overwritten successfully!")
-- Optionally, you can call the methods if you have a way to execute them. -- Note: Game Guardian cannot directly execute code. To call methods, additional hooking techniques are required. -- This script only overwrites the function pointers.
gg.processResume()
- Assistant