PE-sieve
Scans all running processes. Recognizes and dumps a variety of potentially malicious implants (replaced/implanted PEs, shellcodes, hooks, in-memory patches).
|
Buffers the data from the module loaded in the scanned process into the local memory. More...
#include <module_data.h>
Public Member Functions | |
RemoteModuleData (HANDLE _processHandle, bool _isRefl, HMODULE _modBaseAddr) | |
virtual | ~RemoteModuleData () |
bool | isSectionEntry (const size_t section_number) |
bool | isSectionExecutable (const size_t section_number, bool allow_data, bool allow_inaccessible) |
bool | hasExecutableSection (bool allow_data, bool allow_inaccessible) |
bool | isInitialized () |
bool | is64bit () |
size_t | getHdrImageSize () |
ULONGLONG | getHdrImageBase () |
size_t | getModuleSize () |
size_t | getHeaderSize () |
bool | loadFullImage () |
bool | isFullImageLoaded () |
ULONGLONG | getRemoteSectionVa (const size_t section_num) |
bool | loadImportsList (peconv::ImportsCollection &collection) |
ULONGLONG | getModuleBase () |
Static Public Member Functions | |
static std::string | getModuleName (HANDLE _processHandle, HMODULE _modBaseAddr) |
static std::string | getMappedName (HANDLE _processHandle, LPVOID _modBaseAddr) |
Public Attributes | |
BYTE | headerBuffer [peconv::MAX_HEADER_SIZE] |
Protected Member Functions | |
bool | init () |
bool | loadHeader () |
size_t | calcImgSize () |
bool | _loadFullImage (size_t v_size) |
void | freeFullImage () |
Protected Attributes | |
HANDLE | processHandle |
const bool | isReflection |
HMODULE | modBaseAddr |
BYTE * | imgBuffer |
size_t | imgBufferSize |
Friends | |
class | PeSection |
class | IATScanner |
Buffers the data from the module loaded in the scanned process into the local memory.
Definition at line 120 of file module_data.h.
|
inline |
|
inlinevirtual |
|
protected |
Definition at line 308 of file module_data.cpp.
|
protected |
|
inlineprotected |
Definition at line 205 of file module_data.h.
|
inline |
Definition at line 163 of file module_data.h.
|
inline |
Definition at line 157 of file module_data.h.
|
inline |
Definition at line 181 of file module_data.h.
|
static |
|
inline |
Definition at line 191 of file module_data.h.
|
static |
|
inline |
ULONGLONG pesieve::RemoteModuleData::getRemoteSectionVa | ( | const size_t | section_num | ) |
Definition at line 344 of file module_data.cpp.
Definition at line 416 of file module_data.cpp.
|
protected |
Definition at line 298 of file module_data.cpp.
|
inline |
Definition at line 151 of file module_data.h.
|
inline |
Definition at line 187 of file module_data.h.
|
inline |
bool pesieve::RemoteModuleData::isSectionEntry | ( | const size_t | section_number | ) |
bool pesieve::RemoteModuleData::loadFullImage | ( | ) |
Definition at line 322 of file module_data.cpp.
|
protected |
Definition at line 336 of file module_data.cpp.
bool pesieve::RemoteModuleData::loadImportsList | ( | peconv::ImportsCollection & | collection | ) |
Definition at line 282 of file module_data.cpp.
|
friend |
Definition at line 223 of file module_data.h.
|
friend |
Definition at line 222 of file module_data.h.
BYTE pesieve::RemoteModuleData::headerBuffer[peconv::MAX_HEADER_SIZE] |
Definition at line 196 of file module_data.h.
|
protected |
Definition at line 216 of file module_data.h.
|
protected |
Definition at line 217 of file module_data.h.
|
protected |
Definition at line 213 of file module_data.h.
|
protected |
Definition at line 214 of file module_data.h.
|
protected |
Definition at line 212 of file module_data.h.