Skip to content

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

uint find_pattern(<string> module_name, <string> pattern)
Fields Description
module_name
string
module name
pattern
string
IDA-style pattern

Example

local pattern_result = memory.find_pattern("client.dll","55 15 ?? ?? ?? ??")

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

int memory.create_interface(<string> module_name, <string> interface_name)
Fields Description
module_name
string
module name
interface_name
string
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

uint get_vfunc(<uint> instance, <int> index)
Fields Description
instance
uint
index
int

Example

local vfunc7 = memory.get_vfunc(instance, 7)