26 OUT_PADDED(outs, level,
"\"is_connected_to_peb\" : ");
29 OUT_PADDED(outs, level,
"\"is_pe_replaced\" : ");
32 OUT_PADDED(outs, level,
"\"dos_hdr_modified\" : ");
35 OUT_PADDED(outs, level,
"\"file_hdr_modified\" : ");
38 OUT_PADDED(outs, level,
"\"nt_hdr_modified\" : ");
44 OUT_PADDED(outs, level,
"\"sec_hdr_modified\" : ");
48 OUT_PADDED(outs, level,
"\"arch_mismatch\" : ");
58 OUT_PADDED(outs, level,
"\"headers_scan\" : {\n");
92 bool zeroUnusedFields(PBYTE hdr_buffer,
size_t hdrs_size);
93 bool isSecHdrModified(
const PBYTE hdr_buffer1,
const PBYTE hdr_buffer2,
const size_t hdrs_size);
94 bool isDosHdrModified(
const PBYTE hdr_buffer1,
const PBYTE hdr_buffer2,
const size_t hdrs_size);
95 bool isFileHdrModified(
const PBYTE hdr_buffer1,
const PBYTE hdr_buffer2,
const size_t hdrs_size,
bool mask_arch_mismatch =
false);
96 bool isNtHdrModified(
const PBYTE hdr_buffer1,
const PBYTE hdr_buffer2,
const size_t hdrs_size);
Loads a module from the disk, corresponding to the module in the scanned process' memory.
A base class of all the reports detailing on the output of the performed module's scan.
virtual const bool _toJSON(std::stringstream &outs, size_t level=JSON_LEVEL, const pesieve::t_json_level &jdetails=JSON_BASIC)
A base class for all the scanners operating on module data.
RemoteModuleData & remoteModData
Buffers the data from the module loaded in the scanned process into the local memory.