2015-03-05 14:29:05 +00:00
|
|
|
#ifndef CONNECTOR_H
|
|
|
|
#define CONNECTOR_H
|
|
|
|
|
2015-03-06 14:32:36 +00:00
|
|
|
#include <externData.h>
|
2015-03-07 17:31:48 +00:00
|
|
|
#include <Utils.h>
|
2015-03-13 14:27:21 +00:00
|
|
|
#include <BruteUtils.h>
|
|
|
|
#include "STh.h"
|
2015-03-07 17:31:48 +00:00
|
|
|
|
|
|
|
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
|
|
|
|
#include <iphlpapi.h>
|
|
|
|
#include <icmpapi.h>
|
|
|
|
#pragma comment(lib, "iphlpapi.lib")
|
|
|
|
#pragma comment(lib,"curllib.lib")
|
|
|
|
#endif
|
|
|
|
#include <mainResources.h>
|
2015-03-05 14:29:05 +00:00
|
|
|
|
2015-03-06 14:32:36 +00:00
|
|
|
class Connector {
|
2015-03-05 14:29:05 +00:00
|
|
|
|
|
|
|
public:
|
2015-03-06 14:32:36 +00:00
|
|
|
static int nConnect(const char *ip, const int port, std::string *buffer,
|
2015-03-16 14:29:34 +00:00
|
|
|
const char *postData = NULL,
|
|
|
|
const std::vector<std::string> *customHeaders = NULL,
|
|
|
|
const string *lpString = NULL);
|
2015-03-05 14:29:05 +00:00
|
|
|
static int _ConnectToPort(char *ip, int port, char *hl);
|
|
|
|
static int _SSHLobby(char *ip, int port, std::string *buffer);
|
|
|
|
};
|
|
|
|
#endif // CONNECTOR_H
|