Skip to main content

Crate overload

Crate overload 

Source
Available on Windows only.
Expand description

Section overloading and module stomping.

overload_module maps a payload over a legitimate file-backed decoy. read_and_overload does the same from a path. Empty decoy path picks a System32 DLL large enough to host the payload.

ⓘ
let payload = std::fs::read(r"c:\temp\payload.dll").unwrap();
let mapped = overload::overload_module(&payload, "").unwrap();

Functions§

find_decoy_module
Locate a legitimate module of certain minimun size.
generate_template
Generates a template from a given DLL file by extracting the content of the .text section and replacing it with arbitrary content. This function stores both the template and the extracted content of the .text section in separate files in a specified output directory.
managed_module_stomping
Stomp a shellcode on a loaded module. The first parameter of this function is the shellcode’s content. The next two parameters modify the behaviour of the function.
managed_overload_module
Locate and load a decoy module into memory creating a legitimate file-backed memory section within the process. Afterwards overload that module by manually mapping a payload (from memory) that will appear to be file-backed by the legitimate decoy module.
managed_read_and_overload
Locate and load a decoy module into memory creating a legitimate file-backed memory section within the process. Afterwards overload that module by manually mapping a payload (from disk) that will appear to be file-backed
by the legitimate decoy module.
overload_module
Locate and load a decoy module into memory creating a legitimate file-backed memory section within the process. Afterwards overload that module by manually mapping a payload (from memory) that will appear to be file-backed by the legitimate decoy module.
overload_to_section
Load a payload from memory to an existing memory section.
read_and_overload
Locate and load a decoy module into memory creating a legitimate file-backed memory section within the process. Afterwards overload that module by manually mapping a payload (from disk) that will appear to be file-backed
by the legitimate decoy module.
template_stomping
Performs template stomping by loading a template from disk and injecting a given payload into the .text section of the loaded template, handling relocations appropriately.