This commit is contained in:
cora32 2015-03-23 20:11:00 +03:00
parent 99488e5534
commit 69d73e076a
8 changed files with 15 additions and 21 deletions

View File

@ -1,9 +1,8 @@
#ifndef BASICAUTH_H
#define BASICAUTH_H
#include "Connector.h"
#include "BruteUtils.h"
#include "Utils.h"
#include "Connector.h"
#include "externData.h"
#include "mainResources.h"

View File

@ -1,6 +1,8 @@
#ifndef BRUTEUTILS_H
#define BRUTEUTILS_H
#include "externData.h"
class BruteUtils {
public:

View File

@ -1,8 +1,8 @@
#ifndef CHECKKEY_TH_H
#define CHECKKEY_TH_H
#pragma once
#include "STh.h"
extern int emitIfOK;
class CheckKey_Th : public QThread
{

View File

@ -1,4 +1,5 @@
#include "Connector.h"
#include "SSHAuth.h"
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
int _pingMyTarget(const char *ip)
@ -227,7 +228,7 @@ int Connector::nConnect(const char* ip, const int port, std::string *buffer,
return buffer->size();
}
int Connector::_ConnectToPort(string ip, int port, char *hl)
int Connector::_ConnectToPort(std::string ip, int port, char *hl)
{
if(gPingNScan)
{

View File

@ -1,11 +1,8 @@
#ifndef CONNECTOR_H
#define CONNECTOR_H
#include "externData.h"
#include "Utils.h"
#include "BruteUtils.h"
#include "SSHAuth.h"
#include "STh.h"
#include "BruteUtils.h"
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
#include <iphlpapi.h>
@ -13,16 +10,13 @@
#pragma comment(lib, "iphlpapi.lib")
#pragma comment(lib,"curllib.lib")
#endif
#include "mainResources.h"
class Connector {
public:
static int nConnect(const char* ip, const int port, std::string *buffer,
const char *postData = NULL,
const std::vector<std::string> *customHeaders = NULL,
const string *lpString = NULL);
static int _ConnectToPort(string ip, int port, char *hl);
static int _SSHLobby(std::string ip, int port, std::string *buffer);
const std::string *lpString = NULL);
static int _ConnectToPort(std::string ip, int port, char *hl);
};
#endif // CONNECTOR_H

View File

@ -1,9 +1,8 @@
#ifndef FTPAUTH_H
#define FTPAUTH_H
#include "Connector.h"
#include "BruteUtils.h"
#include "Utils.h"
#include "Connector.h"
#include "externData.h"
#include "mainResources.h"

View File

@ -1,9 +1,8 @@
#ifndef SSHAUTH_H
#define SSHAUTH_H
#include "Connector.h"
#include "BruteUtils.h"
#include "Utils.h"
#include "Connector.h"
#include "externData.h"
#include "mainResources.h"

View File

@ -751,7 +751,7 @@ std::string toLowerStr(const char *str)
}
void _connect() {
string ip = "";
std::string ip = "";
while (globalScanFlag) {
std::unique_lock<std::mutex> lk(Threader::m);
Threader::cv.wait(lk, []{return Threader::ready; });
@ -2065,7 +2065,7 @@ int _GetDNSFromMask(char *mask, char *saveMask, char *saveMaskEnder) {
if(!globalScanFlag) return 0;
verboseProgressDNS(--gTargets, mask, top_level_domain, saveMask);
string res = string(mask) + string(top_level_domain);
std::string res = std::string(mask) + std::string(top_level_domain);
++indexIP;
@ -2193,7 +2193,7 @@ int startScan(char* args) {
++indexIP;
tAddr.s_addr = ntohl(i);
res = string(inet_ntoa(tAddr));
res = std::string(inet_ntoa(tAddr));
verboseProgress(gTargets--, res.c_str());
Threader::fireThread(res, (void*(*)(void))_connect);
@ -2398,7 +2398,7 @@ int startScan(char* args) {
++indexIP;
tAddr.s_addr = ntohl(i);
std::string res = string(inet_ntoa(tAddr));
std::string res = std::string(inet_ntoa(tAddr));
verboseProgress(gTargets--, res.c_str());
Threader::fireThread(res, (void*(*)(void))_connect);
}