Requires the
memory permission in your
manifest:Memory module gives scripts access to the process address space.
Use it to find a module’s base address, scan for signatures, and create
Pointer values to navigate from there.
ptr(addr) is also available as a global shorthand - you don’t need
to write Memory.ptr(addr) everywhere.Overview
ptr()
Wrap any address in a Pointer.
Memory.module()
Resolve a loaded module to its base address and size.
Memory.scan()
Find the first occurrence of a byte pattern in a module.
Memory.scanAll()
Collect every occurrence of a pattern across a module.
ptr
ptr() is the global shorthand.
Memory.module
Memory.scan
pattern and returns
a Pointer to it. Returns null if not found.
Memory.scanAll
pattern in the module. Returns an empty array if none found.
Pattern syntax
Patterns are space-separated hex bytes. Use? or ?? as wildcards to
match any byte at that position.
Recipes
Signature scan + relative offset resolution
A common pattern: scan for alea/mov instruction, read the embedded
relative offset, and resolve the final address.