Your First Program
libmem provides powerful memory manipulation capabilities for both internal (same process) and external (different process) operations. Let’s start with a simple example.- Modern C++
- C
- Rust
- Python
This example disassembles the Compile and link:
main function until a ret instruction is found.Common Operations
Here are some common operations you’ll perform with libmem:Finding Processes and Modules
- C++
- C
- Rust
- Python
Reading and Writing Memory
- C++
- C
- Rust
- Python
Scanning for Patterns
- C++
- C
- Rust
- Python
Usage Guidelines
C/C++ Projects
Include the appropriate header:- GCC-like compilers: Add
-llibmemto your compiler flags - Windows: Link
libmem.lib(static) orlibmem.dll(dynamic) - Unix-like: Link
liblibmem.so(shared) orliblibmem.a(static)
Python Projects
Simply import libmem:Rust Projects
Add toCargo.toml and import:
What’s Next?
Now that you have libmem set up and running, explore the full capabilities:- Process & Thread APIs - Enumerate and manage processes and threads
- Module APIs - Load, unload, and enumerate modules
- Memory APIs - Read, write, allocate, and protect memory
- Scanning APIs - Pattern scanning and signature matching
- Hooking APIs - Function hooking and VMT hooking
- Assembly APIs - Assemble and disassemble code on-the-fly