summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-client/Client.hpp
blob: 016e3d3c86c39faac63ddd6f13808e45beafe029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#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 <Security/RuntimeSecurity.hpp>
#include <Security/SyscallManager.hpp>

// Core functionality
#include <Networking/TCPClient.hpp>
#include <UserExperience/UserInterface.hpp>

// Loader functionality
#include <Login/RemoteLogin.hpp>

#include <RemoteCode/RemoteProcess.hpp>
#include <RemoteCode/RemoteInjectionClient.hpp>
#include <RemoteCode/RemoteCodeClient.hpp>

// It looked nasty in Client.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, "CONOUT$", "w", stdout);

		// :^)
		SetConsoleTitleA("moneyclient $");
	
		printf("[DEBUG] Hello!\n");
	}
}