diff options
| author | auth12 <[email protected]> | 2020-07-24 10:56:14 -0700 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-07-24 10:56:14 -0700 |
| commit | e487ffe1671ba807528d4039ef66f8f8f7eeb853 (patch) | |
| tree | c65cc4dd529f8e37f9cca81d38c749dece13a574 /client/src/injection/process.h | |
| parent | Injection and server changes. (diff) | |
| download | loader-e487ffe1671ba807528d4039ef66f8f8f7eeb853.tar.xz loader-e487ffe1671ba807528d4039ef66f8f8f7eeb853.zip | |
Injection process changes and server improvements.
Diffstat (limited to 'client/src/injection/process.h')
| -rw-r--r-- | client/src/injection/process.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client/src/injection/process.h b/client/src/injection/process.h index ddbadf5..8e2c4f1 100644 --- a/client/src/injection/process.h +++ b/client/src/injection/process.h @@ -8,7 +8,7 @@ namespace util { HANDLE m_handle; public: - process() : m_handle{ INVALID_HANDLE_VALUE } {}; + process() : m_handle{ INVALID_HANDLE_VALUE }, m_id{ -1 } {}; process(const SYSTEM_PROCESS_INFORMATION* info); ~process(); @@ -21,8 +21,9 @@ namespace util { uintptr_t peb(); uintptr_t load(const std::string_view mod); + uintptr_t map(const std::string_view path); uintptr_t allocate(size_t size, uint32_t type, uint32_t protection); - uintptr_t module_export(const std::string_view name, const std::string_view func); + uintptr_t module_export(const uintptr_t base, const std::string_view func); bool close(); @@ -33,7 +34,5 @@ namespace util { auto& handle() { return m_handle; } }; - extern std::vector<process> process_list; - - bool fetch_processes(); + bool fetch_processes(std::vector<process> &out); }; |