Jump to content

how to hook void offsets? gg script full tutorial


Rxhacker
 Share

Recommended Posts

  

For hooking void you need to call the void method by modifying another method to call it. This might be confusing for new gg users so i created an script template which allows you to hook void in gg with parameters (basic data types). With inbuild switch off code and ability to choose how many times you want to call the void method. These are the steps to use the template : 
1. Download this code which i like to call method patching library , then paste it at the very top of your script

2. Now copy code for voidHook and then paste this anywhere, you can paste this in your script menu or how you would like to make your cheat active

3. Find the offset from dump.cs file or anywhere, and use those offsets to apply patches

 

Below you can see an example of usage of this code : 

    -- RVA: 0x1000 Offset: 0x1000
    -- public static void Update() { }

    -- RVA: 0x2000 Offset: 0x2000
    -- public void AddHealth(float health) { }

    HackersHouse.voidHook({
        { ['libName'] = "libil2cpp",
          ['targetOffset'] = 0x1000,
          ['destinationOffset'] = 0x2000,
          ['parameters'] ={ { "float", 999999} }, 
          ['repeat'] = 1,
          ['libIndex'] = 'auto'
        }
    })

    HackersHouse.voidHookOff({
        { ['libName'] = "libil2cpp",
          ['targetOffset'] = 0x1000,
          ['destinationOffset'] = 0x2000,
        }
    })

This probably has some bugs you can either report in the comments or you can come to telegram.
 


 

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.