Skip to main content

Crate mrevise

Crate mrevise 

Source

Modules§

unix

Structs§

AlignedChunk
AlignedChunk represents a memory chunk that has been aligned to a bit width and the chunk’s new size. The new size is the sum of the old chunk’s size plus the length from the aligned chunk pointer to the old pointer.
MopConfig
MopConfig defines the bounds of a memory chunk to operate on and configures the behavior of the mop function.
ProtectResult
ProtectResult captures information after a successful call to the protect function.

Enums§

AllocFlags
AllocFlags are the flags to apply when calling the alloc function.
MaybeProt
MaybeProt specifies the memory protection behavior for the mop function.
Prot
Prot represents a memory protection setting.

Functions§

align_chunk
align_chunk aligns a pointer to an arbitrary chunk of memory according to the specified bits. It returns a new pointer and the size of the the new chunk (that is: the original chunk’s size plus the length between the aligned pointer and the original pointer).
alloc
alloc allocates memory for the current process.
compare_mask⚠
compare_mask compares the bytes after the provided address using the provided pattern.
find_pattern⚠
find_pattern attempts to find a matching pattern anywhere between the start and end offsets.
mop⚠
mop (memory operation) handles the common toil involved in operating on a memory chunk, such as setting the chunk’s protection settings before and after operating on it, aligning the chunk’s boundaries to a certain bit width, and reading from and writing to the chunk.
protect
protect modifies the protection settings of a memory chunk for the current process.