From ace9ae2117175dfe5e14b259db2e0536f8ec7a8a Mon Sep 17 00:00:00 2001 From: boris Date: Mon, 24 Dec 2018 20:39:09 +1300 Subject: fffffffff --- .../csgo-client/RemoteCode/RemoteCodeClient.hpp | 28 +++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'csgo-loader/csgo-client/RemoteCode/RemoteCodeClient.hpp') diff --git a/csgo-loader/csgo-client/RemoteCode/RemoteCodeClient.hpp b/csgo-loader/csgo-client/RemoteCode/RemoteCodeClient.hpp index 57f1499..6794403 100644 --- a/csgo-loader/csgo-client/RemoteCode/RemoteCodeClient.hpp +++ b/csgo-loader/csgo-client/RemoteCode/RemoteCodeClient.hpp @@ -1,6 +1,32 @@ #pragma once +#include + namespace RemoteCode { - + struct RemoteCodeParameters + { + uintptr_t m_EndSceneVmt; // client + uintptr_t m_OriginalEndScene; // client + uintptr_t m_EntryPoint; // server + uintptr_t m_CheatHeader; // server (this can also be constant but hey..) + uintptr_t m_VirtualProtect; // client + }; + + class RemoteCodeClient + { + ByteArray m_Code; + RemoteProcess m_Process; + uintptr_t m_DirectX; + + public: + RemoteCodeClient() = default; + + // Send server the allocation address. + // This will also send the original and vmt address of endscene. + RemoteCodeParameters Start(RemoteProcess &Process); + + // Allocate, write and then dispatch the shellcode. + void Dispatch(ByteArray &Shellcode); + }; } \ No newline at end of file -- cgit v1.2.3