docs.rs failed to build pe-scylla-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
pe-scylla
A Rust library for the process-dump / IAT-fix paradigm (Scylla benchmark):
attach to a (typically paused / debugged) process, read its PE image out of
memory into pe_edit::PeDocument, scan the IAT with one of three scan lines
(resolver / code-reference / reflection), rebuild the import table ("Fix Dump"),
and save a fixed, runnable dump.
It depends on pe-edit for the image model and disk-level parse/serialize;
everything in this crate is process-oriented.
Windows-only. The process code lives under
#[cfg(target_os = "windows")]. On other targets the crate compiles but the process API is unavailable.
Features
process::dump— read a live process's PE image intoPeDocument.IatScanner— locate the IAT byScanMethod::Resolver,ScanMethod::CodeReference, orScanMethod::Reflection.IatFixer::fix_iat— resolve IAT entries to(module, function), rebuild the import directory (descriptors + INT/IAT arrays + name strings), and redirect the original IAT slots — placed in place when contiguous, otherwise every code reference is rewritten (remap_iat_references).recover_dump_imports— recover a dumped process's import table per Scylla's dump handling.rebase_dump— rebuild the base relocation table so a dump whose runtime wrote absolute pointers into.datare-runs standalone.process::spawn_paused— create a process paused at its entry point (fully loaded, nothing run) — the clean moment to dump.process::tracer— inline API-hook tracing.io::tree— save/load a curated import tree as XML or JSON.
Usage
use ;
use serialize;
// Create a process paused at its entry point (Drop terminates it when done).
let paused = spawn_paused?;
let pid = paused.pid;
// Dump its PE image, restore the entry-point byte, scan and fix the IAT.
let mut doc = dump?;
paused.restore_entry_byte?;
let resolver = for_process?;
let scan = doc.scan?;
doc.fix_iat?;
let bytes = serialize?;
write?;
# Ok::
License
MIT