mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
Negative hit fix.
This commit is contained in:
parent
06b328cf66
commit
545c2d4c45
@ -231,17 +231,10 @@ int my_trace(CURL *handle, curl_infotype type,
|
|||||||
char *data, size_t size,
|
char *data, size_t size,
|
||||||
void *userp)
|
void *userp)
|
||||||
{
|
{
|
||||||
struct data *config = (struct data *)userp;
|
|
||||||
const char *text;
|
|
||||||
(void)handle; /* prevent compiler warning */
|
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case CURLINFO_HEADER_OUT:
|
case CURLINFO_HEADER_OUT:
|
||||||
if(MapWidgetOpened) stt->doEmitionAddOutData(QString("size"), QString(data));
|
data[strstr(data, "\r\n\r\n") - data] = '\0';
|
||||||
cout<<"Data: "<<data<<endl;
|
stt->doEmitionAddOutData(QString(data));
|
||||||
//fprintf(stderr, "== Info: %s", data);
|
|
||||||
default: /* in case a new one is introduced to shock us */
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -258,15 +251,16 @@ int Connector::nConnect(const char *ip, const int port, std::string *buffer,
|
|||||||
const std::vector<std::string> *customHeaders){
|
const std::vector<std::string> *customHeaders){
|
||||||
|
|
||||||
CURL *curl = curl_easy_init();
|
CURL *curl = curl_easy_init();
|
||||||
struct data config;
|
|
||||||
|
|
||||||
config.trace_ascii = 1; /* enable ascii tracing */
|
|
||||||
|
|
||||||
if (curl)
|
if (curl)
|
||||||
{
|
{
|
||||||
|
if (MapWidgetOpened) {
|
||||||
|
struct data config;
|
||||||
|
config.trace_ascii = 1; /* enable ascii tracing */
|
||||||
curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, my_trace);
|
curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, my_trace);
|
||||||
curl_easy_setopt(curl, CURLOPT_DEBUGDATA, &config);
|
curl_easy_setopt(curl, CURLOPT_DEBUGDATA, &config);
|
||||||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
|
}
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, ip);
|
curl_easy_setopt(curl, CURLOPT_URL, ip);
|
||||||
curl_easy_setopt(curl, CURLOPT_PORT, port);
|
curl_easy_setopt(curl, CURLOPT_PORT, port);
|
||||||
curl_easy_setopt(curl, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0");
|
curl_easy_setopt(curl, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0");
|
||||||
|
4
STh.cpp
4
STh.cpp
@ -20,9 +20,9 @@ void STh::doEmitionAddIncData(QString(ip), QString str)
|
|||||||
{
|
{
|
||||||
emit stt->sIncData(ip, str);
|
emit stt->sIncData(ip, str);
|
||||||
};
|
};
|
||||||
void STh::doEmitionAddOutData(QString ip, QString str)
|
void STh::doEmitionAddOutData( QString str)
|
||||||
{
|
{
|
||||||
emit stt->sOutData(ip, str);
|
emit stt->sOutData(str);
|
||||||
};
|
};
|
||||||
void STh::doEmitionIPRANGE(QString str)
|
void STh::doEmitionIPRANGE(QString str)
|
||||||
{
|
{
|
||||||
|
4
STh.h
4
STh.h
@ -18,7 +18,7 @@ public:
|
|||||||
static void doEmitionStartScanDNS();
|
static void doEmitionStartScanDNS();
|
||||||
static void doEmitionStartScanImport();
|
static void doEmitionStartScanImport();
|
||||||
static void doEmitionAddIncData(QString ip, QString str);
|
static void doEmitionAddIncData(QString ip, QString str);
|
||||||
static void doEmitionAddOutData(QString ip, QString str);
|
static void doEmitionAddOutData(QString str);
|
||||||
static void doEmition_BAGreenData(QString str);
|
static void doEmition_BAGreenData(QString str);
|
||||||
static void doEmition_BARedData(QString str);
|
static void doEmition_BARedData(QString str);
|
||||||
static void doEmitionIPRANGE(QString str);
|
static void doEmitionIPRANGE(QString str);
|
||||||
@ -62,7 +62,7 @@ public: signals: void changeStatus(QString);
|
|||||||
public: signals: void changeTargetsLeft(QString);
|
public: signals: void changeTargetsLeft(QString);
|
||||||
public: signals: void killSttThread();
|
public: signals: void killSttThread();
|
||||||
public: signals: void sIncData(QString, QString);
|
public: signals: void sIncData(QString, QString);
|
||||||
public: signals: void sOutData(QString, QString);
|
public: signals: void sOutData(QString);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void run();
|
void run();
|
||||||
|
@ -218,7 +218,7 @@ void _baSSLWorker(char *ip, char *request, char *rvBuff)
|
|||||||
if(SSL_connect(ssl))
|
if(SSL_connect(ssl))
|
||||||
{
|
{
|
||||||
SSL_write(ssl, request, strlen(request));
|
SSL_write(ssl, request, strlen(request));
|
||||||
if(MapWidgetOpened) stt->doEmitionAddOutData(QString(ip), QString(request));
|
if(MapWidgetOpened) stt->doEmitionAddOutData(QString(request));
|
||||||
|
|
||||||
char tempBuff[128] = {0};
|
char tempBuff[128] = {0};
|
||||||
int x = 1;
|
int x = 1;
|
||||||
@ -465,7 +465,7 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
|
|||||||
|
|
||||||
if(send(sock, hRqst, strlen(hRqst), 0) != SOCKET_ERROR) {
|
if(send(sock, hRqst, strlen(hRqst), 0) != SOCKET_ERROR) {
|
||||||
|
|
||||||
if(MapWidgetOpened) stt->doEmitionAddOutData(QString(ip), QString(hRqst));
|
if(MapWidgetOpened) stt->doEmitionAddOutData(QString(hRqst));
|
||||||
ZeroMemory(headerMsg, REQUEST_MAX_SIZE);
|
ZeroMemory(headerMsg, REQUEST_MAX_SIZE);
|
||||||
int x = 1;
|
int x = 1;
|
||||||
int xx = 0;
|
int xx = 0;
|
||||||
@ -722,7 +722,7 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
|
|||||||
|
|
||||||
if (send(sock, request, strlen(request), 0) != SOCKET_ERROR)
|
if (send(sock, request, strlen(request), 0) != SOCKET_ERROR)
|
||||||
{
|
{
|
||||||
if (MapWidgetOpened) stt->doEmitionAddOutData(QString(ip), QString(request));
|
if (MapWidgetOpened) stt->doEmitionAddOutData(QString(request));
|
||||||
dataSz = 0;
|
dataSz = 0;
|
||||||
ZeroMemory(recvBuff2, sizeof(recvBuff2));
|
ZeroMemory(recvBuff2, sizeof(recvBuff2));
|
||||||
ZeroMemory(recvBuff, sizeof(recvBuff));
|
ZeroMemory(recvBuff, sizeof(recvBuff));
|
||||||
@ -1084,7 +1084,7 @@ lopaStr _FTPBrute(char *ip, int port, PathStr *ps)
|
|||||||
strcat(request, "\r\n");
|
strcat(request, "\r\n");
|
||||||
if(send(sockFTP, request, strlen(request), 0) != SOCKET_ERROR)
|
if(send(sockFTP, request, strlen(request), 0) != SOCKET_ERROR)
|
||||||
{
|
{
|
||||||
if(MapWidgetOpened) stt->doEmitionAddOutData(QString(ip), QString(request));
|
if(MapWidgetOpened) stt->doEmitionAddOutData(QString(request));
|
||||||
Activity += strlen(request);
|
Activity += strlen(request);
|
||||||
|
|
||||||
ZeroMemory(request, sizeof(request));
|
ZeroMemory(request, sizeof(request));
|
||||||
@ -1128,7 +1128,7 @@ lopaStr _FTPBrute(char *ip, int port, PathStr *ps)
|
|||||||
strcat(request, "\r\n");
|
strcat(request, "\r\n");
|
||||||
if(send(sockFTP, request, strlen(request), 0) != SOCKET_ERROR)
|
if(send(sockFTP, request, strlen(request), 0) != SOCKET_ERROR)
|
||||||
{
|
{
|
||||||
if(MapWidgetOpened) stt->doEmitionAddOutData(QString(ip), QString(request));
|
if(MapWidgetOpened) stt->doEmitionAddOutData(QString(request));
|
||||||
|
|
||||||
Activity += strlen(request);
|
Activity += strlen(request);
|
||||||
ZeroMemory(request, sizeof(request));
|
ZeroMemory(request, sizeof(request));
|
||||||
@ -1396,7 +1396,7 @@ int _webLoginSeq(char *request, char *login, char *pass, char *ip, int port, int
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(MapWidgetOpened) stt->doEmitionAddOutData(QString(ip), QString(request));
|
if(MapWidgetOpened) stt->doEmitionAddOutData(QString(request));
|
||||||
int x = 1;
|
int x = 1;
|
||||||
int xx = 0;
|
int xx = 0;
|
||||||
ZeroMemory(recvBuff2, sizeof(recvBuff2));
|
ZeroMemory(recvBuff2, sizeof(recvBuff2));
|
||||||
|
@ -17,6 +17,7 @@ extern void getSubStr(char *src, char *startStr, char *endStr, char *dest, int s
|
|||||||
extern void getSubStrEx(char *src, char *startStr, char *endStr, char *dest, int szDest);
|
extern void getSubStrEx(char *src, char *startStr, char *endStr, char *dest, int szDest);
|
||||||
extern std::string xcode(LPCSTR src, UINT srcCodePage, UINT dstCodePage);
|
extern std::string xcode(LPCSTR src, UINT srcCodePage, UINT dstCodePage);
|
||||||
extern void _SaveBackupToFile();
|
extern void _SaveBackupToFile();
|
||||||
|
extern char *_findFirst(const char *str, char *delim);
|
||||||
//extern int nConnect(char *ip, int port, std::string *buffer);
|
//extern int nConnect(char *ip, int port, std::string *buffer);
|
||||||
|
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ int globalSearchNeg(const char *buffcpy, char *ip, int port)
|
|||||||
char negWord[256] = {0};
|
char negWord[256] = {0};
|
||||||
for(int i = 0; i < GlobalNegativeSize; ++i)
|
for(int i = 0; i < GlobalNegativeSize; ++i)
|
||||||
{
|
{
|
||||||
if(!globalScanFlag) break;
|
if(!globalScanFlag) return -1;
|
||||||
|
|
||||||
strcpy(negWord, GlobalNegatives[i]);
|
strcpy(negWord, GlobalNegatives[i]);
|
||||||
if(strstr(buffcpy, negWord) != NULL)
|
if(strstr(buffcpy, negWord) != NULL)
|
||||||
@ -213,10 +213,8 @@ int globalSearchNeg(const char *buffcpy, char *ip, int port)
|
|||||||
return -1;
|
return -1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ZeroMemory(negWord, 256);
|
ZeroMemory(negWord, 256);
|
||||||
};
|
};
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int globalSearchPrnt(const char *buffcpy)
|
int globalSearchPrnt(const char *buffcpy)
|
||||||
@ -335,7 +333,8 @@ int sharedDetector(char * ip, int port, const char *buffcpy) {
|
|||||||
|
|
||||||
if(globalSearchNeg(buffcpy, ip, port) == -1) return -1;
|
if(globalSearchNeg(buffcpy, ip, port) == -1) return -1;
|
||||||
if(globalSearchPrnt(buffcpy) == -1) return -1;
|
if(globalSearchPrnt(buffcpy) == -1) return -1;
|
||||||
if(strstr(buffcpy, "<form ") != NULL && strstr(buffcpy, "302 found") == NULL) return 10;
|
//if(strstr(buffcpy, "<form ") != NULL && strstr(buffcpy, "302 found") == NULL) return 10;
|
||||||
|
//nic.sucks, ...
|
||||||
|
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
@ -2687,11 +2686,13 @@ int Lexems::_header(char *ip, int port, const char str[], Lexems *l, PathStr *ps
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (redirStr[0] != '#') {
|
||||||
if (std::find(redirStrLst->begin(), redirStrLst->end(), redirStr) == redirStrLst->end())
|
if (std::find(redirStrLst->begin(), redirStrLst->end(), redirStr) == redirStrLst->end())
|
||||||
{
|
{
|
||||||
redirStrLst->push_back(redirStr);
|
redirStrLst->push_back(redirStr);
|
||||||
return redirectReconnect(ps->cookie, ip, port, redirStr, l, ps, redirStrLst, rBuff);
|
return redirectReconnect(ps->cookie, ip, port, redirStr, l, ps, redirStrLst, rBuff);
|
||||||
} return -1;
|
} return -1;
|
||||||
|
}
|
||||||
return -2;
|
return -2;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
Adapto CMS
|
Adapto CMS
|
||||||
|
Account unavailable
|
||||||
баланс
|
баланс
|
||||||
средств
|
средств
|
||||||
на вашем счету
|
на вашем счету
|
||||||
@ -7,6 +8,7 @@ RFB 009
|
|||||||
00;39;49mroot:
|
00;39;49mroot:
|
||||||
Authorization Required
|
Authorization Required
|
||||||
.swf
|
.swf
|
||||||
|
покуп
|
||||||
yadro.ru
|
yadro.ru
|
||||||
liveinternet
|
liveinternet
|
||||||
#[Dlink]
|
#[Dlink]
|
||||||
@ -40,6 +42,7 @@ Content-Encoding: gzip
|
|||||||
no connections allowed
|
no connections allowed
|
||||||
pocket-solution
|
pocket-solution
|
||||||
trustclick
|
trustclick
|
||||||
|
торг
|
||||||
#[/Dlink]
|
#[/Dlink]
|
||||||
530 User access denied
|
530 User access denied
|
||||||
prelogin
|
prelogin
|
||||||
@ -791,8 +794,6 @@ page does not exist
|
|||||||
дешев
|
дешев
|
||||||
дешёв
|
дешёв
|
||||||
pm2-web
|
pm2-web
|
||||||
домен продается
|
|
||||||
домены на продажу
|
|
||||||
доставка
|
доставка
|
||||||
заказать доставку
|
заказать доставку
|
||||||
заработок в сети
|
заработок в сети
|
||||||
@ -834,12 +835,12 @@ pm2-web
|
|||||||
Seo
|
Seo
|
||||||
подписаться
|
подписаться
|
||||||
поиск работы
|
поиск работы
|
||||||
приколы
|
прикол
|
||||||
продукция
|
продукция
|
||||||
производство
|
производств
|
||||||
процесі розробки
|
процесі розробки
|
||||||
работа в интернете
|
работа в интернете
|
||||||
регистрации доменных имен
|
регистрации доменных
|
||||||
рекламные ссылки
|
рекламные ссылки
|
||||||
ремонт
|
ремонт
|
||||||
сайт в разработке
|
сайт в разработке
|
||||||
@ -849,6 +850,7 @@ Seo
|
|||||||
сайт на разработке
|
сайт на разработке
|
||||||
связь с нами
|
связь с нами
|
||||||
скидк
|
скидк
|
||||||
|
раскрут
|
||||||
скоро открытие
|
скоро открытие
|
||||||
служба поддержки
|
служба поддержки
|
||||||
создание недорогих сайтов
|
создание недорогих сайтов
|
||||||
@ -856,25 +858,22 @@ Seo
|
|||||||
спонсоры
|
спонсоры
|
||||||
стартовая страни
|
стартовая страни
|
||||||
стихи
|
стихи
|
||||||
тестовая страница
|
тестовая страни
|
||||||
технические работы
|
технические работы
|
||||||
услуги
|
услуги
|
||||||
флешки
|
флешки
|
||||||
Произошла ошибка
|
ошибка
|
||||||
на хостинге
|
на хостинге
|
||||||
Fatal error:
|
Fatal error:
|
||||||
mc.yandex.ru/watch
|
mc.yandex.ru
|
||||||
mc.yandex.ru/metrika
|
|
||||||
UNKNOWN HOST
|
UNKNOWN HOST
|
||||||
host not found
|
host not found
|
||||||
Сайт закрыт
|
Сайт закрыт
|
||||||
?partner
|
?partner
|
||||||
хокке
|
хокке
|
||||||
|
|
||||||
добро пожаловать в
|
добро пожаловать в
|
||||||
статусы
|
статусы
|
||||||
высказывани
|
высказывани
|
||||||
|
|
||||||
флэшки
|
флэшки
|
||||||
футбол
|
футбол
|
||||||
юмор
|
юмор
|
||||||
|
14
nesca_3.cpp
14
nesca_3.cpp
@ -1599,9 +1599,9 @@ bool nesca_3::eventFilter(QObject* obj, QEvent *event)
|
|||||||
};
|
};
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (obj == qwm)
|
// else if (obj == qwm)
|
||||||
{
|
// {
|
||||||
///TODO: raise parent window with qwm
|
// ///TODO: raise parent window with qwm
|
||||||
// if(event->type() == QEvent::MouseButtonPress)
|
// if(event->type() == QEvent::MouseButtonPress)
|
||||||
// {
|
// {
|
||||||
// Qt::WindowFlags eFlags = windowFlags ();
|
// Qt::WindowFlags eFlags = windowFlags ();
|
||||||
@ -1609,7 +1609,7 @@ bool nesca_3::eventFilter(QObject* obj, QEvent *event)
|
|||||||
// setWindowFlags(eFlags);
|
// setWindowFlags(eFlags);
|
||||||
// return true;
|
// return true;
|
||||||
// };
|
// };
|
||||||
}
|
// }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (event->type() == QEvent::KeyPress)
|
if (event->type() == QEvent::KeyPress)
|
||||||
@ -2196,7 +2196,7 @@ void nesca_3::slotShowNicks()
|
|||||||
QRegExp _rOutProt(" HTTP/1.\\d+");
|
QRegExp _rOutProt(" HTTP/1.\\d+");
|
||||||
QRegExp _rOutPath(" /(\\w|\\.|,|/|:|-|_|\\?|!|\\@|#|\\$|%|\\^|&|\\*|\\(|\\)|=|\\+|<|>|;|:|\"|'|~|\\[|\\])* ");
|
QRegExp _rOutPath(" /(\\w|\\.|,|/|:|-|_|\\?|!|\\@|#|\\$|%|\\^|&|\\*|\\(|\\)|=|\\+|<|>|;|:|\"|'|~|\\[|\\])* ");
|
||||||
QRegExp _rOutHost("Host: ((\\w|\\d|\\.|:|/)*)\\r\\n");
|
QRegExp _rOutHost("Host: ((\\w|\\d|\\.|:|/)*)\\r\\n");
|
||||||
void nesca_3::slotOutData(QString ip, QString str)
|
void nesca_3::slotOutData(QString str)
|
||||||
{
|
{
|
||||||
if(SendData != NULL)
|
if(SendData != NULL)
|
||||||
{
|
{
|
||||||
@ -2227,7 +2227,7 @@ void nesca_3::slotOutData(QString ip, QString str)
|
|||||||
if(prot.size() > 0) str.replace(prot, "<font color=\"GoldenRod\">" + prot + "</font>");
|
if(prot.size() > 0) str.replace(prot, "<font color=\"GoldenRod\">" + prot + "</font>");
|
||||||
str.replace("\r\n", "<br>");
|
str.replace("\r\n", "<br>");
|
||||||
|
|
||||||
SendData->append("<font color=\"#F0FFFF\">[" + ip + "]</font><br>" + str + "<hr><br>");
|
SendData->append("<br>" + str + "<hr><br>");
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2892,7 +2892,7 @@ void nesca_3::ConnectEvrthng()
|
|||||||
connect ( stt, SIGNAL(startScanDNS()), this, SLOT(DNSScanSeq()));
|
connect ( stt, SIGNAL(startScanDNS()), this, SLOT(DNSScanSeq()));
|
||||||
connect ( stt, SIGNAL(startScanImport()), this, SLOT(ImportScanSeq()));
|
connect ( stt, SIGNAL(startScanImport()), this, SLOT(ImportScanSeq()));
|
||||||
connect ( stt, SIGNAL(sIncData(QString, QString)), this, SLOT(slotIncData(QString, QString)));
|
connect ( stt, SIGNAL(sIncData(QString, QString)), this, SLOT(slotIncData(QString, QString)));
|
||||||
connect ( stt, SIGNAL(sOutData(QString, QString)), this, SLOT(slotOutData(QString, QString)));
|
connect ( stt, SIGNAL(sOutData(QString)), this, SLOT(slotOutData(QString)));
|
||||||
connect ( stt, SIGNAL(changeDebugFoundData(QString)), this, SLOT(appendDebugText(QString)));
|
connect ( stt, SIGNAL(changeDebugFoundData(QString)), this, SLOT(appendDebugText(QString)));
|
||||||
connect ( stt, SIGNAL(changeYellowFoundData(QString)), this, SLOT(appendNotifyText(QString)));
|
connect ( stt, SIGNAL(changeYellowFoundData(QString)), this, SLOT(appendNotifyText(QString)));
|
||||||
connect ( stt, SIGNAL(changeRedFoundData(QString)), this, SLOT(appendErrText(QString)));
|
connect ( stt, SIGNAL(changeRedFoundData(QString)), this, SLOT(appendErrText(QString)));
|
||||||
|
@ -85,7 +85,7 @@ protected:
|
|||||||
void ImportScanSeq();
|
void ImportScanSeq();
|
||||||
void smReaction();
|
void smReaction();
|
||||||
void slotShowDataflow();
|
void slotShowDataflow();
|
||||||
void slotOutData(QString ip, QString str);
|
void slotOutData(QString str);
|
||||||
void slotIncData(QString ip, QString str);
|
void slotIncData(QString ip, QString str);
|
||||||
void slotShowServerMsg(QString str);
|
void slotShowServerMsg(QString str);
|
||||||
void slotSaveImage();
|
void slotSaveImage();
|
||||||
|
Loading…
Reference in New Issue
Block a user