summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2018-12-24 20:39:09 +1300
committerboris <wzn@moneybot.cc>2018-12-24 20:39:09 +1300
commitace9ae2117175dfe5e14b259db2e0536f8ec7a8a (patch)
treee657af71b250546fb3e135fdadb1cd31f1a07671 /csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp
parent8a6e64f020047709f53ddd35797c511a5d3239fe (diff)
fffffffff
Diffstat (limited to 'csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp')
-rw-r--r--csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp26
1 files changed, 25 insertions, 1 deletions
diff --git a/csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp b/csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp
index 57f1499..5880174 100644
--- a/csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp
+++ b/csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp
@@ -1,6 +1,30 @@
#pragma once
+#include <RemoteCode/RemoteProcess.hpp>
+#include <UserExperience/UserInterface.hpp>
+
namespace RemoteCode
{
-
+ class RemoteInjectionClient
+ {
+ ByteArray m_Data;
+ RemoteProcess m_Process;
+ char m_ProcessName[64];
+ void *m_AllocationBase;
+
+ public:
+ RemoteInjectionClient() = default;
+
+ // Select a game to inject the cheat for
+ bool Start(UserExperience::SelectedGame Game);
+
+ // Allocates a page in the game memory, which will be used to
+ // write and execute the DLL.
+ uintptr_t AllocateImagePage(size_t SizeOfImage);
+
+ // Initializes m_Process with the game process.
+ bool OpenGameHandle();
+
+ void WriteToMap(ByteArray &CheatBin);
+ };
} \ No newline at end of file