Class Rex::Post::Meterpreter::Extensions::Stdapi::Sys::ProcessSubsystem::Memory
In: lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/memory.rb
Parent: Object

Provides an interface to allocate, free, read, write, query, protect, lock, and unlock memory in the context of a given process.

Methods

Public Class methods

Initializes a memory modification instance with the supplied process instance.

Public Instance methods

Low-level memory deallocation.

Allocate storage of the supplied length and returns the address at which the memory was allocated.

Deallocate a region of memory in the context of a process.

Lock a region of memory into physical memory so that it can‘t be swapped to disk. This can only be done in the context of the process that is running the meterpreter server. The instance‘s handle is ignored.

Change the protection masks on the region supplied in base.

Queries an address for information about its state.

Read memory from the context of a process and return the buffer.

Check to see if an address is readable.

Unloock a region of memory into physical memory so that it can be swapped to disk. This can only be done in the context of the process that is running the meterpreter server. The instance‘s handle is ignored.

Check to see if an address is writable.

Write memory to the context of a process and return the number of bytes actually written.

Protected Instance methods

Translates general protection flags to specific protection flags.

Translates specific protection flags to general protection flags.

[Validate]