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 --- csgo-loader/csgo-module/Module.hpp | 55 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 csgo-loader/csgo-module/Module.hpp (limited to 'csgo-loader/csgo-module/Module.hpp') diff --git a/csgo-loader/csgo-module/Module.hpp b/csgo-loader/csgo-module/Module.hpp new file mode 100644 index 0000000..18a3ff1 --- /dev/null +++ b/csgo-loader/csgo-module/Module.hpp @@ -0,0 +1,55 @@ +#pragma once + +// NOTE: +// THE FOLLOWING MACROS ARE USED ONLY IN CLIENT.CPP +// PLEASE UPDATE THEM ACCORDINGLY. +#define LOCAL_IP 0x0100007F // '127.0.0.1' +#define SERVER_IP 0xE53CA523 // Hexadecimal representation of the server IP, obtained by inet_addr() +#define SERVER_PORT 0xF2C // Hexadecimal representation of the server port. + + +// Security features (these will be initialised and ran +// first, failure will terminate loader execution). +#include + +// Core functionality +#include + +// Required for the SDK from VMP which offers +// virtual machines and string encryption, as +// well as debug/VM checks. +#include + +// Just a neat little feature that I decided to implement :-) +#ifdef DEBUG + // Sick macros, retard. +#define WRAP_IF_RELEASE( s ) +#define WRAP_IF_DEBUG( s ) { s; } + +#define STR( s ) s +#else + // Sick macros, retard. +#define WRAP_IF_RELEASE( s ) { s; } +#define WRAP_IF_DEBUG( s ) + +#define STR( s ) VMProtectDecryptStringA( s ) +#endif + +// It looked nasty in Module.cpp, so I'm putting it here. +namespace Utils +{ + inline void OpenConsole() + { + // Create instance of console. + AllocConsole(); + + // Allow console to access output stream. + FILE *file; + freopen_s(&file, STR("CONOUT$"), STR("w"), stdout); + + // :^) + SetConsoleTitleA(STR("moneymodule $")); + + printf(STR("[DEBUG] Ready\n")); + } +} \ No newline at end of file -- cgit v1.2.3