mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
BA fix + QoS fix.
This commit is contained in:
parent
96729b578b
commit
454b3d7b95
@ -754,7 +754,11 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
|
|||||||
strcpy(localBuff, recvBuff);
|
strcpy(localBuff, recvBuff);
|
||||||
};
|
};
|
||||||
if (strstri(recvBuff, "http/1.1 401") != NULL
|
if (strstri(recvBuff, "http/1.1 401") != NULL
|
||||||
|| strstri(recvBuff, "http/1.0 401") != NULL)
|
|| strstri(recvBuff, "http/1.0 401") != NULL
|
||||||
|
|| (strstri(recvBuff, "200 ok") != NULL
|
||||||
|
&& strstri(recvBuff, "<statusValue>401</statusValue>") != NULL
|
||||||
|
&& strstri(recvBuff, "<statusString>Unauthorized</statusString>") != NULL)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
Sleep(200);
|
Sleep(200);
|
||||||
} else
|
} else
|
||||||
@ -808,10 +812,10 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
|
|||||||
)
|
)
|
||||||
&& strstri(recvBuff, "http/1.1 401 ") == NULL
|
&& strstri(recvBuff, "http/1.1 401 ") == NULL
|
||||||
&& strstri(recvBuff, "http/1.0 401 ") == NULL
|
&& strstri(recvBuff, "http/1.0 401 ") == NULL
|
||||||
&& strstr(headerMsg, "<statusValue>401</statusValue>") == NULL
|
&& strstri(recvBuff, "<statusValue>401</statusValue>") == NULL
|
||||||
&& strstr(headerMsg, "<statusString>Unauthorized</statusString>") == NULL
|
&& strstri(recvBuff, "<statusString>Unauthorized</statusString>") == NULL
|
||||||
&& strstr(headerMsg, "неправильны") == NULL && strstr(headerMsg, "Неправильны") == NULL
|
&& strstri(recvBuff, "неправильны") == NULL
|
||||||
&& strstr(headerMsg, "Неправильны") == NULL
|
&& strstri(recvBuff, "Неправильны") == NULL
|
||||||
&& dataSz > 13
|
&& dataSz > 13
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -834,8 +838,8 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (strstri(headerMsg, "неправильны") == NULL
|
if (strstri(recvBuff, "неправильны") == NULL
|
||||||
&& strstri(headerMsg, "Неправильны") == NULL)
|
&& strstri(recvBuff, "Неправильны") == NULL)
|
||||||
{
|
{
|
||||||
ZeroMemory(pass, sizeof(pass));
|
ZeroMemory(pass, sizeof(pass));
|
||||||
sprintf(pass, "%s - Password found: %s", ip, tPass);
|
sprintf(pass, "%s - Password found: %s", ip, tPass);
|
||||||
|
@ -2505,7 +2505,7 @@ void _getLinkFromJSLocation(char *dataBuff, char *str, char *tag, char *ip, int
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
strcpy(dataBuff, "/");
|
strcpy(dataBuff, "/");
|
||||||
strncat(dataBuff, tempBuff + 1, sz - 1);
|
strncat(dataBuff, tempBuff, sz);
|
||||||
}
|
}
|
||||||
else strncpy(dataBuff, tempBuff, sz);
|
else strncpy(dataBuff, tempBuff, sz);
|
||||||
};
|
};
|
||||||
|
51
nesca_3.cpp
51
nesca_3.cpp
@ -180,13 +180,15 @@ void setSceneArea()
|
|||||||
ui->graphicsVoice->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
ui->graphicsVoice->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
ui->graphicsVoice->setRenderHints(QPainter::TextAntialiasing);
|
ui->graphicsVoice->setRenderHints(QPainter::TextAntialiasing);
|
||||||
ui->graphicsVoice->setCacheMode(QGraphicsView::CacheNone);
|
ui->graphicsVoice->setCacheMode(QGraphicsView::CacheNone);
|
||||||
|
|
||||||
ui->graphicsVoice->raise();
|
ui->graphicsVoice->raise();
|
||||||
|
|
||||||
sceneGrid = new QGraphicsScene();
|
sceneGrid = new QGraphicsScene();
|
||||||
sceneGrid2 = new QGraphicsScene();
|
sceneGrid2 = new QGraphicsScene();
|
||||||
sceneGraph = new QGraphicsScene();
|
sceneGraph = new QGraphicsScene();
|
||||||
sceneUpper = new QGraphicsScene();
|
sceneUpper = new QGraphicsScene();
|
||||||
|
sceneUpper->setSceneRect(0, 0, ui->graphicLog_Upper->width(), ui->graphicLog_Upper->height());
|
||||||
|
sceneGrid->setSceneRect(0, 0, ui->graphicLog_Upper->width(), ui->graphicLog_Upper->height());
|
||||||
|
|
||||||
sceneActivity = new QGraphicsScene();
|
sceneActivity = new QGraphicsScene();
|
||||||
sceneActivityGrid = new QGraphicsScene();
|
sceneActivityGrid = new QGraphicsScene();
|
||||||
sceneTextPlacer = new QGraphicsScene();
|
sceneTextPlacer = new QGraphicsScene();
|
||||||
@ -1916,14 +1918,13 @@ void nesca_3::slotSaveImage(QAction *qwe)
|
|||||||
{
|
{
|
||||||
QObject *smB = this->sender();
|
QObject *smB = this->sender();
|
||||||
int ci = ui->tabMainWidget->currentIndex();
|
int ci = ui->tabMainWidget->currentIndex();
|
||||||
QDate QD = QDate::currentDate();
|
|
||||||
QTime QT = QTime::currentTime();
|
QTime QT = QTime::currentTime();
|
||||||
|
|
||||||
if(smB == menuPS)
|
if(smB == menuPS)
|
||||||
{
|
{
|
||||||
if(ME2ScanFlag || VoiceScanFlag)
|
if(ME2ScanFlag || VoiceScanFlag)
|
||||||
{
|
{
|
||||||
QString fn = QString::number(QD.day()) + "." + QString::number(QD.month()) + "." + QString::number(QD.year()) + "-h" + QString::number(QT.hour()) + ".m" + QString::number(QT.minute()) + "_" + (ME2ScanFlag ? QString("ME2") : QString("Voice")) + "_" + (ci == 0 ? ui->lineEditStartIPDNS->text() : ui->ipLine->text()) + ".png";
|
QString fn = QString::number(QT.msec()) + "_" + (ME2ScanFlag ? QString("ME2") : QString("Voice")) + "_" + (ci == 0 ? ui->ipLine->text() : ui->lineEditStartIPDNS->text()) + ".png";
|
||||||
int ax = 27;
|
int ax = 27;
|
||||||
int ay = 2;
|
int ay = 2;
|
||||||
int w = ui->graphicLog->width() + 30;
|
int w = ui->graphicLog->width() + 30;
|
||||||
@ -1933,6 +1934,7 @@ void nesca_3::slotSaveImage(QAction *qwe)
|
|||||||
int spY = 108;
|
int spY = 108;
|
||||||
int wsp = 40;
|
int wsp = 40;
|
||||||
int hsp = 70;
|
int hsp = 70;
|
||||||
|
|
||||||
if(VoiceScanFlag)
|
if(VoiceScanFlag)
|
||||||
{
|
{
|
||||||
hOffset = -60;
|
hOffset = -60;
|
||||||
@ -1941,10 +1943,10 @@ void nesca_3::slotSaveImage(QAction *qwe)
|
|||||||
wsp = 0;
|
wsp = 0;
|
||||||
hsp = -3;
|
hsp = -3;
|
||||||
};
|
};
|
||||||
QImage image(ui->graphicTextPlacer->width() + 5, ui->graphicTextPlacer->height() + hOffset, QImage::Format_RGB32);
|
|
||||||
QPainter painter(&image);
|
QPixmap pixmap(ui->graphicTextPlacer->width() + 5, ui->graphicTextPlacer->height() + hOffset);
|
||||||
image.fill(NULL);
|
QPainter painter(&pixmap);
|
||||||
image.fill(QColor(0,0,0));
|
pixmap.fill(QColor(0, 0, 0));
|
||||||
sceneTextPlacer->render(&painter, QRect(spX, spY, w + wsp, h + hsp));
|
sceneTextPlacer->render(&painter, QRect(spX, spY, w + wsp, h + hsp));
|
||||||
sceneUpper->render(&painter, QRect(ax, ay, w, h));
|
sceneUpper->render(&painter, QRect(ax, ay, w, h));
|
||||||
sceneVoice->render(&painter, QRect(ax, ay, w, h));
|
sceneVoice->render(&painter, QRect(ax, ay, w, h));
|
||||||
@ -1957,32 +1959,35 @@ void nesca_3::slotSaveImage(QAction *qwe)
|
|||||||
tr("Save image"),
|
tr("Save image"),
|
||||||
QDir::currentPath() + "/" + fn,
|
QDir::currentPath() + "/" + fn,
|
||||||
".png",
|
".png",
|
||||||
(QString *)"*.png"
|
(QString*)&tr("*.png")
|
||||||
);
|
);
|
||||||
if(filename != "") image.save(filename + ".png");
|
if (filename != "") pixmap.save(filename);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QString fn = QString::number(QD.day()) + "." + QString::number(QD.month()) + "." + QString::number(QD.year()) + "-h" + QString::number(QT.hour()) + ".m" + QString::number(QT.minute()) + "_" + (PieStatFlag ? "PieStat" : "QOS") + "_"+ (ci == 0 ? ui->lineEditStartIPDNS->text() : ui->ipLine->text()) + ".png";
|
QString fn = QString::number(QT.msec()) + "_" + (PieStatFlag ? "PieStat" : "QOS") + "_" + (ci == 0 ? ui->ipLine->text() : ui->lineEditStartIPDNS->text()) + ".png";
|
||||||
QImage image(ui->graphicLog->width(), ui->graphicLog->height(), QImage::Format_ARGB32_Premultiplied);
|
|
||||||
QPainter painter(&image);
|
QPixmap pixmap(ui->graphicLog->width(), ui->graphicLog->height());
|
||||||
image.fill(NULL);
|
QPainter painter(&pixmap);
|
||||||
image.fill(QColor(0,0,0));
|
pixmap.fill(Qt::black);
|
||||||
|
|
||||||
|
sceneGrid->render(&painter);
|
||||||
|
sceneGrid2->render(&painter);
|
||||||
|
sceneGrid2->render(&painter);
|
||||||
sceneUpper->render(&painter);
|
sceneUpper->render(&painter);
|
||||||
sceneVoice->render(&painter);
|
sceneVoice->render(&painter);
|
||||||
sceneGraph->render(&painter);
|
sceneGraph->render(&painter);
|
||||||
sceneGrid->render(&painter);
|
|
||||||
sceneGrid2->render(&painter);
|
|
||||||
|
|
||||||
|
painter.end();
|
||||||
|
|
||||||
QString filename = QFileDialog::getSaveFileName(
|
QString filename = QFileDialog::getSaveFileName(
|
||||||
this,
|
this,
|
||||||
tr("Save image"),
|
tr("Save image"),
|
||||||
QDir::currentPath() + "/" + fn,
|
QDir::currentPath() + "/" + fn,
|
||||||
".png",
|
".png",
|
||||||
(QString *)"*.png"
|
(QString*)&tr("*.png")
|
||||||
);
|
);
|
||||||
if(filename != "") image.save(filename + ".png");
|
if (filename != "") pixmap.save(filename);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1228,7 +1228,7 @@ border-radius: 3px;</string>
|
|||||||
<string notr="true">color: rgb(216, 216, 216); background-color: rgba(2, 2, 2, 0);</string>
|
<string notr="true">color: rgb(216, 216, 216); background-color: rgba(2, 2, 2, 0);</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>ms</string>
|
<string>sec</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLineEdit" name="threadDelayBox">
|
<widget class="QLineEdit" name="threadDelayBox">
|
||||||
|
Loading…
Reference in New Issue
Block a user