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
KittyScannerMgr Class Reference

Manager class for pattern scanning operations. More...

#include <KittyScanner.hpp>

Public Member Functions

 KittyScannerMgr (IKittyMemOp *pMem)
 Constructor for KittyScannerMgr.
std::vector< uintptr_t > findBytesAll (uintptr_t start, uintptr_t end, const char *bytes, const std::string &mask) const
 Searches for bytes within a remote memory range and returns all results.
uintptr_t findBytesFirst (uintptr_t start, uintptr_t end, const char *bytes, const std::string &mask) const
 Searches for bytes within a remote memory range and returns the first result.
std::vector< uintptr_t > findHexAll (uintptr_t start, uintptr_t end, std::string hex, const std::string &mask) const
 Searches for hex within a remote memory range and returns all results.
uintptr_t findHexFirst (uintptr_t start, uintptr_t end, std::string hex, const std::string &mask) const
 Searches for hex within a remote memory range and returns the first result.
std::vector< uintptr_t > findIdaPatternAll (uintptr_t start, uintptr_t end, const std::string &pattern) const
 Searches for a pattern within a remote memory range using the IDA pattern syntax and returns all results.
uintptr_t findIdaPatternFirst (uintptr_t start, uintptr_t end, const std::string &pattern) const
 Searches for a pattern within a remote memory range using the IDA pattern syntax and returns the first result.
std::vector< uintptr_t > findDataAll (uintptr_t start, uintptr_t end, const void *data, size_t size) const
 Searches for data within a remote memory range and returns all results.
uintptr_t findDataFirst (uintptr_t start, uintptr_t end, const void *data, size_t size) const
 Searches for data within a remote memory range and returns the first result.

Detailed Description

Manager class for pattern scanning operations.

Constructor & Destructor Documentation

◆ KittyScannerMgr()

KittyScannerMgr::KittyScannerMgr ( IKittyMemOp * pMem)
inline

Constructor for KittyScannerMgr.

Parameters
pMemPointer to the memory operation interface.

Member Function Documentation

◆ findBytesAll()

std::vector< uintptr_t > KittyScannerMgr::findBytesAll ( uintptr_t start,
uintptr_t end,
const char * bytes,
const std::string & mask ) const

Searches for bytes within a remote memory range and returns all results.

Parameters
startThe starting address to search.
endThe ending address to search.
bytesThe bytes to search for.
maskThe bytes mask using 'x' and '?' wildcards.
Returns
A vector containing all addresses where the bytes were found.

◆ findBytesFirst()

uintptr_t KittyScannerMgr::findBytesFirst ( uintptr_t start,
uintptr_t end,
const char * bytes,
const std::string & mask ) const

Searches for bytes within a remote memory range and returns the first result.

Parameters
startThe starting address to search.
endThe ending address to search.
bytesThe bytes to search for.
maskThe bytes mask using 'x' and '?' wildcards.
Returns
The first address where the bytes were found, or 0 if not found.

◆ findDataAll()

std::vector< uintptr_t > KittyScannerMgr::findDataAll ( uintptr_t start,
uintptr_t end,
const void * data,
size_t size ) const

Searches for data within a remote memory range and returns all results.

Parameters
startThe starting address to search.
endThe ending address to search.
dataA pointer to the data to search for.
sizeThe size of the data to search for.
Returns
A vector containing all addresses where the data was found.

◆ findDataFirst()

uintptr_t KittyScannerMgr::findDataFirst ( uintptr_t start,
uintptr_t end,
const void * data,
size_t size ) const

Searches for data within a remote memory range and returns the first result.

Parameters
startThe starting address to search.
endThe ending address to search.
dataA pointer to the data to search for.
sizeThe size of the data to search for.
Returns
The first address where the data was found, or 0 if not found.

◆ findHexAll()

std::vector< uintptr_t > KittyScannerMgr::findHexAll ( uintptr_t start,
uintptr_t end,
std::string hex,
const std::string & mask ) const

Searches for hex within a remote memory range and returns all results.

Parameters
startThe starting address to search.
endThe ending address to search.
hexThe hex bytes to search for.
maskThe hex mask using 'x' and '?' wildcards.
Returns
A vector containing all addresses where the hex was found.

◆ findHexFirst()

uintptr_t KittyScannerMgr::findHexFirst ( uintptr_t start,
uintptr_t end,
std::string hex,
const std::string & mask ) const

Searches for hex within a remote memory range and returns the first result.

Parameters
startThe starting address to search.
endThe ending address to search.
hexThe hex bytes to search for.
maskThe hex mask using 'x' and '?' wildcards.
Returns
The first address where the hex was found, or 0 if not found.

◆ findIdaPatternAll()

std::vector< uintptr_t > KittyScannerMgr::findIdaPatternAll ( uintptr_t start,
uintptr_t end,
const std::string & pattern ) const

Searches for a pattern within a remote memory range using the IDA pattern syntax and returns all results.

Parameters
startThe starting address to search.
endThe ending address to search.
patternThe IDA pattern string (e.g., "FF DD ? 99 CC ? 00").
Returns
A vector containing all addresses where the pattern was found.

◆ findIdaPatternFirst()

uintptr_t KittyScannerMgr::findIdaPatternFirst ( uintptr_t start,
uintptr_t end,
const std::string & pattern ) const

Searches for a pattern within a remote memory range using the IDA pattern syntax and returns the first result.

Parameters
startThe starting address to search.
endThe ending address to search.
patternThe IDA pattern string (e.g., "FF DD ? 99 CC ? 00").
Returns
The first address where the pattern was found, or 0 if not found.

The documentation for this class was generated from the following file: