pub struct ProcessOps<'a> { /* private fields */ }Expand description
process memory operations via kernel driver
Implementations§
Source§impl<'a> ProcessOps<'a>
impl<'a> ProcessOps<'a>
Sourcepub fn read<T: Copy>(&self, address: u64) -> ClientResult<T>
pub fn read<T: Copy>(&self, address: u64) -> ClientResult<T>
read value from process memory
Sourcepub fn read_bytes(&self, address: u64, size: usize) -> ClientResult<Vec<u8>>
pub fn read_bytes(&self, address: u64, size: usize) -> ClientResult<Vec<u8>>
read bytes from process memory
Sourcepub fn write<T: Copy>(&self, address: u64, value: &T) -> ClientResult<()>
pub fn write<T: Copy>(&self, address: u64, value: &T) -> ClientResult<()>
write value to process memory
Sourcepub fn write_bytes(&self, address: u64, data: &[u8]) -> ClientResult<()>
pub fn write_bytes(&self, address: u64, data: &[u8]) -> ClientResult<()>
write bytes to process memory
Sourcepub fn get_module_base(&self, module_name: &str) -> ClientResult<u64>
pub fn get_module_base(&self, module_name: &str) -> ClientResult<u64>
get module base address
Sourcepub fn allocate(&self, size: u64, protection: u32) -> ClientResult<u64>
pub fn allocate(&self, size: u64, protection: u32) -> ClientResult<u64>
allocate virtual memory
Sourcepub fn allocate_at(
&self,
address: u64,
size: u64,
protection: u32,
) -> ClientResult<u64>
pub fn allocate_at( &self, address: u64, size: u64, protection: u32, ) -> ClientResult<u64>
allocate memory at preferred address
Sourcepub fn free(&self, address: u64) -> ClientResult<()>
pub fn free(&self, address: u64) -> ClientResult<()>
free allocated memory
Sourcepub fn protect(
&self,
address: u64,
size: u64,
protection: u32,
) -> ClientResult<u32>
pub fn protect( &self, address: u64, size: u64, protection: u32, ) -> ClientResult<u32>
change memory protection
Sourcepub fn read_string(&self, address: u64, max_len: usize) -> ClientResult<String>
pub fn read_string(&self, address: u64, max_len: usize) -> ClientResult<String>
read null-terminated string
Sourcepub fn read_wstring(
&self,
address: u64,
max_chars: usize,
) -> ClientResult<String>
pub fn read_wstring( &self, address: u64, max_chars: usize, ) -> ClientResult<String>
read null-terminated wide string
Auto Trait Implementations§
impl<'a> Freeze for ProcessOps<'a>
impl<'a> RefUnwindSafe for ProcessOps<'a>
impl<'a> Send for ProcessOps<'a>
impl<'a> Sync for ProcessOps<'a>
impl<'a> Unpin for ProcessOps<'a>
impl<'a> UnwindSafe for ProcessOps<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more