Skip to content
ζeh Matt edited this page Mar 9, 2019 · 2 revisions

Functions

read

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)

write

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)

Wrappers

byte_ptr, word_ptr, dword_ptr, qword_ptr

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.
Clone this wiki locally