Patch
Write raw hex bytes. Automatically handles page protection.
Syntax
Susano.Memory.Patch(address, hexString) -> boolean
Parameters
address (integer): Target address.
hexString (string): Hex byte string, e.g. "E9 00 00 00 00". Spaces are optional. Maximum 512 bytes.
Return(s)
boolean: true on success, false on failure.
Example(s)
-- Replace 5 bytes at addr with NOPs
Susano.Memory.Patch(addr, "90 90 90 90 90")
-- Same, spaces optional
Susano.Memory.Patch(addr, "9090909090")