diff --git a/ActivityDrawerTh_HorNet.cpp b/ActivityDrawerTh_HorNet.cpp new file mode 100755 index 0000000..beaf8e4 --- /dev/null +++ b/ActivityDrawerTh_HorNet.cpp @@ -0,0 +1,36 @@ +#include "ActivityDrawerTh_HorNet.h" +#include "STh.h" + +void ActivityDrawerTh_HorNet::doEmitDrawActivityLine() +{ + emit adtHN->sDrawActivityLine(); +}; +void ActivityDrawerTh_HorNet::doEmitDrawGrid() +{ + emit adtHN->sDrawGrid(); +}; + +void makeActLine(int val) +{ + if(actLst.size() < 50) actLst.push_back(val); + else + { + actLst.pop_front(); + actLst.push_back(val); + }; +}; +void ActivityDrawerTh_HorNet::run() +{ + adtHN->doEmitDrawGrid(); + int maxAct = Activity + 1; + while(true) + { + if(maxAct < Activity) maxAct = Activity; + int nm = maxAct-=5; + makeActLine(((float)Activity/(nm != 0 ? nm : 1)) * 10); + stt->doEmitionSetActivityValue(QString::number(Activity) + "b"); + Activity = 0; + adtHN->doEmitDrawActivityLine(); + msleep(130); + }; +}; \ No newline at end of file diff --git a/ActivityDrawerTh_HorNet.h b/ActivityDrawerTh_HorNet.h new file mode 100755 index 0000000..f7407fc --- /dev/null +++ b/ActivityDrawerTh_HorNet.h @@ -0,0 +1,21 @@ +#ifndef ACTIVITYDRAWERTH_HORNET_H +#define ACTIVITYDRAWERTH_HORNET_H + +#pragma once +#include "nesca_3.h" + +class ActivityDrawerTh_HorNet : public QThread +{ + Q_OBJECT + +public: signals: void sDrawActivityLine(); +public: signals: void sDrawGrid(); + +public: + static void doEmitDrawActivityLine(); + static void doEmitDrawGrid(); +protected: + void run(); +}; +extern ActivityDrawerTh_HorNet *adtHN; +#endif // ACTIVITYDRAWERTH_HORNET_H diff --git a/CheckKey_Th.h b/CheckKey_Th.h new file mode 100755 index 0000000..91861ff --- /dev/null +++ b/CheckKey_Th.h @@ -0,0 +1,17 @@ +#ifndef CHECKKEY_TH_H +#define CHECKKEY_TH_H + +#pragma once +#include "nesca_3.h" +#include "resource.h" +extern int emitIfOK; +class CheckKey_Th : public QThread +{ + Q_OBJECT + +protected: + void run(); +}; + +extern CheckKey_Th *chKTh; +#endif // CHECKKEY_TH_H diff --git a/CheckProxy_Th.h b/CheckProxy_Th.h new file mode 100755 index 0000000..35c3baa --- /dev/null +++ b/CheckProxy_Th.h @@ -0,0 +1,28 @@ +#ifndef CHECKPROXY_TH_H +#define CHECKPROXY_TH_H + +#pragma once +#include "nesca_3.h" +#include "resource.h" + +class CheckProxy_Th : public QThread +{ + Q_OBJECT + +public: signals: void changeRedIRCData(QString); +public: signals: void changeGreenIRCData(QString); +public: signals: void changeYellowIRCData(QString); +public: signals: void changeRawIRCDataInc(QString); +public: signals: void changeRawIRCDataOut(QString); + +public: + void doEmitChangeRedIRCData(QString str); + void doEmitChangeGreenIRCData(QString str); + void doEmitChangeYellowIRCData(QString str); + void doEmitChangeRawIRCDataOut(QString str); + void doEmitChangeRawIRCDataInc(QString str); +protected: + void run(); +}; +extern CheckProxy_Th *chPTh; +#endif // CHECKPROXY_TH_H diff --git a/DrawerTh_GridQoSScanner.cpp b/DrawerTh_GridQoSScanner.cpp new file mode 100755 index 0000000..546ed7f --- /dev/null +++ b/DrawerTh_GridQoSScanner.cpp @@ -0,0 +1,23 @@ +#include "DrawerTh_GridQoSScanner.h" +#include "STh.h" + +void DrawerTh_GridQoSScanner::doEmitAddLine() +{ + emit dtGridQoS->sAddLine(); +}; + +void DrawerTh_GridQoSScanner::run() +{ + while(QoSScanFlag) + { + if(stt->isRunning() == true) + { + if(widgetIsHidden == false && tray->isVisible() == false) + { + ++QoSStep; + emit dtGridQoS->doEmitAddLine(); + }; + }; + msleep(2000); + }; +}; \ No newline at end of file diff --git a/DrawerTh_HorNet.cpp b/DrawerTh_HorNet.cpp new file mode 100755 index 0000000..e2add75 --- /dev/null +++ b/DrawerTh_HorNet.cpp @@ -0,0 +1,42 @@ +#include "DrawerTh_HorNet.h" + +void DrawerTh_HorNet::run() +{ + qsrand (QDateTime::currentMSecsSinceEpoch()); + int factor = 0; + + int gWidth = ui->graphicLog->width(); + int gHeight = ui->graphicLog->height(); + + dtHN->doEmitionAddDelimLines(); + + while(ME2ScanFlag) + { + if(widgetIsHidden == false && tray->isVisible() == false) + { + ++factor > 9 ? factor = 0 : NULL; + dtHN->doEmitionDrawGrid(); + + for(int i = 0; i < gHeight; i += 10) + { + QApplication::processEvents(); + dtHN->doEmitionAddLine(0, i + factor, gWidth, i + factor); + QApplication::processEvents(); + }; + }; + msleep(200); + }; +}; + +void DrawerTh_HorNet::doEmitionDrawGrid() +{ + emit dtHN->sDrawGrid(); +}; +void DrawerTh_HorNet::doEmitionAddLine(int x1, int y1, int x2, int y2) +{ + emit dtHN->sAddLine(x1, y1, x2, y2); +}; +void DrawerTh_HorNet::doEmitionAddDelimLines() +{ + emit dtHN->sAddDelimLines(); +}; \ No newline at end of file diff --git a/DrawerTh_HorNet.h b/DrawerTh_HorNet.h new file mode 100755 index 0000000..08f59fa --- /dev/null +++ b/DrawerTh_HorNet.h @@ -0,0 +1,26 @@ +#ifndef DRAWERTH_HORNET_H +#define DRAWERTH_HORNET_H + +#pragma once +#include "nesca_3.h" +#include "resource.h" + +class DrawerTh_HorNet : public QThread +{ + Q_OBJECT + +public: + static void doEmitionDrawGrid(); + static void doEmitionAddLine(int x1, int y1, int x2, int y2); + static void doEmitionAddDelimLines(); + +public: signals: void sAddDelimLines(); +public: signals: void sAddLine(int, int, int, int); +public: signals: void sDrawGrid(); + +protected: + void run(); +}; + +extern DrawerTh_HorNet *dtHN; +#endif // DRAWERTH_HORNET_H diff --git a/DrawerTh_ME2Scanner.cpp b/DrawerTh_ME2Scanner.cpp new file mode 100755 index 0000000..f91e0cb --- /dev/null +++ b/DrawerTh_ME2Scanner.cpp @@ -0,0 +1,148 @@ +#include "DrawerTh_ME2Scanner.h" +#include "STh.h" + +void DrawerTh_ME2Scanner::doEmitDrawTextPlacers() +{ + emit dtME2->sDrawTextPlacers(); +}; + +void DrawerTh_ME2Scanner::doEmitionAddPolyLine() +{ + emit dtME2->sAddPolyLine(); +}; +void MakePolygonLine(int gWidth) +{ + vect.clear(); + int x = 0; + int tx = 0; + int xtx = 0; + QPointF qp(0, 20); + vect.append(qp); + int fact1 = 0, + fact2 = 0, + fact3 = 0, + fact4 = 0, + fact5 = 0, + fact6 = 0, + fact7 = 0; + + bool state = stt->isRunning(); + for(int i = 1; i < 130; ++i) + { + x = qrand() % 4 + 2 + i; + xtx = x + tx; + if(xtx > 1 && xtx < 31) + { + qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - AnomC1*2 - fact1 : 20); + if(AnomC1 > 0) + { + if(xtx < 16 ) fact1+=2; + else fact1-=2; + }; + } + + if(xtx > 34 && xtx < 72) + { + qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - WF*2 - fact2 : 20); + + if(WF > 0) + { + if(xtx < 52 ) fact2+=2; + else fact2-=2; + }; + } + + if(xtx > 74 && xtx < 112) + { + qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - BA*2 - fact3 : 20); + + if(BA > 0) + { + if(xtx < 92 ) fact3+=2; + else fact3-=2; + }; + } + + if(xtx > 114 && xtx < 152) + { + qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - Susp*2 - fact4 : 20); + + if(Susp > 0) + { + if(xtx < 132 ) fact4+=2; + else fact4-=2; + }; + } + + if(xtx > 154 && xtx < 192) + { + qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - Overl*2 - fact5 : 20); + + if(Overl > 0) + { + if(xtx < 172 ) fact5+=2; + else fact5-=2; + }; + } + + if(xtx > 194 && xtx < 232) + { + qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - Lowl*2 - fact6 : 20); + + if(Lowl > 0) + { + if(xtx < 212 ) fact6+=2; + else fact6-=2; + }; + } + + if(xtx > 234 && xtx < 269) + { + qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - Alive*2 - fact7 : 20); + + if(Alive > 0) + { + if(xtx < 252 ) fact7+=2; + else fact7-=2; + }; + }; + + vect.append(qp); + tx = x; + }; + AnomC1 = 0; + WF = 0; + BA = 0; + Filt = 0; + Overl = 0; + Lowl = 0; + Alive = 0; + Susp = 0; + vect.append(QPointF(gWidth, 20)); +}; +void DrawerTh_ME2Scanner::run() +{ + int gWidth = ui->graphicLog->width(); + dtME2->doEmitDrawTextPlacers(); + while(ME2ScanFlag) + { + if(widgetIsHidden == false && tray->isVisible() == false) + { + MakePolygonLine(gWidth); + dtME2->doEmitionAddPolyLine(); + } + else + { + msleep(1000); + AnomC1 = 0; + WF = 0; + BA = 0; + Filt = 0; + Overl = 0; + Lowl = 0; + Alive = 0; + Susp = 0; + }; + msleep(150); + }; +}; \ No newline at end of file diff --git a/DrawerTh_ME2Scanner.h b/DrawerTh_ME2Scanner.h new file mode 100755 index 0000000..faeed47 --- /dev/null +++ b/DrawerTh_ME2Scanner.h @@ -0,0 +1,23 @@ +#ifndef DRAWERTH_ME2SCANNER_H +#define DRAWERTH_ME2SCANNER_H + +#pragma once +#include "nesca_3.h" +#include "resource.h" + +class DrawerTh_ME2Scanner : public QThread +{ + Q_OBJECT + +public: + static void doEmitionAddPolyLine(); + static void doEmitDrawTextPlacers(); + +public: signals: void sAddPolyLine(); +public: signals: void sDrawTextPlacers(); + +protected: + void run(); +}; +extern DrawerTh_ME2Scanner *dtME2; +#endif // DRAWERTH_ME2SCANNER_H diff --git a/DrawerTh_QoSScanner.cpp b/DrawerTh_QoSScanner.cpp new file mode 100755 index 0000000..530fb5b --- /dev/null +++ b/DrawerTh_QoSScanner.cpp @@ -0,0 +1,61 @@ +#pragma once +#include "DrawerTh_QoSScanner.h" +#include "STh.h" + +void DrawerTh_QoSScanner::run() +{ + while(QoSScanFlag) + { + tMax = 0; + + if(stt->isRunning() == true && widgetIsHidden == false && tray->isVisible() == false && QOSWait == false) + { + lstOfLabels.clear(); + lstOfLabels.append(Alive); + lstOfLabels.append(AnomC1); + lstOfLabels.append(WF); + lstOfLabels.append(Susp); + lstOfLabels.append(Lowl); + lstOfLabels.append((int)BA); + lstOfLabels.append(Overl); + lstOfLabels.append(ssh); + + QList lstOfLabelsCopy = lstOfLabels; + qSort(lstOfLabelsCopy.begin(), lstOfLabelsCopy.end(), qGreater()); + int curVal = lstOfLabelsCopy[0]; + if(curVal > MaxDataVal) MaxDataVal = curVal; + if(curVal > tMax) tMax = curVal; + + dtQoS->doEmitionAddLine(); + } + else + { + msleep(500); + AnomC1 = 0; + WF = 0; + BA = 0; + Filt = 0; + Overl = 0; + Lowl = 0; + Alive = 0; + Susp = 0; + ssh = 0; + }; + + AnomC1 = 0; + WF = 0; + BA = 0; + Filt = 0; + Overl = 0; + Lowl = 0; + Alive = 0; + Susp = 0; + ssh = 0; + msleep(2000); + }; +}; + +void DrawerTh_QoSScanner::doEmitionAddLine() +{ + emit dtQoS->sAddLine(); +}; \ No newline at end of file diff --git a/DrawerTh_QoSScanner.h b/DrawerTh_QoSScanner.h new file mode 100755 index 0000000..7e6bb8b --- /dev/null +++ b/DrawerTh_QoSScanner.h @@ -0,0 +1,22 @@ +#ifndef DRAWERTH_QOSSCANNER_H +#define DRAWERTH_QOSSCANNER_H + +#pragma once +#include "nesca_3.h" +#include "resource.h" + +class DrawerTh_QoSScanner : public QThread +{ + Q_OBJECT + +public: + static void doEmitionAddLine(); + +public: signals: void sAddLine(); + +protected: + void run(); +}; + +extern DrawerTh_QoSScanner *dtQoS; +#endif // DRAWERTH_QOSSCANNER_H diff --git a/DrawerTh_VoiceScanner.cpp b/DrawerTh_VoiceScanner.cpp new file mode 100755 index 0000000..de6ca97 --- /dev/null +++ b/DrawerTh_VoiceScanner.cpp @@ -0,0 +1,134 @@ +#include "DrawerTh_VoiceScanner.h" + +void DrawerTh_VoiceScanner::doEmitAddLine() +{ + emit vsTh->sAddLine(); +}; +void DrawerTh_VoiceScanner::doEmitDrawGrid() +{ + emit vsTh->sDrawGrid(); +}; +void DrawerTh_VoiceScanner::doEmitDrawTextPlacers() +{ + emit vsTh->sDrawTextPlacers(); +}; + +void makeVoiceLine(int Al, int An, int Bd, int Sp, int Lo, int var, int Ovl, int WF, int SSH) +{ + if(vAlivLst.size() < 140) + { + if(Al > 0) vAlivLst.push_back((Al + 1)*10); + } + else + { + vAlivLst.pop_front(); + if(Al > 0) vAlivLst.push_back((Al + 1)*10); + }; + + if(vAnomLst.size() < 140) + { + if(An > 0) vAnomLst.push_back((An + 1)*10); + } + else + { + vAnomLst.pop_front(); + if(An > 0) vAnomLst.push_back((An + 1)*10); + }; + + if(vWFLst.size() < 140) + { + if(Bd > 0) vWFLst.push_back((Bd + 1)*10); + } + else + { + vWFLst.pop_front(); + if(Bd > 0) vWFLst.push_back((Bd + 1)*10); + }; + + if(vSuspLst.size() < 140) + { + if(Sp > 0) vSuspLst.push_back((Sp + 1)*10); + } + else + { + vSuspLst.pop_front(); + if(Sp > 0) vSuspLst.push_back((Sp + 1)*10); + }; + + if(vLowlLst.size() < 140) + { + if(Lo > 0) vLowlLst.push_back((Lo + 1)*10); + } + else + { + vLowlLst.pop_front(); + if(Lo > 0) vLowlLst.push_back((Lo + 1)*10); + }; + + if(vLowlLst.size() < 140) + { + if(var > 0) vBALst.push_back((var + 1)*10); + } + else + { + vBALst.pop_front(); + if(var > 0) vBALst.push_back((var + 1)*10); + }; + + if(vOvrlLst.size() < 140) + { + if(Ovl > 0) vOvrlLst.push_back((Ovl + 1)*10); + } + else + { + vOvrlLst.pop_front(); + if(Ovl > 0) vOvrlLst.push_back((Ovl + 1)*10); + }; + + if(vSSHLst.size() < 140) + { + if(SSH > 0) vSSHLst.push_back((SSH + 1)*10); + } + else + { + vSSHLst.pop_front(); + if(SSH > 0) vSSHLst.push_back((SSH + 1)*10); + }; +}; +void DrawerTh_VoiceScanner::run() +{ + vsTh->doEmitDrawGrid(); + vsTh->doEmitDrawTextPlacers(); + while(VoiceScanFlag) + { + if(widgetIsHidden == false && tray->isVisible() == false) + { + makeVoiceLine(Alive, AnomC1, WF, Susp, Lowl, BA, Overl, WF, ssh); + Alive = 0; + AnomC1 = 0; + WF = 0; + Filt = 0; + Lowl = 0; + BA = 0; + Overl = 0; + Susp = 0; + ssh = 0; + + vsTh->doEmitAddLine(); + msleep(150); + } + else + { + msleep(500); + Alive = 0; + AnomC1 = 0; + WF = 0; + Filt = 0; + Lowl = 0; + BA = 0; + Overl = 0; + Susp = 0; + ssh = 0; + }; + }; +}; \ No newline at end of file diff --git a/DrawerTh_VoiceScanner.h b/DrawerTh_VoiceScanner.h new file mode 100755 index 0000000..9924c20 --- /dev/null +++ b/DrawerTh_VoiceScanner.h @@ -0,0 +1,24 @@ +#ifndef DRAWERTH_VOICESCANNER_H +#define DRAWERTH_VOICESCANNER_H + +#pragma once +#include "nesca_3.h" +#include "resource.h" + +class DrawerTh_VoiceScanner : public QThread +{ + Q_OBJECT + +public: +public: signals: void sAddLine(); +public: signals: void sDrawGrid(); +public: signals: void sDrawTextPlacers(); +public: + void doEmitAddLine(); + void doEmitDrawGrid(); + void doEmitDrawTextPlacers(); +protected: + void run(); +}; +extern DrawerTh_VoiceScanner *vsTh; +#endif // DRAWERTH_VOICESCANNER_H diff --git a/IRCPinger_Th.h b/IRCPinger_Th.h new file mode 100755 index 0000000..cc093ed --- /dev/null +++ b/IRCPinger_Th.h @@ -0,0 +1,24 @@ +#ifndef IRCPINGER_TH_H +#define IRCPINGER_TH_H + +#pragma once +#include "nesca_3.h" +#include "resource.h" +extern int iWantToConnect; + +class IRCPinger_Th : public QThread +{ + Q_OBJECT + +public: + static void doEmitChangeRedIRCData(QString str); + static void doEmitRestartIRC(); + +public: signals: void changeRedIRCData(QString); +public: signals: void RestartIRC(); + +protected: + void run(); +}; +extern IRCPinger_Th *ircPTh; +#endif // IRCPINGER_TH_H diff --git a/irc_nmblinker.cpp b/irc_nmblinker.cpp new file mode 100755 index 0000000..2ec1317 --- /dev/null +++ b/irc_nmblinker.cpp @@ -0,0 +1,16 @@ +#include "irc_nmblinker.h" +#include "nesca_3.h" + +void IRC_NMBlinker::doEmitBlinkMessage() +{ + emit irc_nmb->sBlinkMessage(); +}; + +void IRC_NMBlinker::run() +{ + while(widgetIsHidden == false && disableBlink == false && tray->isVisible() == false) + { + irc_nmb->doEmitBlinkMessage(); + msleep(500); + }; +}; diff --git a/irc_nmblinker.h b/irc_nmblinker.h new file mode 100755 index 0000000..3964015 --- /dev/null +++ b/irc_nmblinker.h @@ -0,0 +1,20 @@ +#ifndef IRC_NMBLINKER_H +#define IRC_NMBLINKER_H + +#include "nesca_3.h" + +class IRC_NMBlinker : public QThread +{ + Q_OBJECT + +public: + static void doEmitBlinkMessage(); + +public: signals: void sBlinkMessage(); + +protected: + void run(); +}; +extern IRC_NMBlinker *irc_nmb; + +#endif // IRC_NMBLINKER_H diff --git a/login.txt b/login.txt new file mode 100755 index 0000000..1c55fa8 --- /dev/null +++ b/login.txt @@ -0,0 +1,26 @@ +admin +root +123123 +123456 +12345 + + +cisco +meinsm +monitor +test +ftp +1234 +administrator +qwerty +recovery +Polycom +system +naadmin +telecom +dreambox +master +Admin +Root +guest +backup \ No newline at end of file diff --git a/msgcheckerthread.cpp b/msgcheckerthread.cpp new file mode 100755 index 0000000..d75c9e4 --- /dev/null +++ b/msgcheckerthread.cpp @@ -0,0 +1,43 @@ +#include "msgcheckerthread.h" + +void MSGCheckerThread::doEmitionShowNewMsg(QString str) +{ + emit mct->showNewMsg(str); +}; + +void _getNewMsg() +{ + Connector con; + conSTR CSTR; + CSTR.lowerBuff = NULL; + CSTR.size = 0; + char request[256] = {0}; + strcpy(request, "GET /mailbox?key="); + strncat(request, trcPersKey, 32); + strcat(request, " HTTP/1.1\r\nHost: nesca.d3w.org\r\nX-Nescav3: True\r\n\r\n"); + con._EstablishConnection("nesca.d3w.org", 80, request, &CSTR, 1); + + char *ptr1 = NULL; + if(CSTR.lowerBuff != NULL) + { + if(strstr(CSTR.lowerBuff, "\r\n\r\n") != NULL && strstr(CSTR.lowerBuff, "HTTP/1.1 404 Not Found") == NULL && strstr(CSTR.lowerBuff, "HTTP/1.1 502 Bad Gateway") == NULL && strstr(CSTR.lowerBuff, "HTTP/1.1 400 Bad Request") == NULL && strstr(CSTR.lowerBuff, "\r\n\r\nEmpty") == NULL) + { + ptr1 = strstr(CSTR.lowerBuff, "\r\n\r\n"); + if(strlen(ptr1 + 4) != 0) + { + mct->doEmitionShowNewMsg(QString(ptr1 + 4)); + }; + }; + delete []CSTR.lowerBuff; + CSTR.lowerBuff = NULL; + }; +}; + +void MSGCheckerThread::run() +{ + for(;;) + { + Sleep(60000); + _getNewMsg(); + }; +}; diff --git a/msgcheckerthread.h b/msgcheckerthread.h new file mode 100755 index 0000000..ddf6646 --- /dev/null +++ b/msgcheckerthread.h @@ -0,0 +1,20 @@ +#ifndef MSGCHECKERTHREAD_H +#define MSGCHECKERTHREAD_H + +#pragma once +#include "nesca_3.h" +#include "resource.h" + +class MSGCheckerThread : public QThread +{ + Q_OBJECT +public: + static void doEmitionShowNewMsg(QString str); +public: signals: void showNewMsg(QString); + +protected: + void run(); +}; +extern MSGCheckerThread *mct; + +#endif // MSGCHECKERTHREAD_H diff --git a/nesca_3.qrc b/nesca_3.qrc new file mode 100755 index 0000000..8186192 --- /dev/null +++ b/nesca_3.qrc @@ -0,0 +1,6 @@ + + + Eurostile.ttf + Z:/nesca.ico + + diff --git a/oIRC_Th.h b/oIRC_Th.h new file mode 100755 index 0000000..d4d7159 --- /dev/null +++ b/oIRC_Th.h @@ -0,0 +1,48 @@ +#ifndef OIRC_TH_H +#define OIRC_TH_H + +#pragma once +#include "nesca_3.h" +#include "resource.h" +#include "irc_nmblinker.h" +#include "IRCPinger_Th.h" + +class oIRC_Th : public QThread +{ + Q_OBJECT + +public: + void doEmitUnhidePopup(QString, QString); + void doEmitChangeIRCData(bool, bool, int, QString, QString); + void doEmitChangeRedIRCData(QString); + void doEmitChangeGreenIRCData(QString); + void doEmitChangeYellowIRCData(QString); + void doEmitChangeRawIRCDataInc(QString); + void doEmitChangeRawIRCDataOut(QString); + void doEmitSetNick(QString); + void doEmitAddNick(QString); + void doEmitClearNickList(); + void doEmitIRCOfflined(); + void doEmitionPlayDckingSound(); + void doEmitGetTopic(QString str); + +public: signals: void sUnhidePopup(QString, QString); +public: signals: void changeIRCData(bool, bool, int, QString, QString); +public: signals: void changeRedIRCData(QString); +public: signals: void changeGreenIRCData(QString); +public: signals: void changeYellowIRCData(QString); +public: signals: void changeRawIRCDataInc(QString); +public: signals: void changeRawIRCDataOut(QString); +public: signals: void setNick(QString); +public: signals: void AddNick(QString); +public: signals: void ClearNickList(); +public: signals: void IRCOfflined(); +public: signals: void notifyPlay(); +public: signals: void getTopic(QString); + +protected: + void run(); +}; + +extern oIRC_Th *ircTh; +#endif // OIRC_TH_H diff --git a/piestat.cpp b/piestat.cpp new file mode 100755 index 0000000..c7c32d3 --- /dev/null +++ b/piestat.cpp @@ -0,0 +1,24 @@ +#include "piestat.h" + +void PieStat::doEmitUpdatePie() +{ + emit psTh->sUpdatePie(); +}; + +void PieStat::run() +{ + while(PieStatFlag) + { + psTh->doEmitUpdatePie(); + AnomC1 = 0; + WF = 0; + BA = 0; + Filt = 0; + Overl = 0; + Lowl = 0; + Alive = 0; + Susp = 0; + ssh = 0; + msleep(500); + }; +}; diff --git a/piestat.h b/piestat.h new file mode 100755 index 0000000..02bea43 --- /dev/null +++ b/piestat.h @@ -0,0 +1,22 @@ +#ifndef PIESTAT_H +#define PIESTAT_H + +#pragma once +#include "nesca_3.h" +#include "resource.h" + +class PieStat : public QThread +{ + Q_OBJECT + +public: +public: signals: void sUpdatePie(); + +public: + void doEmitUpdatePie(); +protected: + void run(); +}; +extern PieStat *psTh; + +#endif // PIESTAT_H diff --git a/vercheckerthread.cpp b/vercheckerthread.cpp new file mode 100755 index 0000000..578d9b3 --- /dev/null +++ b/vercheckerthread.cpp @@ -0,0 +1,32 @@ +#include "vercheckerthread.h" + +void _checkVer() +{ + Connector con; + conSTR CSTR; + CSTR.lowerBuff = NULL; + CSTR.size = 0; + con._EstablishConnection("nesca.d3w.org", 80, "GET /version HTTP/1.1\r\nHost: nesca.d3w.org\r\nX-Nescav3: True\r\n\r\n", &CSTR, 1); + + char *ptr1 = NULL; + if(CSTR.lowerBuff != NULL) + { + if(strstr(CSTR.lowerBuff, "\r\n\r\n") != 0) + { + ptr1 = strstr(CSTR.lowerBuff, "\r\n\r\n"); + if(strcmp(gVER, ptr1 + 4) != 0) + { + stt->doEmitionShowRedVersion(); + }; + }; + delete []CSTR.lowerBuff; + CSTR.lowerBuff = NULL; + }; + + vct->terminate(); +}; + +void VerCheckerThread::run() +{ + _checkVer(); +}; diff --git a/vercheckerthread.h b/vercheckerthread.h new file mode 100755 index 0000000..6af3528 --- /dev/null +++ b/vercheckerthread.h @@ -0,0 +1,19 @@ +#ifndef VERCHECKERTHREAD_H +#define VERCHECKERTHREAD_H + +#pragma once +#include "STh.h" +#include "resource.h" + +class VerCheckerThread : public QThread +{ + Q_OBJECT + +public: + +protected: + void run(); +}; + +extern VerCheckerThread *vct; +#endif // VERCHECKERTHREAD_H diff --git a/wflogin.txt b/wflogin.txt new file mode 100755 index 0000000..2084120 --- /dev/null +++ b/wflogin.txt @@ -0,0 +1,3 @@ +[FAIL] +admin +root \ No newline at end of file diff --git a/wfpass.txt b/wfpass.txt new file mode 100755 index 0000000..548a4e7 --- /dev/null +++ b/wfpass.txt @@ -0,0 +1,10 @@ +[FAIL] +admin +root +pass +password +toor +123123 +123456 +12345 +qwerty \ No newline at end of file