diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-09-19 22:16:17 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-09-19 22:16:17 +0200 |
commit | d344ea3ee86ab95d9ebce7cc06dd939f9734a06a (patch) | |
tree | 098b308e7f201e939ddb98cd1c1eadcb51f5c7ea /MemDriverLib/DLLHelper.h | |
parent | ec118d1a0387914eb443631c3b5be08032704331 (diff) |
added InitTargetMemory for allocating a memory block in the target process (cause we need the base address ASAP)
Diffstat (limited to 'MemDriverLib/DLLHelper.h')
-rw-r--r-- | MemDriverLib/DLLHelper.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/MemDriverLib/DLLHelper.h b/MemDriverLib/DLLHelper.h index 0a6176f..3384ec6 100644 --- a/MemDriverLib/DLLHelper.h +++ b/MemDriverLib/DLLHelper.h @@ -8,14 +8,17 @@ public: DLLHelper(); ~DLLHelper(); - bool Init(std::string& fullDllPath); + bool Init(HANDLE targetPID, std::string& fullDllPath); bool VerifyHeader(); + bool InitTargetMemory(); private: + HANDLE m_TargetPID = 0; std::string m_DLLPath; - DWORD m_DLLSize; + DWORD m_DLLSize = 0; UINT8 *m_DLLPtr = nullptr; - IMAGE_DOS_HEADER *m_DOSHeader; - IMAGE_NT_HEADERS *m_NTHeader; + IMAGE_DOS_HEADER *m_DOSHeader = nullptr; + IMAGE_NT_HEADERS *m_NTHeader = nullptr; + PVOID m_TargetBaseAddress = nullptr; }; |