From 4db29589a61f2e7cb663c5734f911c02206c7997 Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 9 Jan 2019 20:51:16 +1300 Subject: whole buncha shit FIXME: loader currently corrupts heap on injection because i am retarded --- .../RemoteCode/RemoteInjectionClient.hpp | 69 ---------------------- 1 file changed, 69 deletions(-) delete mode 100644 csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp (limited to 'csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp') diff --git a/csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp b/csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp deleted file mode 100644 index 2e5d216..0000000 --- a/csgo-loader/csgo-client/RemoteCode/RemoteInjectionClient.hpp +++ /dev/null @@ -1,69 +0,0 @@ -#pragma once - -#include -#include - -namespace RemoteCode -{ - // Used for TransactionStart - using ImportedModule = char[64]; - using ImportList = std::vector; - - // Used for TransactionContinue - struct ExportedFunction - { - // I've never seen modules / functions with names - // that were larger than 64 characters. - char m_Module[64]; - char m_Function[64]; - - // Address of exported module / function - uintptr_t m_ModuleAddress; - uintptr_t m_FunctionAddress; - }; - - using ExportList = std::vector; - - // Used for TransactionCommit - struct RemoteInjectionHeader - { - // Used to decrypt the cheat header (first 1000 bytes of image sent back). - uint8_t m_HeaderKey; - - // Used to call entrypoint/TLS callbacks. - uintptr_t m_EntryPoint; - uintptr_t m_TlsDirectory; - }; - - struct RemoteInjectionCode - { - RemoteInjectionHeader m_Header; - - // Actual injection code. - ByteArray m_Code; - }; - - // Implementation of client mapping code - class RemoteInjectionClient - { - RemoteInjectionHeader m_Header; - RemoteProcess m_Process; - - public: - // Receive hash of selected cheat. - // Reply with size of image to allocate. - ByteArray Start(ByteArray &Response); - - // Receive client header, send over list of imported functions - ByteArray TransactionStart(ByteArray &Response); - - // Receive list of modules & export addresses - ByteArray TransactionContinue(ByteArray &Response); - - // Write the file to the - void TransactionCommit(ByteArray &Response); - - RemoteProcess GetProcess() { return m_Process; } - RemoteInjectionHeader GetHeader() { return m_Header; } - }; -} \ No newline at end of file -- cgit v1.2.3