KittyMemoryEx 1.0.0
Dedicated library for runtime code patching, memory scanning, tracing, injection and some more useful memory utilities. works for both Android and Linux
Loading...
Searching...
No Matches
MemoryPatchMgr Class Reference

The MemoryPatch manager class. More...

#include <MemoryPatch.hpp>

Public Member Functions

 MemoryPatchMgr (IKittyMemOp *pMem)
 Constructor for MemoryPatchMgr.
MemoryPatch createWithBytes (uintptr_t absolute_address, const void *patch_code, size_t patch_size)
 Creates a memory patch with byte data.
MemoryPatch createWithHex (uintptr_t absolute_address, std::string hex)
 Creates a memory patch with hexadecimal string data.
MemoryPatch createWithAsm (uintptr_t absolute_address, MP_ASM_ARCH asm_arch, const std::string &asm_code, uintptr_t asm_address=0)
 Creates a memory patch with assembly code using keystone assembler.

Detailed Description

The MemoryPatch manager class.

Constructor & Destructor Documentation

◆ MemoryPatchMgr()

MemoryPatchMgr::MemoryPatchMgr ( IKittyMemOp * pMem)
inline

Constructor for MemoryPatchMgr.

Parameters
pMemA pointer to the memory operation object.

Member Function Documentation

◆ createWithAsm()

MemoryPatch MemoryPatchMgr::createWithAsm ( uintptr_t absolute_address,
MP_ASM_ARCH asm_arch,
const std::string & asm_code,
uintptr_t asm_address = 0 )

Creates a memory patch with assembly code using keystone assembler.

Parameters
absolute_addressThe absolute address where the patch should be applied.
asm_archThe architecture of the assembly code.
asm_codeThe assembly code to patch with.
asm_addressThe address of the assembly code (optional).
Returns
A MemoryPatch object representing the created patch.

◆ createWithBytes()

MemoryPatch MemoryPatchMgr::createWithBytes ( uintptr_t absolute_address,
const void * patch_code,
size_t patch_size )

Creates a memory patch with byte data.

Parameters
absolute_addressThe absolute address in memory where the patch will be applied.
patch_codeA pointer to the patch code to be applied.
patch_sizeThe size of the patch code in bytes.

◆ createWithHex()

MemoryPatch MemoryPatchMgr::createWithHex ( uintptr_t absolute_address,
std::string hex )

Creates a memory patch with hexadecimal string data.

Parameters
absolute_addressThe absolute address in memory where the patch will be applied.
hexA hexadecimal string representing the patch code.

The documentation for this class was generated from the following file:
  • /home/runner/work/KittyMemoryEx/KittyMemoryEx/KittyMemoryEx/MemoryPatch.hpp