mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
Multiple fixes
This commit is contained in:
parent
14028ec84f
commit
5d30af667b
@ -1,9 +1,9 @@
|
|||||||
#include "ActivityDrawerTh_HorNet.h"
|
#include "ActivityDrawerTh_HorNet.h"
|
||||||
#include "STh.h"
|
#include "STh.h"
|
||||||
|
|
||||||
void ActivityDrawerTh_HorNet::doEmitDrawActivityLine()
|
void ActivityDrawerTh_HorNet::doEmitDrawActivityLine(QString data)
|
||||||
{
|
{
|
||||||
emit adtHN->sDrawActivityLine();
|
emit adtHN->sDrawActivityLine(data);
|
||||||
};
|
};
|
||||||
void ActivityDrawerTh_HorNet::doEmitDrawGrid()
|
void ActivityDrawerTh_HorNet::doEmitDrawGrid()
|
||||||
{
|
{
|
||||||
@ -23,14 +23,15 @@ void ActivityDrawerTh_HorNet::run()
|
|||||||
{
|
{
|
||||||
adtHN->doEmitDrawGrid();
|
adtHN->doEmitDrawGrid();
|
||||||
int maxAct = Activity + 1;
|
int maxAct = Activity + 1;
|
||||||
|
int nm = 0;
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
if(maxAct < Activity) maxAct = Activity;
|
if(maxAct < Activity) maxAct = Activity;
|
||||||
int nm = maxAct-=5;
|
if(maxAct > 1000) nm = maxAct-=1000;
|
||||||
|
else if(maxAct > 10) nm = maxAct-=10;
|
||||||
makeActLine(((float)Activity/(nm != 0 ? nm : 1)) * 10);
|
makeActLine(((float)Activity/(nm != 0 ? nm : 1)) * 10);
|
||||||
stt->doEmitionSetActivityValue(QString::number(Activity) + "b");
|
adtHN->doEmitDrawActivityLine(QString::number(Activity) + "b");
|
||||||
Activity = 0;
|
Activity = 0;
|
||||||
adtHN->doEmitDrawActivityLine();
|
|
||||||
msleep(130);
|
msleep(130);
|
||||||
};
|
};
|
||||||
};
|
};
|
@ -8,11 +8,11 @@ class ActivityDrawerTh_HorNet : public QThread
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public: signals: void sDrawActivityLine();
|
public: signals: void sDrawActivityLine(QString);
|
||||||
public: signals: void sDrawGrid();
|
public: signals: void sDrawGrid();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void doEmitDrawActivityLine();
|
static void doEmitDrawActivityLine(QString data);
|
||||||
static void doEmitDrawGrid();
|
static void doEmitDrawGrid();
|
||||||
protected:
|
protected:
|
||||||
void run();
|
void run();
|
||||||
|
@ -4,9 +4,9 @@ void DrawerTh_VoiceScanner::doEmitAddLine()
|
|||||||
{
|
{
|
||||||
emit vsTh->sAddLine();
|
emit vsTh->sAddLine();
|
||||||
};
|
};
|
||||||
void DrawerTh_VoiceScanner::doEmitDrawGrid()
|
void DrawerTh_VoiceScanner::doEmitDrawGrid(int factor)
|
||||||
{
|
{
|
||||||
emit vsTh->sDrawGrid();
|
emit vsTh->sDrawGrid(factor);
|
||||||
};
|
};
|
||||||
void DrawerTh_VoiceScanner::doEmitDrawTextPlacers()
|
void DrawerTh_VoiceScanner::doEmitDrawTextPlacers()
|
||||||
{
|
{
|
||||||
@ -97,7 +97,7 @@ void makeVoiceLine(int Al, int An, int Bd, int Sp, int Lo, int var, int Ovl, int
|
|||||||
};
|
};
|
||||||
void DrawerTh_VoiceScanner::run()
|
void DrawerTh_VoiceScanner::run()
|
||||||
{
|
{
|
||||||
vsTh->doEmitDrawGrid();
|
vsTh->doEmitDrawGrid(150);
|
||||||
vsTh->doEmitDrawTextPlacers();
|
vsTh->doEmitDrawTextPlacers();
|
||||||
while(VoiceScanFlag)
|
while(VoiceScanFlag)
|
||||||
{
|
{
|
||||||
|
@ -11,11 +11,11 @@ class DrawerTh_VoiceScanner : public QThread
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
public: signals: void sAddLine();
|
public: signals: void sAddLine();
|
||||||
public: signals: void sDrawGrid();
|
public: signals: void sDrawGrid(int factor);
|
||||||
public: signals: void sDrawTextPlacers();
|
public: signals: void sDrawTextPlacers();
|
||||||
public:
|
public:
|
||||||
void doEmitAddLine();
|
void doEmitAddLine();
|
||||||
void doEmitDrawGrid();
|
void doEmitDrawGrid(int factor);
|
||||||
void doEmitDrawTextPlacers();
|
void doEmitDrawTextPlacers();
|
||||||
protected:
|
protected:
|
||||||
void run();
|
void run();
|
||||||
|
9
STh.cpp
9
STh.cpp
@ -88,15 +88,14 @@ void STh::doEmitionChangeBA(QString str)
|
|||||||
{
|
{
|
||||||
emit stt->changeBAValue(str);
|
emit stt->changeBAValue(str);
|
||||||
};
|
};
|
||||||
void STh::doEmitionSetActivityValue(QString str)
|
|
||||||
{
|
|
||||||
emit stt->SetActivityValue(str);
|
|
||||||
};
|
|
||||||
void STh::doEmitionOffline(QString str)
|
void STh::doEmitionOffline(QString str)
|
||||||
{
|
{
|
||||||
emit stt->changeOffline(str);
|
emit stt->changeOffline(str);
|
||||||
};
|
};
|
||||||
|
void STh::doEmitionDataSaved(bool status)
|
||||||
|
{
|
||||||
|
emit stt->signalDataSaved(status);
|
||||||
|
};
|
||||||
void STh::run()
|
void STh::run()
|
||||||
{
|
{
|
||||||
startScan(inputStr);
|
startScan(inputStr);
|
||||||
|
7
STh.h
7
STh.h
@ -11,6 +11,7 @@ class STh : public QThread
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
static void doEmitionDataSaved(bool status);
|
||||||
static void doEmitionStartScanIP();
|
static void doEmitionStartScanIP();
|
||||||
static void doEmitionStartScanDNS();
|
static void doEmitionStartScanDNS();
|
||||||
static void doEmitionStartScanImport();
|
static void doEmitionStartScanImport();
|
||||||
@ -32,18 +33,16 @@ public:
|
|||||||
static void doEmitionChangeBA(QString);
|
static void doEmitionChangeBA(QString);
|
||||||
static void doEmitionOffline(QString);
|
static void doEmitionOffline(QString);
|
||||||
static void doEmitionBAData(QString str);
|
static void doEmitionBAData(QString str);
|
||||||
static void doEmitionSetActivityValue(QString);
|
|
||||||
static void doEmitionDebugFoundData(QString);
|
static void doEmitionDebugFoundData(QString);
|
||||||
static void doEmitionShowRedVersion();
|
static void doEmitionShowRedVersion();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
|
|
||||||
public: signals: void showRedVersion();
|
public: signals: void showRedVersion();
|
||||||
public: signals: void startScanIP();
|
public: signals: void startScanIP();
|
||||||
public: signals: void startScanDNS();
|
public: signals: void startScanDNS();
|
||||||
public: signals: void startScanImport();
|
public: signals: void startScanImport();
|
||||||
|
|
||||||
public: signals: void SetActivityValue(QString);
|
public: signals: void signalDataSaved(bool);
|
||||||
public: signals: void changeGreenBAData(QString);
|
public: signals: void changeGreenBAData(QString);
|
||||||
public: signals: void changeRedBAData(QString);
|
public: signals: void changeRedBAData(QString);
|
||||||
public: signals: void changeBAData(QString);
|
public: signals: void changeBAData(QString);
|
||||||
|
919
connector.cpp
919
connector.cpp
File diff suppressed because it is too large
Load Diff
29
darkmap.h
29
darkmap.h
@ -1,29 +0,0 @@
|
|||||||
#ifndef DARKMAP_H
|
|
||||||
#define DARKMAP_H
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
#include "nesca_3.h"
|
|
||||||
#include "resource.h"
|
|
||||||
|
|
||||||
class DarkMap : public QThread
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
|
||||||
static int cou;
|
|
||||||
static int qwmGrWidth;
|
|
||||||
static int qwmGrHeight;
|
|
||||||
static void doEmitionDrawText();
|
|
||||||
|
|
||||||
public: signals: void sDrawText();
|
|
||||||
|
|
||||||
public:
|
|
||||||
void doEmitDrawText();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void run();
|
|
||||||
};
|
|
||||||
|
|
||||||
extern DarkMap *dmTh;
|
|
||||||
|
|
||||||
#endif // DARKMAP_H
|
|
1123
finder.cpp
1123
finder.cpp
File diff suppressed because it is too large
Load Diff
@ -1,23 +1,39 @@
|
|||||||
530 User access denied
|
#[Dlink]
|
||||||
|
session_login.php?reload=1
|
||||||
|
atwiki
|
||||||
|
no connections allowed
|
||||||
|
pocket-solution
|
||||||
|
trustclick
|
||||||
|
#[/Dlink]
|
||||||
|
530 User access denied
|
||||||
prelogin
|
prelogin
|
||||||
service temporarily unavailable
|
service temporarily unavailable
|
||||||
service is temporary unavailable
|
service is temporary unavailable
|
||||||
service unavailable
|
service unavailable
|
||||||
403 - forbidden
|
403 - forbidden
|
||||||
403 access denied
|
403 access denied
|
||||||
|
is still available
|
||||||
|
php framework
|
||||||
|
BlueBean
|
||||||
403 forbidden
|
403 forbidden
|
||||||
|
"./cgi-bin/start.cgi?UID=-1&TEMP="
|
||||||
408 request time-out
|
408 request time-out
|
||||||
421 service not available
|
421 service not available
|
||||||
500 - internal server error
|
500 - internal server error
|
||||||
505 http version
|
505 http version
|
||||||
Comming Soon
|
Comming Soon
|
||||||
|
is sample html
|
||||||
google_ad_client
|
google_ad_client
|
||||||
/js/thickbox.js
|
/js/thickbox.js
|
||||||
google_ad_slot
|
google_ad_slot
|
||||||
|
plone
|
||||||
|
openmail
|
||||||
|
institute
|
||||||
google-analytics.com
|
google-analytics.com
|
||||||
googlesyndication
|
googlesyndication
|
||||||
temporarily offline
|
temporarily offline
|
||||||
temporarily unavailable
|
temporarily unavailable
|
||||||
|
MELOOK
|
||||||
>log in
|
>log in
|
||||||
.js_check.html
|
.js_check.html
|
||||||
/about-our-site.html
|
/about-our-site.html
|
||||||
@ -207,7 +223,6 @@ create new account
|
|||||||
credit
|
credit
|
||||||
currently measuring
|
currently measuring
|
||||||
currently unreachable
|
currently unreachable
|
||||||
customer
|
|
||||||
cs3 dreamweaver
|
cs3 dreamweaver
|
||||||
FrontPage
|
FrontPage
|
||||||
TESTPAGE
|
TESTPAGE
|
||||||
@ -255,7 +270,8 @@ Dreamweaver MX
|
|||||||
due to maintance
|
due to maintance
|
||||||
dsnextgen.com
|
dsnextgen.com
|
||||||
dsparking.com
|
dsparking.com
|
||||||
dvr
|
DATA LAN DISK
|
||||||
|
TEST SITE
|
||||||
dxclient
|
dxclient
|
||||||
eap web interface
|
eap web interface
|
||||||
echolife
|
echolife
|
||||||
@ -268,6 +284,7 @@ enigma web interface
|
|||||||
entertainment
|
entertainment
|
||||||
equipe ahcom
|
equipe ahcom
|
||||||
erro ao resolver
|
erro ao resolver
|
||||||
|
The requested URL
|
||||||
error.asp
|
error.asp
|
||||||
empty page
|
empty page
|
||||||
errors.umi-cms.ru
|
errors.umi-cms.ru
|
||||||
@ -299,13 +316,14 @@ gaiyou
|
|||||||
glassfish server
|
glassfish server
|
||||||
globesurfer
|
globesurfer
|
||||||
gmbh
|
gmbh
|
||||||
grupo industrial
|
industrial
|
||||||
|
help.html
|
||||||
|
market
|
||||||
guarantee
|
guarantee
|
||||||
h.264
|
h.264
|
||||||
h264
|
h264
|
||||||
hc.ru
|
hc.ru
|
||||||
hectrix ltd
|
hectrix ltd
|
||||||
hikvision-webs
|
|
||||||
hipname
|
hipname
|
||||||
hipoteka
|
hipoteka
|
||||||
hitron technologies
|
hitron technologies
|
||||||
@ -341,7 +359,7 @@ into the public_html directory
|
|||||||
invalid url
|
invalid url
|
||||||
iomega
|
iomega
|
||||||
iis windows
|
iis windows
|
||||||
ip surveillance
|
customer
|
||||||
is functioning normally
|
is functioning normally
|
||||||
is under construction
|
is under construction
|
||||||
ispmanager control panel
|
ispmanager control panel
|
||||||
@ -368,10 +386,23 @@ login page
|
|||||||
login para acesso
|
login para acesso
|
||||||
logistics
|
logistics
|
||||||
lvrweb
|
lvrweb
|
||||||
|
epanel
|
||||||
|
commerc
|
||||||
|
official website
|
||||||
|
WebFig
|
||||||
|
in manutenzione
|
||||||
|
Domain is not authorized
|
||||||
|
in costruzione
|
||||||
mail_manager
|
mail_manager
|
||||||
magnesium
|
magnesium
|
||||||
management console
|
management console
|
||||||
mbanking
|
mbanking
|
||||||
|
olaHola
|
||||||
|
Wireless N ADSL
|
||||||
|
Account Suspended
|
||||||
|
Session limit reached
|
||||||
|
Access Error: Access Denied
|
||||||
|
Aethra
|
||||||
meble
|
meble
|
||||||
microsoft exchange
|
microsoft exchange
|
||||||
mijn account
|
mijn account
|
||||||
@ -381,7 +412,6 @@ mobile_viewer_login
|
|||||||
mobile login
|
mobile login
|
||||||
Mobile Parking
|
Mobile Parking
|
||||||
modem (administrator
|
modem (administrator
|
||||||
mshtml
|
|
||||||
m&w
|
m&w
|
||||||
munin
|
munin
|
||||||
my account
|
my account
|
||||||
|
184
nesca_3.cpp
184
nesca_3.cpp
@ -456,8 +456,13 @@ void SetValidators()
|
|||||||
ui->iptoLine_value->setValidator(validator);
|
ui->iptoLine_value->setValidator(validator);
|
||||||
ui->iptoLine_value_2->setValidator(validator);
|
ui->iptoLine_value_2->setValidator(validator);
|
||||||
ui->iptoLine_value_3->setValidator(validator);
|
ui->iptoLine_value_3->setValidator(validator);
|
||||||
|
ui->maxBrutingThrBox->setValidator(validator);
|
||||||
|
|
||||||
validator = new QRegExpValidator(QRegExp("(\\w|-|\\.|\\[|\\])+"), NULL);
|
validator = new QRegExpValidator(QRegExp("\\d{1,5}"), NULL);
|
||||||
|
ui->PingTO->setValidator(validator);
|
||||||
|
ui->threadDelayBox->setValidator(validator);
|
||||||
|
|
||||||
|
validator = new QRegExpValidator(QRegExp("(\\w|-|\\.|\\[|\\]|\\\\)+"), NULL);
|
||||||
ui->lineEditStartIPDNS->setValidator(validator);
|
ui->lineEditStartIPDNS->setValidator(validator);
|
||||||
|
|
||||||
validator = new QRegExpValidator(QRegExp("(\\w|-|\\.)+((\\w|-|\\.)+)+"), NULL);
|
validator = new QRegExpValidator(QRegExp("(\\w|-|\\.)+((\\w|-|\\.)+)+"), NULL);
|
||||||
@ -782,25 +787,43 @@ void nesca_3::slotDrawActivityGrid()
|
|||||||
int gWidth = ui->graphicActivityGrid->width();
|
int gWidth = ui->graphicActivityGrid->width();
|
||||||
int gHeight = ui->graphicActivityGrid->height();
|
int gHeight = ui->graphicActivityGrid->height();
|
||||||
|
|
||||||
//Horizontal
|
|
||||||
int th = 0;
|
|
||||||
for(int i = 0; i < 16; i+=2)
|
|
||||||
{
|
|
||||||
th = gHeight - i;
|
|
||||||
sceneActivityGrid->addLine(0, th, gWidth, th, penActivity);
|
|
||||||
};
|
|
||||||
|
|
||||||
//Vertical
|
//Vertical
|
||||||
for(int i = 0; i < 100; i+=10)
|
for(int i = 0; i < 100; i+=10)
|
||||||
{
|
{
|
||||||
sceneActivityGrid->addLine(i, 0, i, gHeight, penActivity);
|
sceneActivityGrid->addLine(i, 0, i, gHeight, penActivity);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
void nesca_3::slotDrawVoiceGrid()
|
|
||||||
|
void nesca_3::slotDrawActivityLine(QString data)
|
||||||
|
{
|
||||||
|
sceneActivity->clear();
|
||||||
|
|
||||||
|
QPen penActivity(QColor(255, 255, 255), 0.3);
|
||||||
|
int as = 0;
|
||||||
|
|
||||||
|
for(int i = 1; i < actLst.size(); ++i)
|
||||||
|
{
|
||||||
|
as += 2;
|
||||||
|
int al1 = actLst[i];
|
||||||
|
int al12 = actLst[i-1];
|
||||||
|
int yy = 16 - actLst[i - 1];
|
||||||
|
int yy2 = 16 - actLst[i];
|
||||||
|
|
||||||
|
sceneActivity->addLine(as - 2, 16 - actLst[i - 1], as, 16 - actLst[i], penActivity);
|
||||||
|
};
|
||||||
|
QFont fnt;
|
||||||
|
fnt.setFamily("Eurostile");
|
||||||
|
fnt.setPixelSize(9);
|
||||||
|
QGraphicsTextItem *titem = sceneActivity->addText(data, fnt);
|
||||||
|
titem->setX(43 - data.length()*2);
|
||||||
|
titem->setY(-5);
|
||||||
|
titem->setDefaultTextColor(QColor(255, 255, 255, 80));
|
||||||
|
};
|
||||||
|
void nesca_3::slotDrawVoiceGrid(int factor)
|
||||||
{
|
{
|
||||||
sceneGrid->clear();
|
sceneGrid->clear();
|
||||||
QPen penActivity(QColor(170, 170, 170, 150), 0.1);
|
QPen penActivity(QColor(170, 170, 170, factor), 0.1);
|
||||||
QPen rpenActivity(QColor(255, 0, 0, 150), 0.1);
|
QPen rpenActivity(QColor(255, 0, 0, factor), 0.1);
|
||||||
|
|
||||||
int gWidth = ui->graphicLog->width();
|
int gWidth = ui->graphicLog->width();
|
||||||
int gHeight = ui->graphicLog->height();
|
int gHeight = ui->graphicLog->height();
|
||||||
@ -820,18 +843,6 @@ void nesca_3::slotDrawVoiceGrid()
|
|||||||
sceneGrid->addLine(i, 0, i, gHeight, penActivity);
|
sceneGrid->addLine(i, 0, i, gHeight, penActivity);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
void nesca_3::slotDrawActivityLine()
|
|
||||||
{
|
|
||||||
sceneActivity->clear();
|
|
||||||
QPen penActivity(QColor(255, 255, 255), 0.3);
|
|
||||||
int as = 0;
|
|
||||||
|
|
||||||
for(int i = 1; i < actLst.size(); ++i)
|
|
||||||
{
|
|
||||||
as += 2;
|
|
||||||
sceneActivity->addLine(as - 2, 16 - actLst[i - 1] - 1, as, 16 - actLst[i] - 1, penActivity);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
void nesca_3::activateME2ScanScene()
|
void nesca_3::activateME2ScanScene()
|
||||||
{
|
{
|
||||||
if(ME2ScanFlag == false)
|
if(ME2ScanFlag == false)
|
||||||
@ -985,6 +996,7 @@ void nesca_3::activateVoiceScanBut()
|
|||||||
void nesca_3::slotUpdatePie()
|
void nesca_3::slotUpdatePie()
|
||||||
{
|
{
|
||||||
sceneGraph->clear();
|
sceneGraph->clear();
|
||||||
|
vsTh->doEmitDrawGrid(70);
|
||||||
|
|
||||||
int goods = saved;
|
int goods = saved;
|
||||||
int nAlive = found - goods;
|
int nAlive = found - goods;
|
||||||
@ -1061,15 +1073,27 @@ void nesca_3::slotUpdatePie()
|
|||||||
titem->setDefaultTextColor(Qt::darkRed);
|
titem->setDefaultTextColor(Qt::darkRed);
|
||||||
|
|
||||||
int PieX = 155;
|
int PieX = 155;
|
||||||
int PieW = 114;
|
int PieW = 112;
|
||||||
|
|
||||||
//Alives
|
//Alives
|
||||||
QGraphicsEllipseItem* item = new QGraphicsEllipseItem(PieX, 2, PieW, 97);
|
QGraphicsEllipseItem* item = NULL;
|
||||||
|
if(perc0 == 0)
|
||||||
|
{
|
||||||
|
item = new QGraphicsEllipseItem(PieX, 2, PieW, 97);
|
||||||
|
item->setStartAngle(0);
|
||||||
|
perc0 = 16*360;
|
||||||
|
item->setSpanAngle(perc0);
|
||||||
|
item->setBrush(QBrush(QColor(255, 255, 255, 10)));
|
||||||
|
sceneGraph->addItem(item);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
item = new QGraphicsEllipseItem(PieX, 2, PieW, 97);
|
||||||
item->setStartAngle(0);
|
item->setStartAngle(0);
|
||||||
item->setSpanAngle(perc0);
|
item->setSpanAngle(perc0);
|
||||||
item->setBrush(QBrush(Qt::white));
|
item->setBrush(QBrush(Qt::white));
|
||||||
sceneGraph->addItem(item);
|
sceneGraph->addItem(item);
|
||||||
|
};
|
||||||
//Anomalies
|
//Anomalies
|
||||||
if(perc1 > 0)
|
if(perc1 > 0)
|
||||||
{
|
{
|
||||||
@ -1573,7 +1597,7 @@ void nesca_3::SaySmthng()
|
|||||||
if(ui->shoutBox->text().size() > 0)
|
if(ui->shoutBox->text().size() > 0)
|
||||||
{
|
{
|
||||||
char temp[2048] = {0};
|
char temp[2048] = {0};
|
||||||
|
globalPinger = 0;
|
||||||
PhraseIndex = 0;
|
PhraseIndex = 0;
|
||||||
if(PhraseLog.size() > 50)
|
if(PhraseLog.size() > 50)
|
||||||
{
|
{
|
||||||
@ -1742,7 +1766,6 @@ void nesca_3::slotChangeCPModeTo1251()
|
|||||||
ui->ircText->verticalScrollBar()->setValue(ui->ircText->verticalScrollBar()->maximum());
|
ui->ircText->verticalScrollBar()->setValue(ui->ircText->verticalScrollBar()->maximum());
|
||||||
ui->ircRaw->verticalScrollBar()->setValue(ui->ircRaw->verticalScrollBar()->maximum());
|
ui->ircRaw->verticalScrollBar()->setValue(ui->ircRaw->verticalScrollBar()->maximum());
|
||||||
};
|
};
|
||||||
|
|
||||||
void nesca_3::onLinkClicked(QUrl link)
|
void nesca_3::onLinkClicked(QUrl link)
|
||||||
{
|
{
|
||||||
QString lnk = link.toString();
|
QString lnk = link.toString();
|
||||||
@ -1762,10 +1785,6 @@ void nesca_3::onLinkClicked(QUrl link)
|
|||||||
QDesktopServices::openUrl(link);
|
QDesktopServices::openUrl(link);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
void nesca_3::SetActivityValue(QString val)
|
|
||||||
{
|
|
||||||
ui->labelActivity_Value->setText(val);
|
|
||||||
};
|
|
||||||
void nesca_3::slotRestartIRC()
|
void nesca_3::slotRestartIRC()
|
||||||
{
|
{
|
||||||
ircPTh->terminate();
|
ircPTh->terminate();
|
||||||
@ -1788,7 +1807,6 @@ void nesca_3::slotIRCGetTopic(QString str)
|
|||||||
globalIRCText += rData + "\n";
|
globalIRCText += rData + "\n";
|
||||||
ui->ircText->append(rData);
|
ui->ircText->append(rData);
|
||||||
};
|
};
|
||||||
|
|
||||||
//unsigned char jpgHeader[623] = {
|
//unsigned char jpgHeader[623] = {
|
||||||
// 0xFF, 0xD8, 0xFF, 0xE0, 0x00, 0x10, 0x4A, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x01, 0x00, 0x60,
|
// 0xFF, 0xD8, 0xFF, 0xE0, 0x00, 0x10, 0x4A, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x01, 0x00, 0x60,
|
||||||
// 0x00, 0x60, 0x00, 0x00, 0xFF, 0xDB, 0x00, 0x43, 0x00, 0x02, 0x01, 0x01, 0x02, 0x01, 0x01, 0x02,
|
// 0x00, 0x60, 0x00, 0x00, 0xFF, 0xDB, 0x00, 0x43, 0x00, 0x02, 0x01, 0x01, 0x02, 0x01, 0x01, 0x02,
|
||||||
@ -2133,7 +2151,6 @@ void nesca_3::slotShowNicks()
|
|||||||
ui->nickList->lower();
|
ui->nickList->lower();
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
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");
|
||||||
@ -2694,7 +2711,6 @@ QGraphicsRectItem* pbItem = NULL;
|
|||||||
QGraphicsRectItem* pbBlackRectItem = NULL;
|
QGraphicsRectItem* pbBlackRectItem = NULL;
|
||||||
QPen pbPen(QColor(227, 227, 227, 150));
|
QPen pbPen(QColor(227, 227, 227, 150));
|
||||||
QFont pbPointerFont;
|
QFont pbPointerFont;
|
||||||
|
|
||||||
void nesca_3::slotPBUpdate()
|
void nesca_3::slotPBUpdate()
|
||||||
{
|
{
|
||||||
int val = this->perc;
|
int val = this->perc;
|
||||||
@ -2744,6 +2760,11 @@ void nesca_3::slotPBUpdate()
|
|||||||
pbScene->addLine(4, 77, 6, 77, pbPen);
|
pbScene->addLine(4, 77, 6, 77, pbPen);
|
||||||
pbScene->addLine(4, 88, 6, 88, pbPen);
|
pbScene->addLine(4, 88, 6, 88, pbPen);
|
||||||
};
|
};
|
||||||
|
void nesca_3::changeNSTrackLabel(bool status)
|
||||||
|
{
|
||||||
|
if(status) ui->NSTrackStatusLabel->setStyleSheet("background-color: green; border: 1px solid white;");
|
||||||
|
else ui->NSTrackStatusLabel->setStyleSheet("background-color: black; border: 1px solid white;");
|
||||||
|
};
|
||||||
#pragma region "Signal assignments"
|
#pragma region "Signal assignments"
|
||||||
void nesca_3::ConnectEvrthng()
|
void nesca_3::ConnectEvrthng()
|
||||||
{
|
{
|
||||||
@ -2786,9 +2807,13 @@ void nesca_3::ConnectEvrthng()
|
|||||||
connect ( ui->startScanButton_3, SIGNAL( clicked() ), this, SLOT( startScanButtonClicked() ) );
|
connect ( ui->startScanButton_3, SIGNAL( clicked() ), this, SLOT( startScanButtonClicked() ) );
|
||||||
connect ( ui->startScanButton_4, SIGNAL( clicked() ), this, SLOT( startScanButtonClickedDNS() ) );
|
connect ( ui->startScanButton_4, SIGNAL( clicked() ), this, SLOT( startScanButtonClickedDNS() ) );
|
||||||
connect ( ui->trackerOnOff, SIGNAL( toggled(bool) ), this, SLOT( ChangeTrackerOK(bool) ) );
|
connect ( ui->trackerOnOff, SIGNAL( toggled(bool) ), this, SLOT( ChangeTrackerOK(bool) ) );
|
||||||
|
connect ( ui->pingingOnOff, SIGNAL( toggled(bool) ), this, SLOT( ChangePingerOK(bool) ) );
|
||||||
connect ( ui->debugFileOnOff, SIGNAL( toggled(bool) ), this, SLOT( ChangeDebugFileState(bool) ) );
|
connect ( ui->debugFileOnOff, SIGNAL( toggled(bool) ), this, SLOT( ChangeDebugFileState(bool) ) );
|
||||||
connect ( ui->importThreads, SIGNAL( textChanged(QString) ), this, SLOT( ChangeLabelThreads_ValueChanged(QString) ) );
|
connect ( ui->importThreads, SIGNAL( textChanged(QString) ), this, SLOT( ChangeLabelThreads_ValueChanged(QString) ) );
|
||||||
connect ( ui->threadLine, SIGNAL( textChanged(QString) ), this, SLOT( ChangeLabelThreads_ValueChanged(QString) ) );
|
connect ( ui->threadLine, SIGNAL( textChanged(QString) ), this, SLOT( ChangeLabelThreads_ValueChanged(QString) ) );
|
||||||
|
connect ( ui->PingTO, SIGNAL( textChanged(QString) ), this, SLOT( PingTO_ChangeValue(QString) ) );
|
||||||
|
connect ( ui->threadDelayBox, SIGNAL( textChanged(QString) ), this, SLOT( ThreadDelay_ChangeValue(QString) ) );
|
||||||
|
connect ( ui->maxBrutingThrBox, SIGNAL( textChanged(QString) ), this, SLOT( MaxBrutingThr_ChangeValue(QString) ) );
|
||||||
connect ( ui->lineEditThread, SIGNAL( textChanged(QString) ), this, SLOT( ChangeLabelThreads_ValueChanged(QString) ) );
|
connect ( ui->lineEditThread, SIGNAL( textChanged(QString) ), this, SLOT( ChangeLabelThreads_ValueChanged(QString) ) );
|
||||||
connect ( ui->iptoLine_value, SIGNAL( textChanged(QString) ), this, SLOT( ChangeLabelTO_ValueChanged(QString) ) );
|
connect ( ui->iptoLine_value, SIGNAL( textChanged(QString) ), this, SLOT( ChangeLabelTO_ValueChanged(QString) ) );
|
||||||
connect ( ui->iptoLine_value_2, SIGNAL( textChanged(QString) ), this, SLOT( ChangeLabelTO_ValueChanged(QString) ) );
|
connect ( ui->iptoLine_value_2, SIGNAL( textChanged(QString) ), this, SLOT( ChangeLabelTO_ValueChanged(QString) ) );
|
||||||
@ -2834,7 +2859,7 @@ void nesca_3::ConnectEvrthng()
|
|||||||
connect ( stt, SIGNAL(changeBAData(QString)), ui->BAText, SLOT(append(QString)));
|
connect ( stt, SIGNAL(changeBAData(QString)), ui->BAText, SLOT(append(QString)));
|
||||||
connect ( stt, SIGNAL(changeGreenBAData(QString)), this, SLOT(appendGreenBAData(QString)));
|
connect ( stt, SIGNAL(changeGreenBAData(QString)), this, SLOT(appendGreenBAData(QString)));
|
||||||
connect ( stt, SIGNAL(changeRedBAData(QString)), this, SLOT(appendRedBAData(QString)));
|
connect ( stt, SIGNAL(changeRedBAData(QString)), this, SLOT(appendRedBAData(QString)));
|
||||||
connect ( stt, SIGNAL(SetActivityValue(QString)), this, SLOT(SetActivityValue(QString)));
|
connect ( stt, SIGNAL(signalDataSaved(bool)), this, SLOT(changeNSTrackLabel(bool)));
|
||||||
connect ( chPTh, SIGNAL(changeGreenIRCData(QString)), this, SLOT(appendGreenIRCText(QString)));
|
connect ( chPTh, SIGNAL(changeGreenIRCData(QString)), this, SLOT(appendGreenIRCText(QString)));
|
||||||
connect ( chPTh, SIGNAL(changeRedIRCData(QString)), this, SLOT(appendRedIRCText(QString)));
|
connect ( chPTh, SIGNAL(changeRedIRCData(QString)), this, SLOT(appendRedIRCText(QString)));
|
||||||
connect ( chPTh, SIGNAL(changeYellowIRCData(QString)), this, SLOT(appendYellowIRCText(QString)));
|
connect ( chPTh, SIGNAL(changeYellowIRCData(QString)), this, SLOT(appendYellowIRCText(QString)));
|
||||||
@ -2857,7 +2882,7 @@ void nesca_3::ConnectEvrthng()
|
|||||||
connect ( ircTh, SIGNAL(setNick(QString)), this, SLOT(setNickBox(QString)));
|
connect ( ircTh, SIGNAL(setNick(QString)), this, SLOT(setNickBox(QString)));
|
||||||
connect ( ircTh, SIGNAL(changeIRCDataOut(QString)), this, SLOT(appendDefaultIRCTextOut(QString)));
|
connect ( ircTh, SIGNAL(changeIRCDataOut(QString)), this, SLOT(appendDefaultIRCTextOut(QString)));
|
||||||
connect ( ircTh, SIGNAL(notifyPlay()), this, SLOT(playFcknSound()));
|
connect ( ircTh, SIGNAL(notifyPlay()), this, SLOT(playFcknSound()));
|
||||||
connect ( adtHN, SIGNAL(sDrawActivityLine()), this, SLOT(slotDrawActivityLine()));
|
connect ( adtHN, SIGNAL(sDrawActivityLine(QString)), this, SLOT(slotDrawActivityLine(QString)));
|
||||||
connect ( adtHN, SIGNAL(sDrawGrid()), this, SLOT(slotDrawActivityGrid()));
|
connect ( adtHN, SIGNAL(sDrawGrid()), this, SLOT(slotDrawActivityGrid()));
|
||||||
connect ( dtHN, SIGNAL(sAddDelimLines()), this, SLOT(slotDrawDelimLines()));
|
connect ( dtHN, SIGNAL(sAddDelimLines()), this, SLOT(slotDrawDelimLines()));
|
||||||
connect ( dtHN, SIGNAL(sDrawGrid()), this, SLOT(slotDrawGrid()));
|
connect ( dtHN, SIGNAL(sDrawGrid()), this, SLOT(slotDrawGrid()));
|
||||||
@ -2868,7 +2893,7 @@ void nesca_3::ConnectEvrthng()
|
|||||||
connect ( dtGridQoS, SIGNAL(sAddLine()), this, SLOT(slotQoSAddGrid()));
|
connect ( dtGridQoS, SIGNAL(sAddLine()), this, SLOT(slotQoSAddGrid()));
|
||||||
connect ( dtGridQoS, SIGNAL(sAddDelimLines()), this, SLOT(slotQoSDrawDelimLines()));
|
connect ( dtGridQoS, SIGNAL(sAddDelimLines()), this, SLOT(slotQoSDrawDelimLines()));
|
||||||
connect ( vsTh, SIGNAL(sAddLine()), this, SLOT(slotVoiceAddLine()));
|
connect ( vsTh, SIGNAL(sAddLine()), this, SLOT(slotVoiceAddLine()));
|
||||||
connect ( vsTh, SIGNAL(sDrawGrid()), this, SLOT(slotDrawVoiceGrid()));
|
connect ( vsTh, SIGNAL(sDrawGrid(int)), this, SLOT(slotDrawVoiceGrid(int)));
|
||||||
connect ( vsTh, SIGNAL(sDrawTextPlacers()), this, SLOT(slotDrawTextPlacers()));
|
connect ( vsTh, SIGNAL(sDrawTextPlacers()), this, SLOT(slotDrawTextPlacers()));
|
||||||
connect ( psTh, SIGNAL(sUpdatePie()), this, SLOT(slotUpdatePie()) );
|
connect ( psTh, SIGNAL(sUpdatePie()), this, SLOT(slotUpdatePie()) );
|
||||||
connect ( irc_nmb, SIGNAL(sBlinkMessage()), this, SLOT(slotBlinkMessage()) );
|
connect ( irc_nmb, SIGNAL(sBlinkMessage()), this, SLOT(slotBlinkMessage()) );
|
||||||
@ -3028,6 +3053,58 @@ void RestoreSession()
|
|||||||
lex[strlen(lex) - 1] = '\0';
|
lex[strlen(lex) - 1] = '\0';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
else if(strstr(resStr, "[PING]:") != NULL)
|
||||||
|
{
|
||||||
|
lex = strstr(resStr, "[PING]:") + strlen("[PING]:");
|
||||||
|
|
||||||
|
if(strlen(lex) > 1)
|
||||||
|
{
|
||||||
|
lex[strlen(lex) - 1] = '\0';
|
||||||
|
ui->pingingOnOff->setChecked(strcmp(lex, "true") == 0 ? true : false);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else if(strstr(resStr, "[PING_TO]:") != NULL)
|
||||||
|
{
|
||||||
|
lex = strstr(resStr, "[PING_TO]:") + strlen("[PING_TO]:");
|
||||||
|
|
||||||
|
if(strlen(lex) > 1)
|
||||||
|
{
|
||||||
|
lex[strlen(lex) - 1] = '\0';
|
||||||
|
ui->PingTO->setText(QString(lex));
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else if(strstr(resStr, "[THREAD_DELAY]:") != NULL)
|
||||||
|
{
|
||||||
|
lex = strstr(resStr, "[THREAD_DELAY]:") + strlen("[THREAD_DELAY]:");
|
||||||
|
|
||||||
|
if(strlen(lex) > 1)
|
||||||
|
{
|
||||||
|
lex[strlen(lex) - 1] = '\0';
|
||||||
|
ui->threadDelayBox->setText(QString(lex));
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else if(strstr(resStr, "[TIMEOUT]:") != NULL)
|
||||||
|
{
|
||||||
|
lex = strstr(resStr, "[TIMEOUT]:") + strlen("[TIMEOUT]:");
|
||||||
|
|
||||||
|
if(strlen(lex) > 1)
|
||||||
|
{
|
||||||
|
lex[strlen(lex) - 1] = '\0';
|
||||||
|
ui->iptoLine_value->setText(QString(lex));
|
||||||
|
ui->iptoLine_value_2->setText(QString(lex));
|
||||||
|
ui->iptoLine_value_3->setText(QString(lex));
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else if(strstr(resStr, "[MAXBTHR]:") != NULL)
|
||||||
|
{
|
||||||
|
lex = strstr(resStr, "[MAXBTHR]:") + strlen("[MAXBTHR]:");
|
||||||
|
|
||||||
|
if(strlen(lex) > 1)
|
||||||
|
{
|
||||||
|
lex[strlen(lex) - 1] = '\0';
|
||||||
|
ui->maxBrutingThrBox->setText(QString(lex));
|
||||||
|
};
|
||||||
|
}
|
||||||
else if(strstr(resStr, "[PERSKEY]:") != NULL)
|
else if(strstr(resStr, "[PERSKEY]:") != NULL)
|
||||||
{
|
{
|
||||||
lex = strstr(resStr, "[PERSKEY]:") + strlen("[PERSKEY]:");
|
lex = strstr(resStr, "[PERSKEY]:") + strlen("[PERSKEY]:");
|
||||||
@ -3243,7 +3320,7 @@ void _startMsgCheck()
|
|||||||
|
|
||||||
_startVerCheck();
|
_startVerCheck();
|
||||||
_startMsgCheck();
|
_startMsgCheck();
|
||||||
}
|
};
|
||||||
void nesca_3::playFcknSound()
|
void nesca_3::playFcknSound()
|
||||||
{
|
{
|
||||||
QSound::play("00000036.wav");
|
QSound::play("00000036.wav");
|
||||||
@ -3294,6 +3371,20 @@ void nesca_3::ChangeTrackerOK(bool val)
|
|||||||
{
|
{
|
||||||
trackerOK = val;
|
trackerOK = val;
|
||||||
};
|
};
|
||||||
|
void nesca_3::ChangePingerOK(bool val)
|
||||||
|
{
|
||||||
|
ui->PingTO->setEnabled(val);
|
||||||
|
gPingNScan = val;
|
||||||
|
if(val == false)
|
||||||
|
{
|
||||||
|
ui->PingTO->setStyleSheet("color: rgb(116, 116, 116);background-color: rgb(56, 56, 56);border:none;");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ui->PingTO->setStyleSheet("color: rgb(216, 216, 216);background-color: rgb(56, 56, 56);border:none;");
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
void nesca_3::ChangeDebugFileState(bool val)
|
void nesca_3::ChangeDebugFileState(bool val)
|
||||||
{
|
{
|
||||||
@ -3428,7 +3519,6 @@ void nesca_3::STTTerminate()
|
|||||||
stt->doEmitionChangeBA("0");
|
stt->doEmitionChangeBA("0");
|
||||||
BrutingThrds = 0;
|
BrutingThrds = 0;
|
||||||
cons = 0;
|
cons = 0;
|
||||||
ui->labelActivity_Value->setText("0");
|
|
||||||
setButtonStyleArea();
|
setButtonStyleArea();
|
||||||
ui->lineEditStartIPDNS->setText("");
|
ui->lineEditStartIPDNS->setText("");
|
||||||
ui->startScanButton_3->setText("Start");
|
ui->startScanButton_3->setText("Start");
|
||||||
@ -3584,6 +3674,18 @@ void nesca_3::ChangeLabelThreads_ValueChanged(QString str)
|
|||||||
{
|
{
|
||||||
gThreads = str.toInt();
|
gThreads = str.toInt();
|
||||||
};
|
};
|
||||||
|
void nesca_3::PingTO_ChangeValue(QString str)
|
||||||
|
{
|
||||||
|
gPingTimeout = str.toInt();
|
||||||
|
};
|
||||||
|
void nesca_3::ThreadDelay_ChangeValue(QString str)
|
||||||
|
{
|
||||||
|
gThreadDelay = str.toInt();
|
||||||
|
};
|
||||||
|
void nesca_3::MaxBrutingThr_ChangeValue(QString str)
|
||||||
|
{
|
||||||
|
gMaxBrutingThreads = str.toInt();
|
||||||
|
};
|
||||||
void nesca_3::appendRedBAData(QString str)
|
void nesca_3::appendRedBAData(QString str)
|
||||||
{
|
{
|
||||||
ui->BAText->append("<span style=\"color:red;background-color:#313131;\">" + QString::fromUtf8(str.toLocal8Bit().data()) + "</span>");
|
ui->BAText->append("<span style=\"color:red;background-color:#313131;\">" + QString::fromUtf8(str.toLocal8Bit().data()) + "</span>");
|
||||||
|
12
nesca_3.h
12
nesca_3.h
@ -52,6 +52,10 @@ protected:
|
|||||||
QString GetSSLContent(QString str);
|
QString GetSSLContent(QString str);
|
||||||
void SSLConnect(QString str);
|
void SSLConnect(QString str);
|
||||||
protected slots:
|
protected slots:
|
||||||
|
void MaxBrutingThr_ChangeValue(QString str);
|
||||||
|
void ThreadDelay_ChangeValue(QString val);
|
||||||
|
void ChangePingerOK(bool val);
|
||||||
|
void changeNSTrackLabel(bool status);
|
||||||
void slotPBUpdate();
|
void slotPBUpdate();
|
||||||
void DNSLine_ValueChanged(QString str);
|
void DNSLine_ValueChanged(QString str);
|
||||||
void slotChangeCPModeToUTF();
|
void slotChangeCPModeToUTF();
|
||||||
@ -79,7 +83,7 @@ protected:
|
|||||||
void slotUpdatePie();
|
void slotUpdatePie();
|
||||||
void slotClearLogs();
|
void slotClearLogs();
|
||||||
void slotRestartIRC();
|
void slotRestartIRC();
|
||||||
void slotDrawVoiceGrid();
|
void slotDrawVoiceGrid(int factor);
|
||||||
void slotDrawTextPlacers();
|
void slotDrawTextPlacers();
|
||||||
void onLinkClicked(QUrl link);
|
void onLinkClicked(QUrl link);
|
||||||
void CheckPersKey();
|
void CheckPersKey();
|
||||||
@ -97,7 +101,8 @@ protected:
|
|||||||
void slotQoSAddGrid();
|
void slotQoSAddGrid();
|
||||||
void slotVoiceAddLine();
|
void slotVoiceAddLine();
|
||||||
void slotDrawDelimLines();
|
void slotDrawDelimLines();
|
||||||
void slotDrawActivityLine();
|
void slotDrawActivityLine(QString data);
|
||||||
|
void slotDrawActivityGrid();
|
||||||
void activateME2ScanScene();
|
void activateME2ScanScene();
|
||||||
void activateQoSScanBut();
|
void activateQoSScanBut();
|
||||||
void activateVoiceScanBut();
|
void activateVoiceScanBut();
|
||||||
@ -106,7 +111,6 @@ protected:
|
|||||||
void slotQoSAddLine();
|
void slotQoSAddLine();
|
||||||
void slotAddLine(int x1, int y1, int x2, int y2);
|
void slotAddLine(int x1, int y1, int x2, int y2);
|
||||||
void slotDrawGrid();
|
void slotDrawGrid();
|
||||||
void slotDrawActivityGrid();
|
|
||||||
void exitButtonClicked();
|
void exitButtonClicked();
|
||||||
void trayButtonClicked();
|
void trayButtonClicked();
|
||||||
void mouseMoveEvent(QMouseEvent * event);
|
void mouseMoveEvent(QMouseEvent * event);
|
||||||
@ -116,9 +120,9 @@ protected:
|
|||||||
void startScanButtonClicked();
|
void startScanButtonClicked();
|
||||||
void startScanButtonClickedDNS();
|
void startScanButtonClickedDNS();
|
||||||
void saveOptions();
|
void saveOptions();
|
||||||
void SetActivityValue(QString val);
|
|
||||||
void ChangeTrackerOK(bool val);
|
void ChangeTrackerOK(bool val);
|
||||||
void ChangeLabelThreads_ValueChanged(QString);
|
void ChangeLabelThreads_ValueChanged(QString);
|
||||||
|
void PingTO_ChangeValue(QString);
|
||||||
void ChangeLabelTO_ValueChanged(QString);
|
void ChangeLabelTO_ValueChanged(QString);
|
||||||
void appendErrText(QString str);
|
void appendErrText(QString str);
|
||||||
void appendOKText(QString str);
|
void appendOKText(QString str);
|
||||||
|
268
nesca_3.ui
268
nesca_3.ui
@ -370,7 +370,7 @@
|
|||||||
<string notr="true">color: rgb(216, 216, 216);background-color: rgb(56, 56, 56);border:none;</string>
|
<string notr="true">color: rgb(216, 216, 216);background-color: rgb(56, 56, 56);border:none;</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>80,81,88,8080,8081,60002,8008,8888,441,4111,6667,3536,22,21</string>
|
<string>80,81,88,8080,8081,60001,60002,8008,8888,554,9000,441,4111,6667,3536,22,21</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="maxLength">
|
<property name="maxLength">
|
||||||
<number>4096</number>
|
<number>4096</number>
|
||||||
@ -674,7 +674,7 @@
|
|||||||
<string notr="true">color: rgb(216, 216, 216);background-color: rgb(56, 56, 56);</string>
|
<string notr="true">color: rgb(216, 216, 216);background-color: rgb(56, 56, 56);</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>80,81,88,8080,8081,60002,8008,8888,441,4111,6667,3536,22,21</string>
|
<string>80,81,88,8080,8081,60001,60002,8008,8888,554,9000,441,4111,6667,3536,22,21</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="maxLength">
|
<property name="maxLength">
|
||||||
<number>4096</number>
|
<number>4096</number>
|
||||||
@ -975,7 +975,7 @@ color: rgb(214, 214, 0);</string>
|
|||||||
<string notr="true">color: rgb(216, 216, 216);background-color: rgb(56, 56, 56);</string>
|
<string notr="true">color: rgb(216, 216, 216);background-color: rgb(56, 56, 56);</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>80,81,88,8080,8081,60002,8008,8888,441,4111,6667,3536,22,21</string>
|
<string>80,81,88,8080,8081,60001,60002,8008,8888,554,9000,441,4111,6667,3536,22,21</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="placeholderText">
|
<property name="placeholderText">
|
||||||
<string>80,81,8080,8888,21,6667,7000</string>
|
<string>80,81,8080,8888,21,6667,7000</string>
|
||||||
@ -1173,7 +1173,7 @@ border-radius: 3px;</string>
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>250</x>
|
<x>250</x>
|
||||||
<y>30</y>
|
<y>10</y>
|
||||||
<width>121</width>
|
<width>121</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1203,7 +1203,7 @@ border-radius: 3px;</string>
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>30</x>
|
<x>30</x>
|
||||||
<y>30</y>
|
<y>10</y>
|
||||||
<width>211</width>
|
<width>211</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1233,7 +1233,7 @@ border-radius: 3px;</string>
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>30</x>
|
<x>30</x>
|
||||||
<y>60</y>
|
<y>35</y>
|
||||||
<width>341</width>
|
<width>341</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1263,7 +1263,7 @@ border-radius: 3px;</string>
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>379</x>
|
<x>379</x>
|
||||||
<y>30</y>
|
<y>10</y>
|
||||||
<width>62</width>
|
<width>62</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1293,7 +1293,7 @@ border-radius: 3px;</string>
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>380</x>
|
<x>380</x>
|
||||||
<y>60</y>
|
<y>35</y>
|
||||||
<width>61</width>
|
<width>61</width>
|
||||||
<height>23</height>
|
<height>23</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -1337,6 +1337,200 @@ border-radius: 3px;</string>
|
|||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QCheckBox" name="pingingOnOff">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>30</x>
|
||||||
|
<y>70</y>
|
||||||
|
<width>85</width>
|
||||||
|
<height>17</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Eurostile</family>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="whatsThis">
|
||||||
|
<string>Ping hosts before connection attempts. (For bad internet-providers)</string>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color: rgb(216, 216, 216); background-color: rgba(2, 2, 2, 0);</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Ping hosts</string>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string>Ctrl+S</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QLineEdit" name="PingTO">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>390</x>
|
||||||
|
<y>70</y>
|
||||||
|
<width>51</width>
|
||||||
|
<height>20</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Eurostile</family>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color: rgb(116, 116, 116);background-color: rgb(56, 56, 56);border:none;</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>2000</string>
|
||||||
|
</property>
|
||||||
|
<property name="maxLength">
|
||||||
|
<number>5</number>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>100</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>320</x>
|
||||||
|
<y>71</y>
|
||||||
|
<width>68</width>
|
||||||
|
<height>16</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Eurostile</family>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color: rgb(216, 216, 216); background-color: rgba(2, 2, 2, 0);</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Ping timeout:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QLineEdit" name="threadDelayBox">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>390</x>
|
||||||
|
<y>90</y>
|
||||||
|
<width>51</width>
|
||||||
|
<height>20</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Eurostile</family>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color: rgb(216, 216, 216);background-color: rgb(56, 56, 56);border:none;</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>10</string>
|
||||||
|
</property>
|
||||||
|
<property name="maxLength">
|
||||||
|
<number>5</number>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>100</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QLabel" name="label_2">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>320</x>
|
||||||
|
<y>90</y>
|
||||||
|
<width>68</width>
|
||||||
|
<height>16</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Eurostile</family>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color: rgb(216, 216, 216); background-color: rgba(2, 2, 2, 0);</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Thread delay:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QLabel" name="MaxBrutingThrLabel">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>320</x>
|
||||||
|
<y>105</y>
|
||||||
|
<width>62</width>
|
||||||
|
<height>26</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Eurostile</family>
|
||||||
|
<pointsize>7</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color: rgb(216, 216, 216); background-color: rgba(2, 2, 2, 0);</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Max bruting
|
||||||
|
threads:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QLineEdit" name="maxBrutingThrBox">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>390</x>
|
||||||
|
<y>110</y>
|
||||||
|
<width>51</width>
|
||||||
|
<height>20</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Eurostile</family>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color: rgb(216, 216, 216);background-color: rgb(56, 56, 56);border:none;</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>200</string>
|
||||||
|
</property>
|
||||||
|
<property name="maxLength">
|
||||||
|
<number>3</number>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>100</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLabel" name="labelNesca_3">
|
<widget class="QLabel" name="labelNesca_3">
|
||||||
@ -1611,7 +1805,7 @@ border-radius: 3px;</string>
|
|||||||
<rect>
|
<rect>
|
||||||
<x>20</x>
|
<x>20</x>
|
||||||
<y>445</y>
|
<y>445</y>
|
||||||
<width>451</width>
|
<width>453</width>
|
||||||
<height>326</height>
|
<height>326</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -1692,7 +1886,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Saved/Filtered:</string>
|
<string>Saved/Online:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
@ -2367,7 +2561,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<rect>
|
<rect>
|
||||||
<x>20</x>
|
<x>20</x>
|
||||||
<y>445</y>
|
<y>445</y>
|
||||||
<width>451</width>
|
<width>453</width>
|
||||||
<height>326</height>
|
<height>326</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -2462,12 +2656,12 @@ background-color: #000000;</string>
|
|||||||
<string>:NS-IRC</string>
|
<string>:NS-IRC</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLabel" name="labelActivity">
|
<widget class="QLabel" name="labelTracker">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>200</x>
|
<x>200</x>
|
||||||
<y>783</y>
|
<y>783</y>
|
||||||
<width>41</width>
|
<width>45</width>
|
||||||
<height>10</height>
|
<height>10</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -2495,33 +2689,12 @@ background-color: #000000;</string>
|
|||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Activity:</string>
|
<string>NS-Track:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLabel" name="labelActivity_Value">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>247</x>
|
|
||||||
<y>783</y>
|
|
||||||
<width>116</width>
|
|
||||||
<height>10</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<family>Eurostile</family>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">color: rgb(216, 216, 216);background-color: rgba(2, 2, 2, 0);</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>0b</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QGraphicsView" name="graphicActivityGrid">
|
<widget class="QGraphicsView" name="graphicActivityGrid">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
@ -2646,7 +2819,7 @@ background-color: #000000;</string>
|
|||||||
<widget class="QPushButton" name="clearLogBut">
|
<widget class="QPushButton" name="clearLogBut">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>472</x>
|
<x>475</x>
|
||||||
<y>445</y>
|
<y>445</y>
|
||||||
<width>16</width>
|
<width>16</width>
|
||||||
<height>21</height>
|
<height>21</height>
|
||||||
@ -2985,6 +3158,25 @@ background-color: #000000;</string>
|
|||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QLabel" name="NSTrackStatusLabel">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>249</x>
|
||||||
|
<y>785</y>
|
||||||
|
<width>8</width>
|
||||||
|
<height>8</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">background-color: black; border: 1px solid white;</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
<zorder>graphicTextPlacer</zorder>
|
<zorder>graphicTextPlacer</zorder>
|
||||||
<zorder>BAText</zorder>
|
<zorder>BAText</zorder>
|
||||||
<zorder>labelNesca_3</zorder>
|
<zorder>labelNesca_3</zorder>
|
||||||
@ -3032,8 +3224,7 @@ background-color: #000000;</string>
|
|||||||
<zorder>labelOffline_Value</zorder>
|
<zorder>labelOffline_Value</zorder>
|
||||||
<zorder>switcherBut</zorder>
|
<zorder>switcherBut</zorder>
|
||||||
<zorder>IRCModeBut</zorder>
|
<zorder>IRCModeBut</zorder>
|
||||||
<zorder>labelActivity</zorder>
|
<zorder>labelTracker</zorder>
|
||||||
<zorder>labelActivity_Value</zorder>
|
|
||||||
<zorder>graphicActivityGrid</zorder>
|
<zorder>graphicActivityGrid</zorder>
|
||||||
<zorder>graphicActivity</zorder>
|
<zorder>graphicActivity</zorder>
|
||||||
<zorder>VoiceScanBut</zorder>
|
<zorder>VoiceScanBut</zorder>
|
||||||
@ -3054,6 +3245,7 @@ background-color: #000000;</string>
|
|||||||
<zorder>DredLabel</zorder>
|
<zorder>DredLabel</zorder>
|
||||||
<zorder>labelSSH</zorder>
|
<zorder>labelSSH</zorder>
|
||||||
<zorder>rVerLabel</zorder>
|
<zorder>rVerLabel</zorder>
|
||||||
|
<zorder>NSTrackStatusLabel</zorder>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="widgetIRC" native="true">
|
<widget class="QWidget" name="widgetIRC" native="true">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
|
@ -2,12 +2,14 @@
|
|||||||
#include "STh.h"
|
#include "STh.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
||||||
|
bool horLineFlag = false;
|
||||||
QJsonArray *jsonArr = new QJsonArray();
|
QJsonArray *jsonArr = new QJsonArray();
|
||||||
static int portArr[65536] = {0};
|
static int portArr[65536] = {0};
|
||||||
|
int gThreadDelay = 10;
|
||||||
int gC = 0;
|
int gC = 0;
|
||||||
int gTimeOut = 3;
|
int gTimeOut = 3;
|
||||||
int PieAnomC1 = 0, PieBA = 0, PieSusp = 0, PieLowl = 0, PieWF = 0, PieSSH = 0;
|
int PieAnomC1 = 0, PieBA = 0, PieSusp = 0, PieLowl = 0, PieWF = 0, PieSSH = 0;
|
||||||
int AnomC1 = 0, Filt = 0, Overl = 0, Lowl = 0, Alive = 0, Activity = 0, saved = 0, Susp = 0, WF = 0, offlines = 0, ssh = 0;
|
int AnomC1 = 0, Filt = 0, Overl = 0, Lowl = 0, Alive = 0, saved = 0, Susp = 0, WF = 0, offlines = 0, ssh = 0;
|
||||||
int GlobalWSAErr = 0;
|
int GlobalWSAErr = 0;
|
||||||
int GlobalNegativeSize = 0;
|
int GlobalNegativeSize = 0;
|
||||||
int ovrlIPs = 0, ipCounter = 0;
|
int ovrlIPs = 0, ipCounter = 0;
|
||||||
@ -17,8 +19,10 @@ int gMaxSize = 65536;
|
|||||||
int gMode;
|
int gMode;
|
||||||
int OnLiner = 0;
|
int OnLiner = 0;
|
||||||
int MaxPass = 0, MaxLogin = 0, MaxTags = 0, MaxWFLogin = 0, MaxWFPass = 0, MaxSSHPass = 0;
|
int MaxPass = 0, MaxLogin = 0, MaxTags = 0, MaxWFLogin = 0, MaxWFPass = 0, MaxSSHPass = 0;
|
||||||
int ipsstart[4], ipsend[4], ipsstartfl[8192][4], ipsendfl[8192][4], starterIP[8192][4],
|
int ipsstart[4], ipsend[4],
|
||||||
startNum, endNum, overallPorts, flCounter, octet[4];
|
startNum, endNum, overallPorts, flCounter, octet[4];
|
||||||
|
unsigned char ipsstartfl[8192][4], ipsendfl[8192][4], starterIP[8192][4];
|
||||||
|
int gPingTimeout = 2000;
|
||||||
double ips = 0;
|
double ips = 0;
|
||||||
char top_level_domain[128] = {0};
|
char top_level_domain[128] = {0};
|
||||||
char startM[64] = {0}, endM[64] = {0};
|
char startM[64] = {0}, endM[64] = {0};
|
||||||
@ -27,7 +31,7 @@ char **GlobalNegatives = 0;
|
|||||||
char **loginLst, **passLst;
|
char **loginLst, **passLst;
|
||||||
char **wfLoginLst, **wfPassLst;
|
char **wfLoginLst, **wfPassLst;
|
||||||
char **sshlpLst;
|
char **sshlpLst;
|
||||||
char des1[64] = {0}, res[32]= {0};
|
//char des1[64] = {0}, res[32]= {0};
|
||||||
char saveStartIP[128] = {0};
|
char saveStartIP[128] = {0};
|
||||||
char saveEndIP[128] = {0};
|
char saveEndIP[128] = {0};
|
||||||
char gRange[128] = {0};
|
char gRange[128] = {0};
|
||||||
@ -41,8 +45,9 @@ char metaTargets[256] = {0};
|
|||||||
char metaETA[256] = {0};
|
char metaETA[256] = {0};
|
||||||
char metaOffline[256] = {0};
|
char metaOffline[256] = {0};
|
||||||
bool ErrLogFirstTime = true;
|
bool ErrLogFirstTime = true;
|
||||||
|
bool gPingNScan = false;
|
||||||
volatile bool ConnLocked = false;
|
volatile bool ConnLocked = false;
|
||||||
unsigned long long gTargets = 0, gTargetsOverall = 1, targets;
|
unsigned long long gTargets = 0, gTargetsOverall = 1, targets, Activity = 0;
|
||||||
volatile int gThreads;
|
volatile int gThreads;
|
||||||
volatile int cons = 0;
|
volatile int cons = 0;
|
||||||
volatile int BA = 0;
|
volatile int BA = 0;
|
||||||
@ -319,6 +324,40 @@ void _SaveBackupToFile()
|
|||||||
strcat(saveBuffer, saveStr);
|
strcat(saveBuffer, saveStr);
|
||||||
ZeroMemory(saveStr, sizeof(saveStr));
|
ZeroMemory(saveStr, sizeof(saveStr));
|
||||||
|
|
||||||
|
strcpy(saveStr, "[PING]:");
|
||||||
|
strcat(saveStr, gPingNScan ? "true" : "false");
|
||||||
|
strcat(saveStr, "\n");
|
||||||
|
strcat(saveBuffer, saveStr);
|
||||||
|
ZeroMemory(saveStr, sizeof(saveStr));
|
||||||
|
|
||||||
|
strcpy(saveStr, "[PING_TO]:");
|
||||||
|
char tb[16] = {0};
|
||||||
|
strcat(saveStr, itoa(gPingTimeout, tb, 10));
|
||||||
|
strcat(saveStr, "\n");
|
||||||
|
strcat(saveBuffer, saveStr);
|
||||||
|
ZeroMemory(saveStr, sizeof(saveStr));
|
||||||
|
|
||||||
|
strcpy(saveStr, "[THREAD_DELAY]:");
|
||||||
|
ZeroMemory(tb, 16);
|
||||||
|
strcat(saveStr, itoa(gThreadDelay, tb, 10));
|
||||||
|
strcat(saveStr, "\n");
|
||||||
|
strcat(saveBuffer, saveStr);
|
||||||
|
ZeroMemory(saveStr, sizeof(saveStr));
|
||||||
|
|
||||||
|
strcpy(saveStr, "[TIMEOUT]:");
|
||||||
|
ZeroMemory(tb, 16);
|
||||||
|
strcat(saveStr, itoa(gTimeOut, tb, 10));
|
||||||
|
strcat(saveStr, "\n");
|
||||||
|
strcat(saveBuffer, saveStr);
|
||||||
|
ZeroMemory(saveStr, sizeof(saveStr));
|
||||||
|
|
||||||
|
strcpy(saveStr, "[MAXBTHR]:");
|
||||||
|
ZeroMemory(tb, 16);
|
||||||
|
strcat(saveStr, itoa(gMaxBrutingThreads, tb, 10));
|
||||||
|
strcat(saveStr, "\n");
|
||||||
|
strcat(saveBuffer, saveStr);
|
||||||
|
ZeroMemory(saveStr, sizeof(saveStr));
|
||||||
|
|
||||||
strcpy(saveStr, "[PERSKEY]:");
|
strcpy(saveStr, "[PERSKEY]:");
|
||||||
strcat(saveStr, trcPersKey);
|
strcat(saveStr, trcPersKey);
|
||||||
strcat(saveStr, "\n");
|
strcat(saveStr, "\n");
|
||||||
@ -693,7 +732,10 @@ void *_tracker()
|
|||||||
if(strstr(rBuffT, "201 Created") != NULL)
|
if(strstr(rBuffT, "201 Created") != NULL)
|
||||||
{
|
{
|
||||||
#pragma region QTGUI_Area
|
#pragma region QTGUI_Area
|
||||||
stt->doEmitionYellowFoundData("[NS-Track] -OK. Data saved!");
|
if(gDebugMode) stt->doEmitionYellowFoundData("[NS-Track] -OK. Data saved!");
|
||||||
|
stt->doEmitionDataSaved(true);
|
||||||
|
Sleep(1000);
|
||||||
|
stt->doEmitionDataSaved(false);
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
}
|
}
|
||||||
else if(strstr(rBuffT, "400 Bad Request") != NULL)
|
else if(strstr(rBuffT, "400 Bad Request") != NULL)
|
||||||
@ -743,33 +785,13 @@ void *_tracker()
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
unsigned long int numOfIpsFL()
|
|
||||||
{
|
|
||||||
for(int i = 0; i < flCounter; ++i)
|
|
||||||
{
|
|
||||||
gTargets += (ipsendfl[i][3]-ipsstartfl[i][3])*(ipsendfl[i][2]-ipsstartfl[i][2])*(ipsendfl[i][1]-ipsstartfl[i][1])*(ipsendfl[i][0] - ipsstartfl[i][0]);
|
|
||||||
if (gTargets < 0) gTargets *= (-1);
|
|
||||||
gTargets += (ipsendfl[i][3]-ipsstartfl[i][3]) * (ipsendfl[i][2]-ipsstartfl[i][2]) * (ipsendfl[i][1] - ipsstartfl[i][1]);
|
|
||||||
if (gTargets < 0) gTargets *= (-1);
|
|
||||||
gTargets += (ipsendfl[i][3]-ipsstartfl[i][3] + 1) * (ipsendfl[i][2] - ipsstartfl[i][2] + 1);
|
|
||||||
if (gTargets < 0) gTargets *= (-1);
|
|
||||||
};
|
|
||||||
--gTargets;
|
|
||||||
gTargetsOverall = gTargets;
|
|
||||||
return gTargets;
|
|
||||||
};
|
|
||||||
unsigned long int numOfIps(int ipsstart[], int ipsend[])
|
unsigned long int numOfIps(int ipsstart[], int ipsend[])
|
||||||
{
|
{
|
||||||
gTargets += 256*256*256*(ipsend[0] - ipsstart[0]);
|
gTargets += 256*256*256*(ipsend[0] - ipsstart[0]);
|
||||||
if (gTargets < 0) gTargets *= (-1);
|
|
||||||
gTargets += 256 * 256 * (ipsend[1] - ipsstart[1]);
|
gTargets += 256 * 256 * (ipsend[1] - ipsstart[1]);
|
||||||
if (gTargets < 0) gTargets *= (-1);
|
|
||||||
gTargets += 256 * (ipsend[2] - ipsstart[2]);
|
gTargets += 256 * (ipsend[2] - ipsstart[2]);
|
||||||
if (gTargets < 0) gTargets *= (-1);
|
|
||||||
gTargets += (ipsend[3] - ipsstart[3]);
|
gTargets += (ipsend[3] - ipsstart[3]);
|
||||||
if (gTargets < 0) gTargets *= (-1);
|
gTargetsOverall = gTargets - 1;
|
||||||
|
|
||||||
gTargetsOverall = gTargets;
|
|
||||||
return gTargets;
|
return gTargets;
|
||||||
};
|
};
|
||||||
//#include <sys/types.h>
|
//#include <sys/types.h>
|
||||||
@ -1505,7 +1527,8 @@ int fInit(int InitMode, char *gR)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
memcpy(res, "\0", sizeof(res));
|
char des1[64] = {0};
|
||||||
|
//memcpy(res, "\0", sizeof(res));
|
||||||
|
|
||||||
for(int i = 0; i < 3; i++) //Filling the range-starting ip mass.
|
for(int i = 0; i < 3; i++) //Filling the range-starting ip mass.
|
||||||
{
|
{
|
||||||
@ -1589,7 +1612,8 @@ int fInit(int InitMode, char *gR)
|
|||||||
}
|
}
|
||||||
else if (InitMode == -1)
|
else if (InitMode == -1)
|
||||||
{
|
{
|
||||||
targets = numOfIpsFL();
|
//targets = numOfIpsFL();
|
||||||
|
///DUMMY///
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
void FileLoader(char *str)
|
void FileLoader(char *str)
|
||||||
@ -1617,7 +1641,6 @@ void FileLoader(char *str)
|
|||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
if(strstr(curIP, "-") != NULL)
|
if(strstr(curIP, "-") != NULL)
|
||||||
{
|
{
|
||||||
bool firstPart = true;
|
bool firstPart = true;
|
||||||
@ -1677,6 +1700,11 @@ void FileLoader(char *str)
|
|||||||
stt->doEmitionRedFoundData(QString(tempMsg));
|
stt->doEmitionRedFoundData(QString(tempMsg));
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gTargets += 256*256*256*(ipsendfl[flCounter][0] - ipsstartfl[flCounter][0]);
|
||||||
|
gTargets += 256*256*(ipsendfl[flCounter][1] - ipsstartfl[flCounter][1]);
|
||||||
|
gTargets += 256*(ipsendfl[flCounter][2] - ipsstartfl[flCounter][2]);
|
||||||
|
gTargets += (ipsendfl[flCounter][3] - ipsstartfl[flCounter][3]);
|
||||||
++flCounter;
|
++flCounter;
|
||||||
}
|
}
|
||||||
else if(strstr(curIP, "/") != NULL)
|
else if(strstr(curIP, "/") != NULL)
|
||||||
@ -1685,93 +1713,82 @@ void FileLoader(char *str)
|
|||||||
char *str2;
|
char *str2;
|
||||||
char res[8] = {0};
|
char res[8] = {0};
|
||||||
|
|
||||||
|
int mask = 0;
|
||||||
|
char *ptr1 = strstr(curIP, "/");
|
||||||
GetOctets(curIP);
|
GetOctets(curIP);
|
||||||
|
|
||||||
if(strstr(curIP, ".") != NULL)
|
mask = atoi(ptr1 + 1);
|
||||||
{
|
unsigned char mOctet[4];
|
||||||
str1 = strstr(curIP, "."); //1 byte
|
mOctet[0] = 1;
|
||||||
strncpy(res, curIP, (int)((char*)str1 - curIP));
|
mOctet[1] = 1;
|
||||||
}
|
mOctet[2] = 1;
|
||||||
else strcpy(res, curIP);
|
mOctet[3] = 1;
|
||||||
|
|
||||||
if(strstr(res, "/") != NULL)
|
if(mask >= 24)
|
||||||
{
|
{
|
||||||
CheckMaskBits(res, flCounter);
|
mOctet[0] = 255;
|
||||||
continue;
|
mOctet[1] = 255;
|
||||||
|
mOctet[2] = 255;
|
||||||
|
for(int i = 0; i < mask - 24 - 1; ++i)
|
||||||
|
{
|
||||||
|
mOctet[3] = mOctet[3] << 1;
|
||||||
|
mOctet[3] |= 1;
|
||||||
|
};
|
||||||
|
mOctet[3] = mOctet[3] << 8 - (mask - 24);
|
||||||
|
}
|
||||||
|
else if(mask >= 16)
|
||||||
|
{
|
||||||
|
mOctet[0] = 255;
|
||||||
|
mOctet[1] = 255;
|
||||||
|
for(int i = 0; i < mask - 16 - 1; ++i)
|
||||||
|
{
|
||||||
|
mOctet[2] = mOctet[2] << 1;
|
||||||
|
mOctet[2] |= 1;
|
||||||
|
};
|
||||||
|
mOctet[2] = mOctet[2] << 8 - (mask - 16);
|
||||||
|
mOctet[3] = 0;
|
||||||
|
}
|
||||||
|
else if(mask >= 8)
|
||||||
|
{
|
||||||
|
mOctet[0] = 255;
|
||||||
|
for(int i = 0; i < mask - 8 - 1; ++i)
|
||||||
|
{
|
||||||
|
mOctet[1] = mOctet[1] << 1;
|
||||||
|
mOctet[1] |= 1;
|
||||||
|
};
|
||||||
|
mOctet[1] = mOctet[1] << 8 - (mask - 8);
|
||||||
|
mOctet[2] = 0;
|
||||||
|
mOctet[3] = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
starterIP[flCounter][0] = atoi(res);
|
for(int i = 0; i < mask - 1; ++i)
|
||||||
ipsstartfl[flCounter][0] = atoi(res);
|
{
|
||||||
ipsendfl[flCounter][0] = atoi(res);
|
mOctet[0] = mOctet[0]<< 1;
|
||||||
|
mOctet[0] |= 1;
|
||||||
};
|
};
|
||||||
ZeroMemory(res, sizeof(res));
|
mOctet[0] = mOctet[0] << 8 - mask;
|
||||||
|
mOctet[1] = 0;
|
||||||
if(strstr(str1 + 1, ".") != NULL)
|
mOctet[2] = 0;
|
||||||
{
|
mOctet[3] = 0;
|
||||||
str2 = strstr(str1 + 1, "."); //2 byte
|
|
||||||
strncpy(res, str1 + 1, (int)((char*)str2 - str1) - 1);
|
|
||||||
}
|
|
||||||
else strcpy(res, str1 + 1);
|
|
||||||
|
|
||||||
if(strstr(res, "/") != NULL)
|
|
||||||
{
|
|
||||||
CheckMaskBits(res, flCounter);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
starterIP[flCounter][1] = atoi(res);
|
|
||||||
ipsstartfl[flCounter][1] = atoi(res);
|
|
||||||
ipsendfl[flCounter][1] = atoi(res);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ZeroMemory(res, sizeof(res));
|
unsigned char ocRes = 0;
|
||||||
|
for(int i = 0; i < 4; ++i)
|
||||||
if(strstr(str2 + 1, ".") != NULL)
|
|
||||||
{
|
{
|
||||||
str1 = strstr(str2 + 1, "."); //3 byte
|
ocRes = octet[i]&mOctet[i];
|
||||||
strncpy(res, str2 + 1, (int)((char*)str1 - str2) - 1);
|
starterIP[flCounter][i] = ocRes;
|
||||||
}
|
ipsstartfl[flCounter][i] = ocRes;
|
||||||
else strcpy(res, str2 + 1);
|
if(mOctet[i] == 255) ipsendfl[flCounter][i] = octet[i];
|
||||||
|
else ipsendfl[flCounter][i] = octet[i]|~mOctet[i];
|
||||||
if(strstr(res, "/") != NULL)
|
|
||||||
{
|
|
||||||
CheckMaskBits(res, flCounter);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
starterIP[flCounter][2] = atoi(res);
|
|
||||||
ipsstartfl[flCounter][2] = atoi(res);
|
|
||||||
ipsendfl[flCounter][2] = atoi(res);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ZeroMemory(res, sizeof(res));
|
gTargets += pow((float)2, (32 - mask)) - 1;
|
||||||
|
|
||||||
if(strstr(str1 + 1, ".") != NULL)
|
|
||||||
{
|
|
||||||
str2 = strstr(str1 + 1, "."); //4 byte
|
|
||||||
strncpy(res, str1 + 1, (int)((char*)str2 - str1) - 1);
|
|
||||||
}
|
|
||||||
else strcpy(res, str1 + 1);
|
|
||||||
|
|
||||||
if(strstr(res, "/") != NULL)
|
|
||||||
{
|
|
||||||
CheckMaskBits(res, flCounter);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
starterIP[flCounter][3] = atoi(res);
|
|
||||||
ipsstartfl[flCounter][3] = atoi(res);
|
|
||||||
ipsendfl[flCounter][3] = atoi(res);
|
|
||||||
};
|
|
||||||
//=====================================
|
|
||||||
++flCounter;
|
++flCounter;
|
||||||
}
|
}
|
||||||
else if(strstr(curIP, "RESTORE_IMPORT_SESSION") != NULL)
|
else if(strstr(curIP, "RESTORE_IMPORT_SESSION") != NULL)
|
||||||
{
|
{
|
||||||
|
///DUMMY///
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1780,8 +1797,10 @@ void FileLoader(char *str)
|
|||||||
#pragma endregion
|
#pragma endregion
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
gTargetsOverall = gTargets;
|
||||||
|
targets = gTargets;
|
||||||
|
|
||||||
stt->doEmitionYellowFoundData("Finished. Stopping threads...");
|
stt->doEmitionYellowFoundData("List loader - [OK] (" + QString::number(gTargetsOverall + 1) + " hosts)");
|
||||||
fclose(fl);
|
fclose(fl);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1797,17 +1816,91 @@ char *GetCIDRRangeStr(char *str)
|
|||||||
char start[32] = {0};
|
char start[32] = {0};
|
||||||
char end[32] = {0};
|
char end[32] = {0};
|
||||||
char buff[16] = {0};
|
char buff[16] = {0};
|
||||||
GetOctets(str);
|
|
||||||
CheckMaskBits(str, flCounter);
|
|
||||||
|
|
||||||
strncpy(start, str, strstr(str, "/") - str);
|
int mask = 0;
|
||||||
strcpy(end, itoa(ipsendfl[0][0], buff, 10));
|
char *ptr1 = strstr(str, "/");
|
||||||
|
GetOctets(str);
|
||||||
|
|
||||||
|
mask = atoi(ptr1 + 1);
|
||||||
|
unsigned char mOctet[4];
|
||||||
|
mOctet[0] = 1;
|
||||||
|
mOctet[1] = 1;
|
||||||
|
mOctet[2] = 1;
|
||||||
|
mOctet[3] = 1;
|
||||||
|
|
||||||
|
if(mask >= 24)
|
||||||
|
{
|
||||||
|
mOctet[0] = 255;
|
||||||
|
mOctet[1] = 255;
|
||||||
|
mOctet[2] = 255;
|
||||||
|
for(int i = 0; i < mask - 24 - 1; ++i)
|
||||||
|
{
|
||||||
|
mOctet[3] = mOctet[3] << 1;
|
||||||
|
mOctet[3] |= 1;
|
||||||
|
};
|
||||||
|
mOctet[3] = mOctet[3] << 8 - (mask - 24);
|
||||||
|
}
|
||||||
|
else if(mask >= 16)
|
||||||
|
{
|
||||||
|
mOctet[0] = 255;
|
||||||
|
mOctet[1] = 255;
|
||||||
|
for(int i = 0; i < mask - 16 - 1; ++i)
|
||||||
|
{
|
||||||
|
mOctet[2] = mOctet[2] << 1;
|
||||||
|
mOctet[2] |= 1;
|
||||||
|
};
|
||||||
|
mOctet[2] = mOctet[2] << 8 - (mask - 16);
|
||||||
|
mOctet[3] = 0;
|
||||||
|
}
|
||||||
|
else if(mask >= 8)
|
||||||
|
{
|
||||||
|
mOctet[0] = 255;
|
||||||
|
for(int i = 0; i < mask - 8 - 1; ++i)
|
||||||
|
{
|
||||||
|
mOctet[1] = mOctet[1] << 1;
|
||||||
|
mOctet[1] |= 1;
|
||||||
|
};
|
||||||
|
mOctet[1] = mOctet[1] << 8 - (mask - 8);
|
||||||
|
mOctet[2] = 0;
|
||||||
|
mOctet[3] = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for(int i = 0; i < mask - 1; ++i)
|
||||||
|
{
|
||||||
|
mOctet[0] = mOctet[0]<< 1;
|
||||||
|
mOctet[0] |= 1;
|
||||||
|
};
|
||||||
|
mOctet[0] = mOctet[0] << 8 - mask;
|
||||||
|
mOctet[1] = 0;
|
||||||
|
mOctet[2] = 0;
|
||||||
|
mOctet[3] = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
strcpy(start, itoa(octet[0]&mOctet[0], buff, 10));
|
||||||
|
strcat(start, ".");
|
||||||
|
strcat(start, itoa(octet[1]&mOctet[1], buff, 10));
|
||||||
|
strcat(start, ".");
|
||||||
|
strcat(start, itoa(octet[2]&mOctet[2], buff, 10));
|
||||||
|
strcat(start, ".");
|
||||||
|
strcat(start, itoa(octet[3]&mOctet[3], buff, 10));
|
||||||
|
|
||||||
|
unsigned char tempRes = 0;
|
||||||
|
if(mOctet[0] == 255) tempRes = octet[0];
|
||||||
|
else tempRes = octet[0]|~mOctet[0];
|
||||||
|
strcat(end, itoa(tempRes, buff, 10));
|
||||||
strcat(end, ".");
|
strcat(end, ".");
|
||||||
strcat(end, itoa(ipsendfl[0][1], buff, 10));
|
if(mOctet[1] == 255) tempRes = octet[1];
|
||||||
|
else tempRes = octet[1]|~mOctet[1];
|
||||||
|
strcat(end, itoa(tempRes, buff, 10));
|
||||||
strcat(end, ".");
|
strcat(end, ".");
|
||||||
strcat(end, itoa(ipsendfl[0][2], buff, 10));
|
if(mOctet[2] == 255) tempRes = octet[2];
|
||||||
|
else tempRes = octet[2]|~mOctet[2];
|
||||||
|
strcat(end, itoa(tempRes, buff, 10));
|
||||||
strcat(end, ".");
|
strcat(end, ".");
|
||||||
strcat(end, itoa(ipsendfl[0][3], buff, 10));
|
if(mOctet[3] == 255) tempRes = octet[3];
|
||||||
|
else tempRes = octet[3]|~mOctet[3];
|
||||||
|
strcat(end, itoa(tempRes, buff, 10));
|
||||||
|
|
||||||
strcpy(result, start);
|
strcpy(result, start);
|
||||||
strcat(result, "-");
|
strcat(result, "-");
|
||||||
@ -1958,17 +2051,20 @@ int ParseArgs(int argc, char *argv[])
|
|||||||
portArr[2] = 88;
|
portArr[2] = 88;
|
||||||
portArr[3] = 8080;
|
portArr[3] = 8080;
|
||||||
portArr[4] = 8081;
|
portArr[4] = 8081;
|
||||||
portArr[5] = 60002;
|
portArr[5] = 60001;
|
||||||
portArr[6] = 8008;
|
portArr[6] = 60002;
|
||||||
portArr[7] = 8888;
|
portArr[7] = 8008;
|
||||||
portArr[8] = 441;
|
portArr[8] = 8888;
|
||||||
portArr[9] = 4111;
|
portArr[9] = 554;
|
||||||
portArr[10] = 6667;
|
portArr[10] = 9000;
|
||||||
portArr[11] = 3536;
|
portArr[11] = 441;
|
||||||
portArr[12] = 22;
|
portArr[12] = 4111;
|
||||||
portArr[13] = 21;
|
portArr[13] = 6667;
|
||||||
|
portArr[14] = 3536;
|
||||||
|
portArr[15] = 22;
|
||||||
|
portArr[16] = 21;
|
||||||
|
|
||||||
overallPorts = 13;
|
overallPorts = 16;
|
||||||
|
|
||||||
strcpy(gPorts, "--DEFAULT");
|
strcpy(gPorts, "--DEFAULT");
|
||||||
};
|
};
|
||||||
@ -2087,13 +2183,16 @@ int _GetDNSFromMask(char *mask, char *saveMask, char *saveMaskEnder)
|
|||||||
pthread_create(&thrc, NULL, (void *(*)(void*))&_connect, st );
|
pthread_create(&thrc, NULL, (void *(*)(void*))&_connect, st );
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
Sleep(10);
|
Sleep(gThreadDelay);
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
int startScan(char* args)
|
int startScan(char* args)
|
||||||
{
|
{
|
||||||
|
SSL_library_init();
|
||||||
|
|
||||||
|
horLineFlag = false;
|
||||||
flCounter = 0;
|
flCounter = 0;
|
||||||
PieAnomC1 = 0, PieWF = 0, PieBA = 0, PieSusp = 0, PieLowl = 0, PieSSH = 0;
|
PieAnomC1 = 0, PieWF = 0, PieBA = 0, PieSusp = 0, PieLowl = 0, PieSSH = 0;
|
||||||
AnomC1 = 0, BA = 0, Filt = 0, Overl = 0, Lowl = 0, Alive = 0, Activity = 0, saved = 0, Susp = 0, WF = 0, offlines = 0;
|
AnomC1 = 0, BA = 0, Filt = 0, Overl = 0, Lowl = 0, Alive = 0, Activity = 0, saved = 0, Susp = 0, WF = 0, offlines = 0;
|
||||||
@ -2152,6 +2251,7 @@ stt->doEmitionThreads(QString::number(0) + "/" + QString::number(gThreads));
|
|||||||
_passLoginFapper();
|
_passLoginFapper();
|
||||||
_NegativeFapper();
|
_NegativeFapper();
|
||||||
|
|
||||||
|
char res[256] = {0};
|
||||||
if(gMode == 0)
|
if(gMode == 0)
|
||||||
{
|
{
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
@ -2220,7 +2320,7 @@ stt->doEmitionThreads(QString::number(0) + "/" + QString::number(gThreads));
|
|||||||
pthread_create(&thrc, NULL, (void *(*)(void*))&_connect, st);
|
pthread_create(&thrc, NULL, (void *(*)(void*))&_connect, st);
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
Sleep(10);
|
Sleep(gThreadDelay);
|
||||||
++ipsstart[3];
|
++ipsstart[3];
|
||||||
};
|
};
|
||||||
ipsstart[3] = 0;
|
ipsstart[3] = 0;
|
||||||
@ -2272,9 +2372,56 @@ stt->doEmitionThreads(QString::number(0) + "/" + QString::number(gThreads));
|
|||||||
|
|
||||||
|
|
||||||
char dataEntry[1024] = {0};
|
char dataEntry[1024] = {0};
|
||||||
strcpy(dataEntry, saveEndIP);
|
|
||||||
|
|
||||||
|
int innerCounter = 0;
|
||||||
int sz = strlen(saveEndIP);
|
int sz = strlen(saveEndIP);
|
||||||
|
for(int i = 0; i < sz; ++i)
|
||||||
|
{
|
||||||
|
if(saveEndIP[i] == '\\')
|
||||||
|
{
|
||||||
|
if(saveEndIP[i + 1] == 'd')
|
||||||
|
{
|
||||||
|
strcat(dataEntry, "[09]");
|
||||||
|
++i;
|
||||||
|
innerCounter += 4;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
else if(saveEndIP[i + 1] == 'w')
|
||||||
|
{
|
||||||
|
strcat(dataEntry, "[0z]");
|
||||||
|
++i;
|
||||||
|
innerCounter += 4;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
else if(saveEndIP[i + 1] == 'l')
|
||||||
|
{
|
||||||
|
strcat(dataEntry, "[az]");
|
||||||
|
++i;
|
||||||
|
innerCounter += 4;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
QString errStr = "Error at mask (Position:" + QString::number(i+1);
|
||||||
|
errStr += ") \"";
|
||||||
|
errStr += QString(saveEndIP).mid(0, i == 0 ? 0 : i);
|
||||||
|
errStr += "<u>";
|
||||||
|
errStr += QString(saveEndIP).mid(i, i == 0 ? i+2 : i+1);
|
||||||
|
errStr += "</u>";
|
||||||
|
errStr += QString(saveEndIP).mid(i+2, strlen(saveEndIP));
|
||||||
|
errStr += "\"";
|
||||||
|
|
||||||
|
stt->doEmitionRedFoundData(errStr);
|
||||||
|
return -1;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
memset(dataEntry + innerCounter++, saveEndIP[i], 1);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
memset(dataEntry + innerCounter + 1, '\0', 1);
|
||||||
|
|
||||||
for(int i = 0; i < sz; ++i)
|
for(int i = 0; i < sz; ++i)
|
||||||
{
|
{
|
||||||
if(dataEntry[i] == '[')
|
if(dataEntry[i] == '[')
|
||||||
@ -2372,9 +2519,7 @@ stt->doEmitionThreads(QString::number(0) + "/" + QString::number(gThreads));
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
int eor0 = 0, eor1 = 0, eor2 = 0, eor3 = 0;
|
int eor0 = 0, eor1 = 0, eor2 = 0, eor3 = 0;
|
||||||
#pragma region QTGUI_Area
|
|
||||||
stt->doEmitionChangeStatus("Scanning...");
|
stt->doEmitionChangeStatus("Scanning...");
|
||||||
#pragma endregion
|
|
||||||
sockstruct *st = NULL;
|
sockstruct *st = NULL;
|
||||||
for(gC = 0; gC < flCounter; ++gC)
|
for(gC = 0; gC < flCounter; ++gC)
|
||||||
{
|
{
|
||||||
@ -2446,19 +2591,23 @@ stt->doEmitionThreads(QString::number(0) + "/" + QString::number(gThreads));
|
|||||||
pthread_create(&thrc, NULL, (void *(*)(void*))&_connect, st );
|
pthread_create(&thrc, NULL, (void *(*)(void*))&_connect, st );
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
Sleep(10);
|
Sleep(gThreadDelay);
|
||||||
|
if(ipsstartfl[gC][3] == 255) break;
|
||||||
if(ipsstartfl[gC][3] <= ipsendfl[gC][3]) ++ipsstartfl[gC][3];
|
if(ipsstartfl[gC][3] <= ipsendfl[gC][3]) ++ipsstartfl[gC][3];
|
||||||
};
|
};
|
||||||
ipsstartfl[gC][3] = 0;
|
ipsstartfl[gC][3] = 0;
|
||||||
|
if(ipsstartfl[gC][2] == 255) break;
|
||||||
if(ipsstartfl[gC][2] <= ipsendfl[gC][2]) ++ipsstartfl[gC][2];
|
if(ipsstartfl[gC][2] <= ipsendfl[gC][2]) ++ipsstartfl[gC][2];
|
||||||
};
|
};
|
||||||
ipsstartfl[gC][3] = 0;
|
ipsstartfl[gC][3] = 0;
|
||||||
ipsstartfl[gC][2] = 0;
|
ipsstartfl[gC][2] = 0;
|
||||||
|
if(ipsstartfl[gC][1] == 255) break;
|
||||||
if(ipsstartfl[gC][1] <= ipsendfl[gC][1]) ++ipsstartfl[gC][1];
|
if(ipsstartfl[gC][1] <= ipsendfl[gC][1]) ++ipsstartfl[gC][1];
|
||||||
};
|
};
|
||||||
ipsstartfl[gC][3] = 0;
|
ipsstartfl[gC][3] = 0;
|
||||||
ipsstartfl[gC][2] = 0;
|
ipsstartfl[gC][2] = 0;
|
||||||
ipsstartfl[gC][1] = 0;
|
ipsstartfl[gC][1] = 0;
|
||||||
|
if(ipsstartfl[gC][0] == 255) break;
|
||||||
if(ipsstartfl[gC][0] <= ipsendfl[gC][0]) ++ipsstartfl[gC][0];
|
if(ipsstartfl[gC][0] <= ipsendfl[gC][0]) ++ipsstartfl[gC][0];
|
||||||
};
|
};
|
||||||
ipsstartfl[gC][3] = 0;
|
ipsstartfl[gC][3] = 0;
|
||||||
|
29
resource.h
29
resource.h
@ -7,6 +7,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
|
#include <openssl/ssl.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(Q_OS_LINUX)
|
#if defined(Q_OS_LINUX)
|
||||||
#pragma once
|
#pragma once
|
||||||
@ -50,7 +51,7 @@ typedef int BOOL;
|
|||||||
#define TITLE_MAX_LENGTH 512
|
#define TITLE_MAX_LENGTH 512
|
||||||
#define RECV_MAX_LENGTH 350000
|
#define RECV_MAX_LENGTH 350000
|
||||||
#define SD_BOTH 2
|
#define SD_BOTH 2
|
||||||
#define PORTSET "80,81,88,8080,8081,60002,8008,8888,441,4111,6667,3536,22,21"
|
#define PORTSET "80,81,88,8080,8081,60001,60002,8008,8888,554,9000,441,4111,6667,3536,22,21"
|
||||||
#define IRC_CHAN "iskopasi_lab03"
|
#define IRC_CHAN "iskopasi_lab03"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
@ -70,6 +71,7 @@ extern QVector<int> vOvrlLst;
|
|||||||
extern QVector<QPointF> vect;
|
extern QVector<QPointF> vect;
|
||||||
extern bool printDelimiter;
|
extern bool printDelimiter;
|
||||||
extern QJsonArray *jsonArr;
|
extern QJsonArray *jsonArr;
|
||||||
|
extern bool gPingNScan;
|
||||||
extern bool smBit_1;
|
extern bool smBit_1;
|
||||||
extern bool smBit_2;
|
extern bool smBit_2;
|
||||||
extern bool smBit_3;
|
extern bool smBit_3;
|
||||||
@ -78,6 +80,7 @@ extern bool smBit_5;
|
|||||||
extern bool smBit_6;
|
extern bool smBit_6;
|
||||||
extern bool smBit_7;
|
extern bool smBit_7;
|
||||||
extern bool smBit_8;
|
extern bool smBit_8;
|
||||||
|
extern bool horLineFlag;
|
||||||
extern bool gDebugMode;
|
extern bool gDebugMode;
|
||||||
extern bool gNegDebugMode;
|
extern bool gNegDebugMode;
|
||||||
extern bool HTMLDebugMode;
|
extern bool HTMLDebugMode;
|
||||||
@ -89,12 +92,14 @@ extern int nickFlag;
|
|||||||
extern int offlineFlag;
|
extern int offlineFlag;
|
||||||
extern bool OnlineMsgSentFlag;
|
extern bool OnlineMsgSentFlag;
|
||||||
extern int globalPinger;
|
extern int globalPinger;
|
||||||
|
extern int gPingTimeout;
|
||||||
extern bool destroychPThFlag;
|
extern bool destroychPThFlag;
|
||||||
extern string toLowerStr(const char *str);
|
extern string toLowerStr(const char *str);
|
||||||
extern QList<int> lstOfLabels;
|
extern QList<int> lstOfLabels;
|
||||||
extern bool ME2ScanFlag, QoSScanFlag, VoiceScanFlag, PieStatFlag;
|
extern bool ME2ScanFlag, QoSScanFlag, VoiceScanFlag, PieStatFlag;
|
||||||
extern int AnomC1, Filt, Overl, Lowl, Alive, Activity, saved, Susp, WF, offlines, ssh;
|
extern int AnomC1, Filt, Overl, Lowl, Alive, saved, Susp, WF, offlines, ssh;
|
||||||
extern int PieAnomC1, PieSusp, PieBA, PieLowl, PieWF, PieSSH;
|
extern int PieAnomC1, PieSusp, PieBA, PieLowl, PieWF, PieSSH;
|
||||||
|
extern int gThreadDelay;
|
||||||
extern bool connectedToIRC;
|
extern bool connectedToIRC;
|
||||||
extern bool globalScanFlag;
|
extern bool globalScanFlag;
|
||||||
extern float QoSStep;
|
extern float QoSStep;
|
||||||
@ -141,14 +146,13 @@ extern int MaxPass, MaxLogin, MaxWFLogin, MaxWFPass, MaxSSHPass;
|
|||||||
extern double ips;
|
extern double ips;
|
||||||
extern int ovrlIPs, ipCounter;
|
extern int ovrlIPs, ipCounter;
|
||||||
extern int mode;
|
extern int mode;
|
||||||
extern unsigned long long gTargets, gTargetsOverall, targets;
|
extern unsigned long long gTargets, gTargetsOverall, targets, Activity;
|
||||||
extern volatile int BA;
|
extern volatile int BA;
|
||||||
extern volatile int cons;
|
extern volatile int cons;
|
||||||
extern volatile int BrutingThrds;
|
extern volatile int BrutingThrds;
|
||||||
extern volatile int gThreads;
|
extern volatile int gThreads;
|
||||||
extern volatile int threads;
|
extern volatile int threads;
|
||||||
extern int found, fillerFlag, indexIP;
|
extern int found, fillerFlag, indexIP;
|
||||||
extern char timeLeft[64], tempRes[32], des1[64], res[32];
|
|
||||||
extern int gMaxSize;
|
extern int gMaxSize;
|
||||||
extern char saveStartIP[128];
|
extern char saveStartIP[128];
|
||||||
extern char saveEndIP[128];
|
extern char saveEndIP[128];
|
||||||
@ -156,14 +160,12 @@ extern int gMode;
|
|||||||
extern char gRange[128];
|
extern char gRange[128];
|
||||||
extern char gFirstDom[128];
|
extern char gFirstDom[128];
|
||||||
extern char gPorts[65536];
|
extern char gPorts[65536];
|
||||||
|
extern int gMaxBrutingThreads;
|
||||||
extern int OnLiner;
|
extern int OnLiner;
|
||||||
|
|
||||||
extern int ipsstart[4], ipsend[4], ipsstartfl[8192][4], ipsendfl[8192][4], starterIP[8192][4],
|
extern int ipsstart[4], ipsend[4],
|
||||||
startNum, endNum, overallPorts, flCounter, octet[4];
|
startNum, endNum, overallPorts, flCounter, octet[4];
|
||||||
|
extern unsigned char ipsstartfl[8192][4], ipsendfl[8192][4], starterIP[8192][4];
|
||||||
|
|
||||||
//extern std::vector<std::string> dnsVec;
|
|
||||||
|
|
||||||
typedef struct ST{
|
typedef struct ST{
|
||||||
char argv[2048];
|
char argv[2048];
|
||||||
@ -185,6 +187,7 @@ struct PathStr{
|
|||||||
int flag;
|
int flag;
|
||||||
int port;
|
int port;
|
||||||
char ip[2048];
|
char ip[2048];
|
||||||
|
char cookie[1024];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct pl{
|
struct pl{
|
||||||
@ -210,7 +213,7 @@ extern QString GetNSErrorDefinition(char *str, char *defin);
|
|||||||
extern void _SaveBackupToFile();
|
extern void _SaveBackupToFile();
|
||||||
extern char* __cdecl strstri(char *_Str, const char *_SubStr);
|
extern char* __cdecl strstri(char *_Str, const char *_SubStr);
|
||||||
extern char* _getAttribute(char *str, char *attrib);
|
extern char* _getAttribute(char *str, char *attrib);
|
||||||
extern char *FindFirstOcc(char *str, char *delim);
|
extern char *_findFirstOcc(char *str, char *delim);
|
||||||
class Lexems
|
class Lexems
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -228,7 +231,7 @@ class Lexems
|
|||||||
|
|
||||||
int _header(char *ip, int port, char str[], Lexems *l, PathStr *ps, std::vector<std::string> *lst, char *rBuff);
|
int _header(char *ip, int port, char str[], Lexems *l, PathStr *ps, std::vector<std::string> *lst, char *rBuff);
|
||||||
int _filler(int p, char* buffcpy, char* ipi, int recd, Lexems *lx, char *hl);
|
int _filler(int p, char* buffcpy, char* ipi, int recd, Lexems *lx, char *hl);
|
||||||
int globalSearchNeg(const char *buffcpy, char *ip);
|
int globalSearchNeg(const char *buffcpy, char *ip, int port);
|
||||||
};
|
};
|
||||||
|
|
||||||
class Connector
|
class Connector
|
||||||
@ -236,8 +239,8 @@ class Connector
|
|||||||
public:
|
public:
|
||||||
int _Updater();
|
int _Updater();
|
||||||
|
|
||||||
lopaStr _ftpBrute(char *ip, int port, PathStr *ps);
|
lopaStr _FTPLobby(char *ip, int port, PathStr *ps);
|
||||||
lopaStr _BALobby(char *ip, int port, char *path, char *method, char *data);
|
lopaStr _BALobby(char *cookie, char *ip, int port, char *path, char *method, char *data);
|
||||||
lopaStr _WFLobby(char *cookie, char *ip, int port, char *methodVal, char *actionVal, char *userVal, char *passVal, char *formVal);
|
lopaStr _WFLobby(char *cookie, char *ip, int port, char *methodVal, char *actionVal, char *userVal, char *passVal, char *formVal);
|
||||||
lopaStr _IPCameraBLobby(char *ip, int port, char *SPEC);
|
lopaStr _IPCameraBLobby(char *ip, int port, char *SPEC);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user