memory#
Warning
All functions in this table are unsafe and should only be used by people who know what they're doing
find_pattern#
Returns the address of the specified pattern
Note: Patterns are represented in an "IDA-Style" format
| Fields | Description |
|---|---|
module_namestring |
module name |
patternstring |
IDA-style pattern |
Example
find_text#
Returns the address(es) of where the specified read-only text is referenced
uint find_text(<string> module_name, <string> text)
uint[] find_text(<string> module_name, <string> text, <bool> find_all = true)
Example
local head0_reference = memory.find_text("client.dll", "head_0")
-- when passing find_all=true it will instead give you an indexed table with all references rather than just the first one
local all_head0_references = memory.find_text("client.dll", "head_0", true)
create_interface#
Returns the address of the interface provided
| Fields | Description |
|---|---|
module_namestring |
module name |
interface_namestring |
interface name |
Example
local interface = memory.create_interface("client.dll","VClientEntityList003")
local interface_vft = ffi.cast("void***",interface)[0]
get_vfunc#
Returns the n-th virtual function of the objects vtable
| Fields | Description |
|---|---|
instanceuint |
|
indexint |