Help! How Hook this void value

Juneitor

Approved Modder
Original poster
Approved Modder
Aug 21, 2022
86
1,738
183
29
usa
Someone help me how hook this and make it false
RVA: 0x2297294 Offset: VA:0x2297294 Slot: 5 Public virtual Void set_MaxHealthPoint(BigInteger Value)
 
  • Like
Reactions: nowhere_222

blank667

Platinian
Nov 30, 2023
7
2
3
France
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");
    }
});