Skip to main content

Module code_cave

Module code_cave 

Source
Expand description

Code cave finder and manager

Structs§

CodeCave
Represents a code cave (unused memory region)

Enums§

CodeCaveError
Errors that can occur during code cave operations

Functions§

allocate_cave
Allocates a code cave of the requested size
allocate_cave_near
Allocates a code cave near a target address (within branch range)
clear_all_caves
Clears all allocated code caves from the registry
find_alignment_padding
Finds alignment padding (zero bytes) in a memory range
find_caves
Finds all code caves (NOPs and padding) in a memory range
find_caves_in_image
Finds code caves in an entire image
find_nop_sequences
Finds sequences of NOP instructions in a memory range
free_cave
Frees a previously allocated code cave
get_cave_stats
Returns statistics about code cave usage
is_cave_available
Checks if a cave at the given address is available (not modified)
list_allocated_caves
Lists all currently allocated code caves