![]() |
PE-sieve
Scans all running processes. Recognizes and dumps a variety of potentially malicious implants (replaced/implanted PEs, shellcodes, hooks, in-memory patches).
|
#include <results_dumper.h>
Public Member Functions | |
| ResultsDumper (std::string _baseDir, bool _quiet) | |
| ProcessDumpReport * | dumpDetectedModules (HANDLE hProcess, bool isRefl, ProcessScanReport &process_report, const pesieve::t_dump_mode dump_mode, const t_imprec_mode imprec_mode, const bool rebase) |
| bool | dumpJsonReport (ProcessScanReport &process_report, const t_results_filter &filter, const pesieve::t_json_level &jdetails) |
| bool | dumpJsonReport (ProcessDumpReport &process_report) |
| bool | dumpJsonReport (ErrorReport &error_report, const t_results_filter &filter) |
| std::string | getOutputDir () |
| std::string | makeOutPath (const std::string &fname, const std::string &defaultExtension="") |
Protected Member Functions | |
| bool | dumpModule (IN HANDLE processHandle, IN bool isRefl, IN const ModulesInfo &modulesInfo, IN ModuleScanReport *modReport, IN const peconv::ExportsMapper *exportsMap, IN const pesieve::t_dump_mode dump_mode, IN const pesieve::t_imprec_mode imprec_mode, IN bool rebase, OUT ProcessDumpReport &dumpReport) |
| std::string | makeModuleDumpPath (ULONGLONG modBaseAddr, const std::string &fname, const std::string &defaultExtension) |
| std::string | makeDirName (const DWORD process_id) |
| void | makeAndJoinDirectories (std::stringstream &name_stream) |
| bool | fillModuleCopy (IN ModuleScanReport *mod, IN OUT PeBuffer &module_buf) |
Protected Attributes | |
| std::string | dumpDir |
| std::string | baseDir |
| bool | quiet |
Definition at line 11 of file results_dumper.h.
|
inline |
Definition at line 15 of file results_dumper.h.
| pesieve::ProcessDumpReport * pesieve::ResultsDumper::dumpDetectedModules | ( | HANDLE | hProcess, |
| bool | isRefl, | ||
| ProcessScanReport & | process_report, | ||
| const pesieve::t_dump_mode | dump_mode, | ||
| const t_imprec_mode | imprec_mode, | ||
| const bool | rebase ) |
| bool pesieve::ResultsDumper::dumpJsonReport | ( | ErrorReport & | error_report, |
| const t_results_filter & | filter ) |
| bool pesieve::ResultsDumper::dumpJsonReport | ( | ProcessDumpReport & | process_report | ) |
| bool pesieve::ResultsDumper::dumpJsonReport | ( | pesieve::ProcessScanReport & | process_report, |
| const t_results_filter & | filter, | ||
| const pesieve::t_json_level & | jdetails ) |
|
protected |
| processHandle | : handle of the target process (from which the artefacts will be dumped) |
| isRefl | : a flag indicating if this is a process reflection |
| modulesInfo | : list the scanned modules, with their statuses |
| modReport | : ModuleScanReport defining artefacts to be dumped |
| exportsMap | : mapping of all the exported APIs available within the process (for imports reconstruction) |
| imprec_mode | : mode in which imports reconstruction will be attempted |
| out_base | : the base to which the output module should be rebased, 0 if default |
| dumpReport | : ProcessDumpReport to which reports from the current dump will be appended |
Definition at line 262 of file results_dumper.cpp.

|
protected |
|
inline |
Definition at line 37 of file results_dumper.h.
|
protected |
|
protected |
Definition at line 484 of file results_dumper.cpp.
|
protected |
| modBaseAddr | : base address where this module was mapped |
| fname | : known name of this module |
| defaultExtension | : default extension - it will be used if no other extension was detected from the previous name |
Definition at line 455 of file results_dumper.cpp.

| std::string pesieve::ResultsDumper::makeOutPath | ( | const std::string & | fname, |
| const std::string & | defaultExtension = "" ) |
|
protected |
Definition at line 81 of file results_dumper.h.
|
protected |
Definition at line 80 of file results_dumper.h.
|
protected |
Definition at line 82 of file results_dumper.h.