-
Notifications
You must be signed in to change notification settings - Fork 6
Memory
ζeh Matt edited this page Mar 9, 2019
·
2 revisions
Will attempt read memory from the debuggers child process.
-- @param address to read the memory from as integer.
-- @param length the amount of bytes to read as integer.
-- @return string filled with raw bytes, nil on failure.
-- @return length of data read
memory.read(address, length)
Will attempt write memory to the debuggers child process.
-- @param address to read the memory from as integer.
-- @param data to be written as string
-- @return length of data written, 0 on failure.
memory.write(address, data)
Those objects can be used to reference memory via the [] operator. You can write or read directly via those.
-- @param address to reference the memory from as integer.
-- @return reference
byte_ptr[address], word_ptr[address], dword_ptr[address], qword_ptr[address]
-- @example
byte_ptr[eip] = byte_ptr[eax] -- Reads memory at value of eax and writes it to value of eip.