blob: af07bb00bccc8cc6a6de30d0365e2acec0a40a93 (
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
|
#pragma once
// NOTE:
// THE FOLLOWING MACROS ARE USED ONLY IN SERVER.CPP
// PLEASE UPDATE THEM ACCORDINGLY.
#define SERVER_PORT 0xF2C // Hexadecimal representation of the server port.
// Core functionality
#include <Networking/TCPServer.hpp>
#include <Networking/WebSocket.hpp>
// Loader functionality
#include <Login/RemoteLogin.hpp>
#include <RemoteCode/FileReader.hpp>
#include <RemoteCode/RemoteInjectionServer.hpp>
// It looked nasty in Server.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("moneyserver $");
}
}
|