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
.textsection and replacing it with arbitrary content. This function stores both the template and the extracted content of the.textsection 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
.textsection of the loaded template, handling relocations appropriately.