diff options
Diffstat (limited to 'csgo-loader/csgo-client/Login/RemoteLogin.hpp')
| -rw-r--r-- | csgo-loader/csgo-client/Login/RemoteLogin.hpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/csgo-loader/csgo-client/Login/RemoteLogin.hpp b/csgo-loader/csgo-client/Login/RemoteLogin.hpp index e543d27..31649c6 100644 --- a/csgo-loader/csgo-client/Login/RemoteLogin.hpp +++ b/csgo-loader/csgo-client/Login/RemoteLogin.hpp @@ -6,9 +6,11 @@ using ByteArray = std::vector<uint8_t>;
-namespace Login {
+namespace Login
+{
// Login header that is sent over to the server
- struct RemoteLoginHeader {
+ struct RemoteLoginHeader
+ {
// The first four bytes are encoded by the client.
// This will carry the client version which can be checked.
uint32_t m_ClientHeader;
@@ -32,9 +34,10 @@ namespace Login { // Possible server responses
// The hardware ID is encoded (XORed with the message ID) within the message for
// shadow ban/forum ban purposes. :)
- enum RemoteLoginResponse : uint8_t {
- OUTDATED_CLIENT = 'A', // '[000A:{HWID}] Your client is outdated. Please download the latest client at 'moneybot.cc'.'
- ACCESS_AUTHORISED = 'B', // Allows the user to continue with injection.
+ enum RemoteLoginResponse : uint8_t
+ {
+ OUTDATED_CLIENT = 'A', // '[000A:{HWID}] Your client is outdated. Please download the latest client at 'moneybot.cc'.'
+ ACCESS_AUTHORISED = 'B', // Allows the user to continue with injection.
INVALID_CREDENTIALS = 'C', // '[000C:{HWID}] Your credentials are invalid. Please check your spelling and try again.'
USER_BANNED = 'D', // '[000D:{HWID}] Your account is banned. Please contact 'admin@moneybot.cc' for additional information.'
INVALID_HARDWARE = 'E', // '[000E:{HWID}] Please contact an administrator to request a hardware ID reset.'
@@ -44,9 +47,10 @@ namespace Login { };
// Runs the security checks and creates the login header to send to the server.
- class RemoteLoginTransaction {
+ class RemoteLoginTransaction
+ {
RemoteLoginHeader m_Header;
-
+
public:
// Initialises the header.
void Start(const char *Username, const char *Password);
@@ -62,9 +66,10 @@ namespace Login { // the response is not ACCESS_AUTHORISED.
bool TranslateResponse(ByteArray &RawResponse);
- ByteArray GetHeader() {
+ ByteArray GetHeader()
+ {
ByteArray Header;
-
+
// Copy header to the ByteArray.
Header.insert(
Header.begin(),
|
