mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-27 04:22:20 +00:00
--
This commit is contained in:
parent
2cbae2ce6d
commit
517484797c
@ -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"
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef BRUTEUTILS_H
|
||||
#define BRUTEUTILS_H
|
||||
|
||||
#include "externData.h"
|
||||
|
||||
class BruteUtils {
|
||||
|
||||
public:
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
12
Connector.h
12
Connector.h
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user