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 "STh.h"
|
||||
|
||||
void ActivityDrawerTh_HorNet::doEmitDrawActivityLine()
|
||||
void ActivityDrawerTh_HorNet::doEmitDrawActivityLine(QString data)
|
||||
{
|
||||
emit adtHN->sDrawActivityLine();
|
||||
emit adtHN->sDrawActivityLine(data);
|
||||
};
|
||||
void ActivityDrawerTh_HorNet::doEmitDrawGrid()
|
||||
{
|
||||
@ -23,14 +23,15 @@ void ActivityDrawerTh_HorNet::run()
|
||||
{
|
||||
adtHN->doEmitDrawGrid();
|
||||
int maxAct = Activity + 1;
|
||||
int nm = 0;
|
||||
while(true)
|
||||
{
|
||||
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);
|
||||
stt->doEmitionSetActivityValue(QString::number(Activity) + "b");
|
||||
adtHN->doEmitDrawActivityLine(QString::number(Activity) + "b");
|
||||
Activity = 0;
|
||||
adtHN->doEmitDrawActivityLine();
|
||||
msleep(130);
|
||||
};
|
||||
};
|
@ -8,11 +8,11 @@ class ActivityDrawerTh_HorNet : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public: signals: void sDrawActivityLine();
|
||||
public: signals: void sDrawActivityLine(QString);
|
||||
public: signals: void sDrawGrid();
|
||||
|
||||
public:
|
||||
static void doEmitDrawActivityLine();
|
||||
static void doEmitDrawActivityLine(QString data);
|
||||
static void doEmitDrawGrid();
|
||||
protected:
|
||||
void run();
|
||||
|
@ -4,9 +4,9 @@ void DrawerTh_VoiceScanner::doEmitAddLine()
|
||||
{
|
||||
emit vsTh->sAddLine();
|
||||
};
|
||||
void DrawerTh_VoiceScanner::doEmitDrawGrid()
|
||||
void DrawerTh_VoiceScanner::doEmitDrawGrid(int factor)
|
||||
{
|
||||
emit vsTh->sDrawGrid();
|
||||
emit vsTh->sDrawGrid(factor);
|
||||
};
|
||||
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()
|
||||
{
|
||||
vsTh->doEmitDrawGrid();
|
||||
vsTh->doEmitDrawGrid(150);
|
||||
vsTh->doEmitDrawTextPlacers();
|
||||
while(VoiceScanFlag)
|
||||
{
|
||||
|
@ -11,11 +11,11 @@ class DrawerTh_VoiceScanner : public QThread
|
||||
|
||||
public:
|
||||
public: signals: void sAddLine();
|
||||
public: signals: void sDrawGrid();
|
||||
public: signals: void sDrawGrid(int factor);
|
||||
public: signals: void sDrawTextPlacers();
|
||||
public:
|
||||
void doEmitAddLine();
|
||||
void doEmitDrawGrid();
|
||||
void doEmitDrawGrid(int factor);
|
||||
void doEmitDrawTextPlacers();
|
||||
protected:
|
||||
void run();
|
||||
|
9
STh.cpp
9
STh.cpp
@ -88,15 +88,14 @@ void STh::doEmitionChangeBA(QString str)
|
||||
{
|
||||
emit stt->changeBAValue(str);
|
||||
};
|
||||
void STh::doEmitionSetActivityValue(QString str)
|
||||
{
|
||||
emit stt->SetActivityValue(str);
|
||||
};
|
||||
void STh::doEmitionOffline(QString str)
|
||||
{
|
||||
emit stt->changeOffline(str);
|
||||
};
|
||||
|
||||
void STh::doEmitionDataSaved(bool status)
|
||||
{
|
||||
emit stt->signalDataSaved(status);
|
||||
};
|
||||
void STh::run()
|
||||
{
|
||||
startScan(inputStr);
|
||||
|
7
STh.h
7
STh.h
@ -11,6 +11,7 @@ class STh : public QThread
|
||||
public:
|
||||
|
||||
public:
|
||||
static void doEmitionDataSaved(bool status);
|
||||
static void doEmitionStartScanIP();
|
||||
static void doEmitionStartScanDNS();
|
||||
static void doEmitionStartScanImport();
|
||||
@ -32,18 +33,16 @@ public:
|
||||
static void doEmitionChangeBA(QString);
|
||||
static void doEmitionOffline(QString);
|
||||
static void doEmitionBAData(QString str);
|
||||
static void doEmitionSetActivityValue(QString);
|
||||
static void doEmitionDebugFoundData(QString);
|
||||
static void doEmitionShowRedVersion();
|
||||
signals:
|
||||
|
||||
|
||||
signals:
|
||||
public: signals: void showRedVersion();
|
||||
public: signals: void startScanIP();
|
||||
public: signals: void startScanDNS();
|
||||
public: signals: void startScanImport();
|
||||
|
||||
public: signals: void SetActivityValue(QString);
|
||||
public: signals: void signalDataSaved(bool);
|
||||
public: signals: void changeGreenBAData(QString);
|
||||
public: signals: void changeRedBAData(QString);
|
||||
public: signals: void changeBAData(QString);
|
||||
|
1131
connector.cpp
1131
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
|
1267
finder.cpp
1267
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
|
||||
service temporarily unavailable
|
||||
service is temporary unavailable
|
||||
service unavailable
|
||||
403 - forbidden
|
||||
403 access denied
|
||||
is still available
|
||||
php framework
|
||||
BlueBean
|
||||
403 forbidden
|
||||
"./cgi-bin/start.cgi?UID=-1&TEMP="
|
||||
408 request time-out
|
||||
421 service not available
|
||||
500 - internal server error
|
||||
505 http version
|
||||
Comming Soon
|
||||
is sample html
|
||||
google_ad_client
|
||||
/js/thickbox.js
|
||||
google_ad_slot
|
||||
plone
|
||||
openmail
|
||||
institute
|
||||
google-analytics.com
|
||||
googlesyndication
|
||||
temporarily offline
|
||||
temporarily unavailable
|
||||
MELOOK
|
||||
>log in
|
||||
.js_check.html
|
||||
/about-our-site.html
|
||||
@ -207,7 +223,6 @@ create new account
|
||||
credit
|
||||
currently measuring
|
||||
currently unreachable
|
||||
customer
|
||||
cs3 dreamweaver
|
||||
FrontPage
|
||||
TESTPAGE
|
||||
@ -255,7 +270,8 @@ Dreamweaver MX
|
||||
due to maintance
|
||||
dsnextgen.com
|
||||
dsparking.com
|
||||
dvr
|
||||
DATA LAN DISK
|
||||
TEST SITE
|
||||
dxclient
|
||||
eap web interface
|
||||
echolife
|
||||
@ -268,6 +284,7 @@ enigma web interface
|
||||
entertainment
|
||||
equipe ahcom
|
||||
erro ao resolver
|
||||
The requested URL
|
||||
error.asp
|
||||
empty page
|
||||
errors.umi-cms.ru
|
||||
@ -299,13 +316,14 @@ gaiyou
|
||||
glassfish server
|
||||
globesurfer
|
||||
gmbh
|
||||
grupo industrial
|
||||
industrial
|
||||
help.html
|
||||
market
|
||||
guarantee
|
||||
h.264
|
||||
h264
|
||||
hc.ru
|
||||
hectrix ltd
|
||||
hikvision-webs
|
||||
hipname
|
||||
hipoteka
|
||||
hitron technologies
|
||||
@ -341,7 +359,7 @@ into the public_html directory
|
||||
invalid url
|
||||
iomega
|
||||
iis windows
|
||||
ip surveillance
|
||||
customer
|
||||
is functioning normally
|
||||
is under construction
|
||||
ispmanager control panel
|
||||
@ -368,10 +386,23 @@ login page
|
||||
login para acesso
|
||||
logistics
|
||||
lvrweb
|
||||
epanel
|
||||
commerc
|
||||
official website
|
||||
WebFig
|
||||
in manutenzione
|
||||
Domain is not authorized
|
||||
in costruzione
|
||||
mail_manager
|
||||
magnesium
|
||||
management console
|
||||
mbanking
|
||||
olaHola
|
||||
Wireless N ADSL
|
||||
Account Suspended
|
||||
Session limit reached
|
||||
Access Error: Access Denied
|
||||
Aethra
|
||||
meble
|
||||
microsoft exchange
|
||||
mijn account
|
||||
@ -381,7 +412,6 @@ mobile_viewer_login
|
||||
mobile login
|
||||
Mobile Parking
|
||||
modem (administrator
|
||||
mshtml
|
||||
m&w
|
||||
munin
|
||||
my account
|
||||
|
194
nesca_3.cpp
194
nesca_3.cpp
@ -456,8 +456,13 @@ void SetValidators()
|
||||
ui->iptoLine_value->setValidator(validator);
|
||||
ui->iptoLine_value_2->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);
|
||||
|
||||
validator = new QRegExpValidator(QRegExp("(\\w|-|\\.)+((\\w|-|\\.)+)+"), NULL);
|
||||
@ -781,26 +786,44 @@ void nesca_3::slotDrawActivityGrid()
|
||||
|
||||
int gWidth = ui->graphicActivityGrid->width();
|
||||
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
|
||||
for(int i = 0; i < 100; i+=10)
|
||||
{
|
||||
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();
|
||||
QPen penActivity(QColor(170, 170, 170, 150), 0.1);
|
||||
QPen rpenActivity(QColor(255, 0, 0, 150), 0.1);
|
||||
QPen penActivity(QColor(170, 170, 170, factor), 0.1);
|
||||
QPen rpenActivity(QColor(255, 0, 0, factor), 0.1);
|
||||
|
||||
int gWidth = ui->graphicLog->width();
|
||||
int gHeight = ui->graphicLog->height();
|
||||
@ -820,18 +843,6 @@ void nesca_3::slotDrawVoiceGrid()
|
||||
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()
|
||||
{
|
||||
if(ME2ScanFlag == false)
|
||||
@ -985,6 +996,7 @@ void nesca_3::activateVoiceScanBut()
|
||||
void nesca_3::slotUpdatePie()
|
||||
{
|
||||
sceneGraph->clear();
|
||||
vsTh->doEmitDrawGrid(70);
|
||||
|
||||
int goods = saved;
|
||||
int nAlive = found - goods;
|
||||
@ -1061,15 +1073,27 @@ void nesca_3::slotUpdatePie()
|
||||
titem->setDefaultTextColor(Qt::darkRed);
|
||||
|
||||
int PieX = 155;
|
||||
int PieW = 114;
|
||||
int PieW = 112;
|
||||
|
||||
//Alives
|
||||
QGraphicsEllipseItem* item = new QGraphicsEllipseItem(PieX, 2, PieW, 97);
|
||||
item->setStartAngle(0);
|
||||
item->setSpanAngle(perc0);
|
||||
item->setBrush(QBrush(Qt::white));
|
||||
sceneGraph->addItem(item);
|
||||
|
||||
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->setSpanAngle(perc0);
|
||||
item->setBrush(QBrush(Qt::white));
|
||||
sceneGraph->addItem(item);
|
||||
};
|
||||
//Anomalies
|
||||
if(perc1 > 0)
|
||||
{
|
||||
@ -1573,7 +1597,7 @@ void nesca_3::SaySmthng()
|
||||
if(ui->shoutBox->text().size() > 0)
|
||||
{
|
||||
char temp[2048] = {0};
|
||||
|
||||
globalPinger = 0;
|
||||
PhraseIndex = 0;
|
||||
if(PhraseLog.size() > 50)
|
||||
{
|
||||
@ -1742,7 +1766,6 @@ void nesca_3::slotChangeCPModeTo1251()
|
||||
ui->ircText->verticalScrollBar()->setValue(ui->ircText->verticalScrollBar()->maximum());
|
||||
ui->ircRaw->verticalScrollBar()->setValue(ui->ircRaw->verticalScrollBar()->maximum());
|
||||
};
|
||||
|
||||
void nesca_3::onLinkClicked(QUrl link)
|
||||
{
|
||||
QString lnk = link.toString();
|
||||
@ -1762,10 +1785,6 @@ void nesca_3::onLinkClicked(QUrl link)
|
||||
QDesktopServices::openUrl(link);
|
||||
};
|
||||
};
|
||||
void nesca_3::SetActivityValue(QString val)
|
||||
{
|
||||
ui->labelActivity_Value->setText(val);
|
||||
};
|
||||
void nesca_3::slotRestartIRC()
|
||||
{
|
||||
ircPTh->terminate();
|
||||
@ -1788,7 +1807,6 @@ void nesca_3::slotIRCGetTopic(QString str)
|
||||
globalIRCText += rData + "\n";
|
||||
ui->ircText->append(rData);
|
||||
};
|
||||
|
||||
//unsigned char jpgHeader[623] = {
|
||||
// 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,
|
||||
@ -2133,7 +2151,6 @@ void nesca_3::slotShowNicks()
|
||||
ui->nickList->lower();
|
||||
};
|
||||
};
|
||||
|
||||
QRegExp _rOutProt(" HTTP/1.\\d+");
|
||||
QRegExp _rOutPath(" /(\\w|\\.|,|/|:|-|_|\\?|!|\\@|#|\\$|%|\\^|&|\\*|\\(|\\)|=|\\+|<|>|;|:|\"|'|~|\\[|\\])* ");
|
||||
QRegExp _rOutHost("Host: ((\\w|\\d|\\.|:|/)*)\\r\\n");
|
||||
@ -2694,7 +2711,6 @@ QGraphicsRectItem* pbItem = NULL;
|
||||
QGraphicsRectItem* pbBlackRectItem = NULL;
|
||||
QPen pbPen(QColor(227, 227, 227, 150));
|
||||
QFont pbPointerFont;
|
||||
|
||||
void nesca_3::slotPBUpdate()
|
||||
{
|
||||
int val = this->perc;
|
||||
@ -2744,6 +2760,11 @@ void nesca_3::slotPBUpdate()
|
||||
pbScene->addLine(4, 77, 6, 77, 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"
|
||||
void nesca_3::ConnectEvrthng()
|
||||
{
|
||||
@ -2786,9 +2807,13 @@ void nesca_3::ConnectEvrthng()
|
||||
connect ( ui->startScanButton_3, SIGNAL( clicked() ), this, SLOT( startScanButtonClicked() ) );
|
||||
connect ( ui->startScanButton_4, SIGNAL( clicked() ), this, SLOT( startScanButtonClickedDNS() ) );
|
||||
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->importThreads, 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->iptoLine_value, 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(changeGreenBAData(QString)), this, SLOT(appendGreenBAData(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(changeRedIRCData(QString)), this, SLOT(appendRedIRCText(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(changeIRCDataOut(QString)), this, SLOT(appendDefaultIRCTextOut(QString)));
|
||||
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 ( dtHN, SIGNAL(sAddDelimLines()), this, SLOT(slotDrawDelimLines()));
|
||||
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(sAddDelimLines()), this, SLOT(slotQoSDrawDelimLines()));
|
||||
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 ( psTh, SIGNAL(sUpdatePie()), this, SLOT(slotUpdatePie()) );
|
||||
connect ( irc_nmb, SIGNAL(sBlinkMessage()), this, SLOT(slotBlinkMessage()) );
|
||||
@ -3028,6 +3053,58 @@ void RestoreSession()
|
||||
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)
|
||||
{
|
||||
lex = strstr(resStr, "[PERSKEY]:") + strlen("[PERSKEY]:");
|
||||
@ -3243,7 +3320,7 @@ void _startMsgCheck()
|
||||
|
||||
_startVerCheck();
|
||||
_startMsgCheck();
|
||||
}
|
||||
};
|
||||
void nesca_3::playFcknSound()
|
||||
{
|
||||
QSound::play("00000036.wav");
|
||||
@ -3294,6 +3371,20 @@ void nesca_3::ChangeTrackerOK(bool 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)
|
||||
{
|
||||
@ -3428,7 +3519,6 @@ void nesca_3::STTTerminate()
|
||||
stt->doEmitionChangeBA("0");
|
||||
BrutingThrds = 0;
|
||||
cons = 0;
|
||||
ui->labelActivity_Value->setText("0");
|
||||
setButtonStyleArea();
|
||||
ui->lineEditStartIPDNS->setText("");
|
||||
ui->startScanButton_3->setText("Start");
|
||||
@ -3584,6 +3674,18 @@ void nesca_3::ChangeLabelThreads_ValueChanged(QString str)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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);
|
||||
void SSLConnect(QString str);
|
||||
protected slots:
|
||||
void MaxBrutingThr_ChangeValue(QString str);
|
||||
void ThreadDelay_ChangeValue(QString val);
|
||||
void ChangePingerOK(bool val);
|
||||
void changeNSTrackLabel(bool status);
|
||||
void slotPBUpdate();
|
||||
void DNSLine_ValueChanged(QString str);
|
||||
void slotChangeCPModeToUTF();
|
||||
@ -79,7 +83,7 @@ protected:
|
||||
void slotUpdatePie();
|
||||
void slotClearLogs();
|
||||
void slotRestartIRC();
|
||||
void slotDrawVoiceGrid();
|
||||
void slotDrawVoiceGrid(int factor);
|
||||
void slotDrawTextPlacers();
|
||||
void onLinkClicked(QUrl link);
|
||||
void CheckPersKey();
|
||||
@ -97,7 +101,8 @@ protected:
|
||||
void slotQoSAddGrid();
|
||||
void slotVoiceAddLine();
|
||||
void slotDrawDelimLines();
|
||||
void slotDrawActivityLine();
|
||||
void slotDrawActivityLine(QString data);
|
||||
void slotDrawActivityGrid();
|
||||
void activateME2ScanScene();
|
||||
void activateQoSScanBut();
|
||||
void activateVoiceScanBut();
|
||||
@ -106,7 +111,6 @@ protected:
|
||||
void slotQoSAddLine();
|
||||
void slotAddLine(int x1, int y1, int x2, int y2);
|
||||
void slotDrawGrid();
|
||||
void slotDrawActivityGrid();
|
||||
void exitButtonClicked();
|
||||
void trayButtonClicked();
|
||||
void mouseMoveEvent(QMouseEvent * event);
|
||||
@ -116,9 +120,9 @@ protected:
|
||||
void startScanButtonClicked();
|
||||
void startScanButtonClickedDNS();
|
||||
void saveOptions();
|
||||
void SetActivityValue(QString val);
|
||||
void ChangeTrackerOK(bool val);
|
||||
void ChangeLabelThreads_ValueChanged(QString);
|
||||
void PingTO_ChangeValue(QString);
|
||||
void ChangeLabelTO_ValueChanged(QString);
|
||||
void appendErrText(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>
|
||||
</property>
|
||||
<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 name="maxLength">
|
||||
<number>4096</number>
|
||||
@ -674,7 +674,7 @@
|
||||
<string notr="true">color: rgb(216, 216, 216);background-color: rgb(56, 56, 56);</string>
|
||||
</property>
|
||||
<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 name="maxLength">
|
||||
<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>
|
||||
</property>
|
||||
<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 name="placeholderText">
|
||||
<string>80,81,8080,8888,21,6667,7000</string>
|
||||
@ -1173,7 +1173,7 @@ border-radius: 3px;</string>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>250</x>
|
||||
<y>30</y>
|
||||
<y>10</y>
|
||||
<width>121</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
@ -1203,7 +1203,7 @@ border-radius: 3px;</string>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>30</x>
|
||||
<y>30</y>
|
||||
<y>10</y>
|
||||
<width>211</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
@ -1233,7 +1233,7 @@ border-radius: 3px;</string>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>30</x>
|
||||
<y>60</y>
|
||||
<y>35</y>
|
||||
<width>341</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
@ -1263,7 +1263,7 @@ border-radius: 3px;</string>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>379</x>
|
||||
<y>30</y>
|
||||
<y>10</y>
|
||||
<width>62</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
@ -1293,7 +1293,7 @@ border-radius: 3px;</string>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>380</x>
|
||||
<y>60</y>
|
||||
<y>35</y>
|
||||
<width>61</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
@ -1337,6 +1337,200 @@ border-radius: 3px;</string>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</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 class="QLabel" name="labelNesca_3">
|
||||
@ -1611,7 +1805,7 @@ border-radius: 3px;</string>
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>445</y>
|
||||
<width>451</width>
|
||||
<width>453</width>
|
||||
<height>326</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -1692,7 +1886,7 @@ p, li { white-space: pre-wrap; }
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Saved/Filtered:</string>
|
||||
<string>Saved/Online:</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>false</bool>
|
||||
@ -2367,7 +2561,7 @@ p, li { white-space: pre-wrap; }
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>445</y>
|
||||
<width>451</width>
|
||||
<width>453</width>
|
||||
<height>326</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -2462,12 +2656,12 @@ background-color: #000000;</string>
|
||||
<string>:NS-IRC</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="labelActivity">
|
||||
<widget class="QLabel" name="labelTracker">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>200</x>
|
||||
<y>783</y>
|
||||
<width>41</width>
|
||||
<width>45</width>
|
||||
<height>10</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -2495,33 +2689,12 @@ background-color: #000000;</string>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Activity:</string>
|
||||
<string>NS-Track:</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</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">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
@ -2646,7 +2819,7 @@ background-color: #000000;</string>
|
||||
<widget class="QPushButton" name="clearLogBut">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>472</x>
|
||||
<x>475</x>
|
||||
<y>445</y>
|
||||
<width>16</width>
|
||||
<height>21</height>
|
||||
@ -2985,6 +3158,25 @@ background-color: #000000;</string>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</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>BAText</zorder>
|
||||
<zorder>labelNesca_3</zorder>
|
||||
@ -3032,8 +3224,7 @@ background-color: #000000;</string>
|
||||
<zorder>labelOffline_Value</zorder>
|
||||
<zorder>switcherBut</zorder>
|
||||
<zorder>IRCModeBut</zorder>
|
||||
<zorder>labelActivity</zorder>
|
||||
<zorder>labelActivity_Value</zorder>
|
||||
<zorder>labelTracker</zorder>
|
||||
<zorder>graphicActivityGrid</zorder>
|
||||
<zorder>graphicActivity</zorder>
|
||||
<zorder>VoiceScanBut</zorder>
|
||||
@ -3054,6 +3245,7 @@ background-color: #000000;</string>
|
||||
<zorder>DredLabel</zorder>
|
||||
<zorder>labelSSH</zorder>
|
||||
<zorder>rVerLabel</zorder>
|
||||
<zorder>NSTrackStatusLabel</zorder>
|
||||
</widget>
|
||||
<widget class="QWidget" name="widgetIRC" native="true">
|
||||
<property name="geometry">
|
||||
|
@ -2,12 +2,14 @@
|
||||
#include "STh.h"
|
||||
#include "resource.h"
|
||||
|
||||
bool horLineFlag = false;
|
||||
QJsonArray *jsonArr = new QJsonArray();
|
||||
static int portArr[65536] = {0};
|
||||
int gThreadDelay = 10;
|
||||
int gC = 0;
|
||||
int gTimeOut = 3;
|
||||
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 GlobalNegativeSize = 0;
|
||||
int ovrlIPs = 0, ipCounter = 0;
|
||||
@ -17,8 +19,10 @@ int gMaxSize = 65536;
|
||||
int gMode;
|
||||
int OnLiner = 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];
|
||||
unsigned char ipsstartfl[8192][4], ipsendfl[8192][4], starterIP[8192][4];
|
||||
int gPingTimeout = 2000;
|
||||
double ips = 0;
|
||||
char top_level_domain[128] = {0};
|
||||
char startM[64] = {0}, endM[64] = {0};
|
||||
@ -27,7 +31,7 @@ char **GlobalNegatives = 0;
|
||||
char **loginLst, **passLst;
|
||||
char **wfLoginLst, **wfPassLst;
|
||||
char **sshlpLst;
|
||||
char des1[64] = {0}, res[32]= {0};
|
||||
//char des1[64] = {0}, res[32]= {0};
|
||||
char saveStartIP[128] = {0};
|
||||
char saveEndIP[128] = {0};
|
||||
char gRange[128] = {0};
|
||||
@ -41,8 +45,9 @@ char metaTargets[256] = {0};
|
||||
char metaETA[256] = {0};
|
||||
char metaOffline[256] = {0};
|
||||
bool ErrLogFirstTime = true;
|
||||
bool gPingNScan = 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 cons = 0;
|
||||
volatile int BA = 0;
|
||||
@ -318,6 +323,40 @@ void _SaveBackupToFile()
|
||||
strcat(saveStr, "\n");
|
||||
strcat(saveBuffer, 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]:");
|
||||
strcat(saveStr, trcPersKey);
|
||||
@ -693,7 +732,10 @@ void *_tracker()
|
||||
if(strstr(rBuffT, "201 Created") != NULL)
|
||||
{
|
||||
#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
|
||||
}
|
||||
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[])
|
||||
{
|
||||
gTargets += 256*256*256*(ipsend[0] - ipsstart[0]);
|
||||
if (gTargets < 0) gTargets *= (-1);
|
||||
gTargets += 256 * 256 * (ipsend[1] - ipsstart[1]);
|
||||
if (gTargets < 0) gTargets *= (-1);
|
||||
gTargets += 256 * (ipsend[2] - ipsstart[2]);
|
||||
if (gTargets < 0) gTargets *= (-1);
|
||||
gTargets += (ipsend[3] - ipsstart[3]);
|
||||
if (gTargets < 0) gTargets *= (-1);
|
||||
|
||||
gTargetsOverall = gTargets;
|
||||
gTargetsOverall = gTargets - 1;
|
||||
return gTargets;
|
||||
};
|
||||
//#include <sys/types.h>
|
||||
@ -1505,7 +1527,8 @@ int fInit(int InitMode, char *gR)
|
||||
else
|
||||
{
|
||||
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.
|
||||
{
|
||||
@ -1589,7 +1612,8 @@ int fInit(int InitMode, char *gR)
|
||||
}
|
||||
else if (InitMode == -1)
|
||||
{
|
||||
targets = numOfIpsFL();
|
||||
//targets = numOfIpsFL();
|
||||
///DUMMY///
|
||||
};
|
||||
};
|
||||
void FileLoader(char *str)
|
||||
@ -1617,7 +1641,6 @@ void FileLoader(char *str)
|
||||
continue;
|
||||
};
|
||||
|
||||
|
||||
if(strstr(curIP, "-") != NULL)
|
||||
{
|
||||
bool firstPart = true;
|
||||
@ -1677,6 +1700,11 @@ void FileLoader(char *str)
|
||||
stt->doEmitionRedFoundData(QString(tempMsg));
|
||||
#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;
|
||||
}
|
||||
else if(strstr(curIP, "/") != NULL)
|
||||
@ -1685,93 +1713,82 @@ void FileLoader(char *str)
|
||||
char *str2;
|
||||
char res[8] = {0};
|
||||
|
||||
int mask = 0;
|
||||
char *ptr1 = strstr(curIP, "/");
|
||||
GetOctets(curIP);
|
||||
|
||||
if(strstr(curIP, ".") != NULL)
|
||||
{
|
||||
str1 = strstr(curIP, "."); //1 byte
|
||||
strncpy(res, curIP, (int)((char*)str1 - curIP));
|
||||
}
|
||||
else strcpy(res, curIP);
|
||||
mask = atoi(ptr1 + 1);
|
||||
unsigned char mOctet[4];
|
||||
mOctet[0] = 1;
|
||||
mOctet[1] = 1;
|
||||
mOctet[2] = 1;
|
||||
mOctet[3] = 1;
|
||||
|
||||
if(strstr(res, "/") != NULL)
|
||||
if(mask >= 24)
|
||||
{
|
||||
CheckMaskBits(res, flCounter);
|
||||
continue;
|
||||
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
|
||||
{
|
||||
starterIP[flCounter][0] = atoi(res);
|
||||
ipsstartfl[flCounter][0] = atoi(res);
|
||||
ipsendfl[flCounter][0] = atoi(res);
|
||||
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;
|
||||
};
|
||||
ZeroMemory(res, sizeof(res));
|
||||
|
||||
if(strstr(str1 + 1, ".") != NULL)
|
||||
|
||||
unsigned char ocRes = 0;
|
||||
for(int i = 0; i < 4; ++i)
|
||||
{
|
||||
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);
|
||||
ocRes = octet[i]&mOctet[i];
|
||||
starterIP[flCounter][i] = ocRes;
|
||||
ipsstartfl[flCounter][i] = ocRes;
|
||||
if(mOctet[i] == 255) ipsendfl[flCounter][i] = octet[i];
|
||||
else ipsendfl[flCounter][i] = octet[i]|~mOctet[i];
|
||||
};
|
||||
|
||||
ZeroMemory(res, sizeof(res));
|
||||
|
||||
if(strstr(str2 + 1, ".") != NULL)
|
||||
{
|
||||
str1 = strstr(str2 + 1, "."); //3 byte
|
||||
strncpy(res, str2 + 1, (int)((char*)str1 - str2) - 1);
|
||||
}
|
||||
else strcpy(res, str2 + 1);
|
||||
|
||||
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));
|
||||
|
||||
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);
|
||||
};
|
||||
//=====================================
|
||||
gTargets += pow((float)2, (32 - mask)) - 1;
|
||||
++flCounter;
|
||||
}
|
||||
else if(strstr(curIP, "RESTORE_IMPORT_SESSION") != NULL)
|
||||
{
|
||||
|
||||
///DUMMY///
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1780,8 +1797,10 @@ void FileLoader(char *str)
|
||||
#pragma endregion
|
||||
};
|
||||
};
|
||||
gTargetsOverall = gTargets;
|
||||
targets = gTargets;
|
||||
|
||||
stt->doEmitionYellowFoundData("Finished. Stopping threads...");
|
||||
stt->doEmitionYellowFoundData("List loader - [OK] (" + QString::number(gTargetsOverall + 1) + " hosts)");
|
||||
fclose(fl);
|
||||
}
|
||||
else
|
||||
@ -1797,18 +1816,92 @@ char *GetCIDRRangeStr(char *str)
|
||||
char start[32] = {0};
|
||||
char end[32] = {0};
|
||||
char buff[16] = {0};
|
||||
|
||||
int mask = 0;
|
||||
char *ptr1 = strstr(str, "/");
|
||||
GetOctets(str);
|
||||
CheckMaskBits(str, flCounter);
|
||||
|
||||
strncpy(start, str, strstr(str, "/") - str);
|
||||
strcpy(end, itoa(ipsendfl[0][0], buff, 10));
|
||||
strcat(end, ".");
|
||||
strcat(end, itoa(ipsendfl[0][1], buff, 10));
|
||||
strcat(end, ".");
|
||||
strcat(end, itoa(ipsendfl[0][2], buff, 10));
|
||||
strcat(end, ".");
|
||||
strcat(end, itoa(ipsendfl[0][3], buff, 10));
|
||||
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, ".");
|
||||
if(mOctet[1] == 255) tempRes = octet[1];
|
||||
else tempRes = octet[1]|~mOctet[1];
|
||||
strcat(end, itoa(tempRes, buff, 10));
|
||||
strcat(end, ".");
|
||||
if(mOctet[2] == 255) tempRes = octet[2];
|
||||
else tempRes = octet[2]|~mOctet[2];
|
||||
strcat(end, itoa(tempRes, buff, 10));
|
||||
strcat(end, ".");
|
||||
if(mOctet[3] == 255) tempRes = octet[3];
|
||||
else tempRes = octet[3]|~mOctet[3];
|
||||
strcat(end, itoa(tempRes, buff, 10));
|
||||
|
||||
strcpy(result, start);
|
||||
strcat(result, "-");
|
||||
strcat(result, end);
|
||||
@ -1958,17 +2051,20 @@ int ParseArgs(int argc, char *argv[])
|
||||
portArr[2] = 88;
|
||||
portArr[3] = 8080;
|
||||
portArr[4] = 8081;
|
||||
portArr[5] = 60002;
|
||||
portArr[6] = 8008;
|
||||
portArr[7] = 8888;
|
||||
portArr[8] = 441;
|
||||
portArr[9] = 4111;
|
||||
portArr[10] = 6667;
|
||||
portArr[11] = 3536;
|
||||
portArr[12] = 22;
|
||||
portArr[13] = 21;
|
||||
portArr[5] = 60001;
|
||||
portArr[6] = 60002;
|
||||
portArr[7] = 8008;
|
||||
portArr[8] = 8888;
|
||||
portArr[9] = 554;
|
||||
portArr[10] = 9000;
|
||||
portArr[11] = 441;
|
||||
portArr[12] = 4111;
|
||||
portArr[13] = 6667;
|
||||
portArr[14] = 3536;
|
||||
portArr[15] = 22;
|
||||
portArr[16] = 21;
|
||||
|
||||
overallPorts = 13;
|
||||
overallPorts = 16;
|
||||
|
||||
strcpy(gPorts, "--DEFAULT");
|
||||
};
|
||||
@ -2087,13 +2183,16 @@ int _GetDNSFromMask(char *mask, char *saveMask, char *saveMaskEnder)
|
||||
pthread_create(&thrc, NULL, (void *(*)(void*))&_connect, st );
|
||||
};
|
||||
#endif
|
||||
Sleep(10);
|
||||
Sleep(gThreadDelay);
|
||||
#pragma endregion
|
||||
};
|
||||
};
|
||||
|
||||
int startScan(char* args)
|
||||
{
|
||||
SSL_library_init();
|
||||
|
||||
horLineFlag = false;
|
||||
flCounter = 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;
|
||||
@ -2152,6 +2251,7 @@ stt->doEmitionThreads(QString::number(0) + "/" + QString::number(gThreads));
|
||||
_passLoginFapper();
|
||||
_NegativeFapper();
|
||||
|
||||
char res[256] = {0};
|
||||
if(gMode == 0)
|
||||
{
|
||||
#if defined(WIN32)
|
||||
@ -2220,7 +2320,7 @@ stt->doEmitionThreads(QString::number(0) + "/" + QString::number(gThreads));
|
||||
pthread_create(&thrc, NULL, (void *(*)(void*))&_connect, st);
|
||||
};
|
||||
#endif
|
||||
Sleep(10);
|
||||
Sleep(gThreadDelay);
|
||||
++ipsstart[3];
|
||||
};
|
||||
ipsstart[3] = 0;
|
||||
@ -2272,9 +2372,56 @@ stt->doEmitionThreads(QString::number(0) + "/" + QString::number(gThreads));
|
||||
|
||||
|
||||
char dataEntry[1024] = {0};
|
||||
strcpy(dataEntry, saveEndIP);
|
||||
|
||||
int sz = strlen(saveEndIP);
|
||||
int innerCounter = 0;
|
||||
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)
|
||||
{
|
||||
if(dataEntry[i] == '[')
|
||||
@ -2372,9 +2519,7 @@ stt->doEmitionThreads(QString::number(0) + "/" + QString::number(gThreads));
|
||||
#endif
|
||||
|
||||
int eor0 = 0, eor1 = 0, eor2 = 0, eor3 = 0;
|
||||
#pragma region QTGUI_Area
|
||||
stt->doEmitionChangeStatus("Scanning...");
|
||||
#pragma endregion
|
||||
sockstruct *st = NULL;
|
||||
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 );
|
||||
};
|
||||
#endif
|
||||
Sleep(10);
|
||||
Sleep(gThreadDelay);
|
||||
if(ipsstartfl[gC][3] == 255) break;
|
||||
if(ipsstartfl[gC][3] <= ipsendfl[gC][3]) ++ipsstartfl[gC][3];
|
||||
};
|
||||
ipsstartfl[gC][3] = 0;
|
||||
if(ipsstartfl[gC][2] == 255) break;
|
||||
if(ipsstartfl[gC][2] <= ipsendfl[gC][2]) ++ipsstartfl[gC][2];
|
||||
};
|
||||
ipsstartfl[gC][3] = 0;
|
||||
ipsstartfl[gC][2] = 0;
|
||||
if(ipsstartfl[gC][1] == 255) break;
|
||||
if(ipsstartfl[gC][1] <= ipsendfl[gC][1]) ++ipsstartfl[gC][1];
|
||||
};
|
||||
ipsstartfl[gC][3] = 0;
|
||||
ipsstartfl[gC][2] = 0;
|
||||
ipsstartfl[gC][1] = 0;
|
||||
if(ipsstartfl[gC][0] == 255) break;
|
||||
if(ipsstartfl[gC][0] <= ipsendfl[gC][0]) ++ipsstartfl[gC][0];
|
||||
};
|
||||
ipsstartfl[gC][3] = 0;
|
||||
|
31
resource.h
31
resource.h
@ -7,6 +7,7 @@
|
||||
#include <time.h>
|
||||
#include <process.h>
|
||||
#include <conio.h>
|
||||
#include <openssl/ssl.h>
|
||||
#endif
|
||||
#if defined(Q_OS_LINUX)
|
||||
#pragma once
|
||||
@ -50,7 +51,7 @@ typedef int BOOL;
|
||||
#define TITLE_MAX_LENGTH 512
|
||||
#define RECV_MAX_LENGTH 350000
|
||||
#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"
|
||||
|
||||
using namespace std;
|
||||
@ -69,7 +70,8 @@ extern QVector<int> vSSHLst;
|
||||
extern QVector<int> vOvrlLst;
|
||||
extern QVector<QPointF> vect;
|
||||
extern bool printDelimiter;
|
||||
extern QJsonArray *jsonArr;
|
||||
extern QJsonArray *jsonArr;
|
||||
extern bool gPingNScan;
|
||||
extern bool smBit_1;
|
||||
extern bool smBit_2;
|
||||
extern bool smBit_3;
|
||||
@ -78,6 +80,7 @@ extern bool smBit_5;
|
||||
extern bool smBit_6;
|
||||
extern bool smBit_7;
|
||||
extern bool smBit_8;
|
||||
extern bool horLineFlag;
|
||||
extern bool gDebugMode;
|
||||
extern bool gNegDebugMode;
|
||||
extern bool HTMLDebugMode;
|
||||
@ -89,12 +92,14 @@ extern int nickFlag;
|
||||
extern int offlineFlag;
|
||||
extern bool OnlineMsgSentFlag;
|
||||
extern int globalPinger;
|
||||
extern int gPingTimeout;
|
||||
extern bool destroychPThFlag;
|
||||
extern string toLowerStr(const char *str);
|
||||
extern QList<int> lstOfLabels;
|
||||
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 gThreadDelay;
|
||||
extern bool connectedToIRC;
|
||||
extern bool globalScanFlag;
|
||||
extern float QoSStep;
|
||||
@ -141,14 +146,13 @@ extern int MaxPass, MaxLogin, MaxWFLogin, MaxWFPass, MaxSSHPass;
|
||||
extern double ips;
|
||||
extern int ovrlIPs, ipCounter;
|
||||
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 cons;
|
||||
extern volatile int BrutingThrds;
|
||||
extern volatile int gThreads;
|
||||
extern volatile int threads;
|
||||
extern int found, fillerFlag, indexIP;
|
||||
extern char timeLeft[64], tempRes[32], des1[64], res[32];
|
||||
extern int gMaxSize;
|
||||
extern char saveStartIP[128];
|
||||
extern char saveEndIP[128];
|
||||
@ -156,14 +160,12 @@ extern int gMode;
|
||||
extern char gRange[128];
|
||||
extern char gFirstDom[128];
|
||||
extern char gPorts[65536];
|
||||
|
||||
extern int gMaxBrutingThreads;
|
||||
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];
|
||||
|
||||
|
||||
//extern std::vector<std::string> dnsVec;
|
||||
extern unsigned char ipsstartfl[8192][4], ipsendfl[8192][4], starterIP[8192][4];
|
||||
|
||||
typedef struct ST{
|
||||
char argv[2048];
|
||||
@ -185,6 +187,7 @@ struct PathStr{
|
||||
int flag;
|
||||
int port;
|
||||
char ip[2048];
|
||||
char cookie[1024];
|
||||
};
|
||||
|
||||
struct pl{
|
||||
@ -210,7 +213,7 @@ extern QString GetNSErrorDefinition(char *str, char *defin);
|
||||
extern void _SaveBackupToFile();
|
||||
extern char* __cdecl strstri(char *_Str, const char *_SubStr);
|
||||
extern char* _getAttribute(char *str, char *attrib);
|
||||
extern char *FindFirstOcc(char *str, char *delim);
|
||||
extern char *_findFirstOcc(char *str, char *delim);
|
||||
class Lexems
|
||||
{
|
||||
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 _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
|
||||
@ -236,8 +239,8 @@ class Connector
|
||||
public:
|
||||
int _Updater();
|
||||
|
||||
lopaStr _ftpBrute(char *ip, int port, PathStr *ps);
|
||||
lopaStr _BALobby(char *ip, int port, char *path, char *method, char *data);
|
||||
lopaStr _FTPLobby(char *ip, int port, PathStr *ps);
|
||||
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 _IPCameraBLobby(char *ip, int port, char *SPEC);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user