Encapsulates the capabilities to manipulate the memory of a
process.
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__init__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|
|
int
|
malloc(self,
dwSize,
lpAddress=0)
Allocates memory into the address space of the process. |
|
|
|
int
|
mprotect(self,
lpAddress,
dwSize,
flNewProtect)
Set memory protection in the address space of the process. |
|
|
|
MEMORY_BASIC_INFORMATION
|
mquery(self,
lpAddress)
Query memory information from the address space of the process. |
|
|
|
bool
|
free(self,
lpAddress,
dwSize=0)
Frees memory from the address space of the process. |
|
|
|
bool
|
is_address_valid(self,
address)
Determines if an address is a valid user mode address. |
|
|
|
bool
|
is_address_free(self,
address)
Determines if an address belongs to a free page. |
|
|
|
bool
|
|
|
bool
|
|
|
bool
|
is_address_readable(self,
address)
Determines if an address belongs to a commited and readable page. |
|
|
|
bool
|
is_address_writeable(self,
address)
Determines if an address belongs to a commited and writeable page. |
|
|
|
bool
|
|
|
bool
|
|
|
list( MEMORY_BASIC_INFORMATION )
|
get_memory_map(self,
minAddr=0,
maxAddr=4294967296)
Produces a memory map to the process address space. |
|
|
|
str
|
read(self,
lpBaseAddress,
nSize)
Reads from the memory of the process. |
|
|
|
int
|
read_uint(self,
lpBaseAddress)
Reads a single uint from the memory of the process. |
|
|
|
int
|
read_char(self,
lpBaseAddress)
Reads a single character to the memory of the process. |
|
|
|
int
|
read_structure(self,
lpBaseAddress,
stype)
Reads a ctypes structure from the memory of the process. |
|
|
|
str
|
peek(self,
lpBaseAddress,
nSize)
Reads the memory of the process. |
|
|
|
int
|
peek_uint(self,
lpBaseAddress)
Reads a single uint from the memory of the process. |
|
|
|
int
|
peek_char(self,
lpBaseAddress)
Reads a single character from the memory of the process. |
|
|
|
str, unicode
|
peek_string(self,
lpBaseAddress,
fUnicode=False,
dwMaxSize=4096)
Tries to read an ASCII or Unicode string from the address space of
the process. |
|
|
|
|
write(self,
lpBaseAddress,
lpBuffer)
Writes to the memory of the process. |
|
|
|
|
write_uint(self,
lpBaseAddress,
unpackedDword)
Writes a single uint to the memory of the process. |
|
|
|
|
write_char(self,
lpBaseAddress,
char)
Writes a single character to the memory of the process. |
|
|
|
int
|
poke(self,
lpBaseAddress,
lpBuffer)
Writes to the memory of the process. |
|
|
|
int
|
poke_uint(self,
lpBaseAddress,
unpackedDword)
Writes a single uint to the memory of the process. |
|
|
|
int
|
poke_char(self,
lpBaseAddress,
char)
Writes a single character to the memory of the process. |
|
|