Help! How Hook this void value

Juneitor

Solid & Active Platinian
Someone help me how hook this and make it false
RVA: 0x2297294 Offset: VA:0x2297294 Slot: 5 Public virtual Void set_MaxHealthPoint(BigInteger Value)
 
With frida :


JavaScript:
Interceptor.attach(ptr("0x2297294"), {
    onEnter: function (args) {

        var newValue = ... // ADD THE VALUE HERE

        args[0] = newValue;

        console.log("Nice hook : " + newValue);
    },
    onLeave: function (retval) {
        console.log("Value successfuly modified");
    }
});
 
Back
Top Bottom