summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-client/RemoteCode/RemoteMapper.hpp
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2019-01-10 15:44:40 +1300
committerboris <wzn@moneybot.cc>2019-01-10 15:44:40 +1300
commit6c20307070e096456d3a36722f65ddaa38bcb100 (patch)
treecfe05875fc815e4e6ccf5ff0c8d053cd19de3766 /csgo-loader/csgo-client/RemoteCode/RemoteMapper.hpp
parent4db29589a61f2e7cb663c5734f911c02206c7997 (diff)
aaaaaajh
Diffstat (limited to 'csgo-loader/csgo-client/RemoteCode/RemoteMapper.hpp')
-rw-r--r--csgo-loader/csgo-client/RemoteCode/RemoteMapper.hpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/csgo-loader/csgo-client/RemoteCode/RemoteMapper.hpp b/csgo-loader/csgo-client/RemoteCode/RemoteMapper.hpp
index 21eb569..53bc049 100644
--- a/csgo-loader/csgo-client/RemoteCode/RemoteMapper.hpp
+++ b/csgo-loader/csgo-client/RemoteCode/RemoteMapper.hpp
@@ -4,10 +4,18 @@
namespace RemoteCode
{
+ struct RemoteImport
+ {
+ char m_Module[128];
+ char m_Import[128];
+ };
+
class RemoteMapper
{
RemoteProcess m_Process;
- uint8_t *m_Mapped;
+
+ ByteArray m_Code;
+ ByteArray m_Mapped;
void *m_Map;
@@ -15,10 +23,10 @@ namespace RemoteCode
RemoteMapper() = default;
// Copy process & shellcode to class.
- bool Start(RemoteProcess Process);
+ bool Start(RemoteProcess &Process, ByteArray &Code);
// Writes code to process in allocated page.
- bool WriteCodeToMap(ByteArray Code);
+ bool WriteCodeToMap();
// Calls shellcode to call the library ;D
bool ExecuteCodeFromMap();