Skip to content
0x01code edited this page Sep 1, 2024 · 3 revisions

Welcome to the MemKit wiki!

Get Started

from memkit import memory

mem = memory('ac_client.exe')

Get Module

module = mem.get_module('ac_client.exe')

Find Chain

address = mem.find_chain(address, [0xEC])

Read memory

types: i8, u8, i16, u16, f32, i32, u32, f64, i64, u64, str

read integer 4 bytes

data = mem.read(address, 'i32')

read string

data = mem.read(address, 'str')

Write memory

mem.write(address, 1337)

Patch binary

mem.patch(address, b'\xFF\x08')

Nop binary

mem.nop(address, 2)

Pattern scan

address = mem.pattern_scan(module, 'FF 08 8D 44 ?? 1C 50')
mem.patch(address, b'\xFF\x00')