eclipse push

This commit is contained in:
cora48 2015-02-24 17:14:32 +03:00
parent 98b9fc2f17
commit b484bcc18f
15 changed files with 3540 additions and 244 deletions

View File

@ -212,9 +212,9 @@ int KeyCheckerMain()
if(strstr(msg, "202 Accepted") != NULL) if(strstr(msg, "202 Accepted") != NULL)
{ {
#pragma region QTGUI_Area
stt->doEmitionGreenFoundData("[Key check] -OK. Key is valid!"); stt->doEmitionGreenFoundData("[Key check] -OK. Key is valid!");
#pragma endregion
CSSOCKET(sock); CSSOCKET(sock);
if(emitIfOK == 0) stt->doEmitionStartScanIP(); if(emitIfOK == 0) stt->doEmitionStartScanIP();
@ -224,11 +224,11 @@ int KeyCheckerMain()
} }
else if(strstr(msg, "400 Bad Request") != NULL) else if(strstr(msg, "400 Bad Request") != NULL)
{ {
#pragma region QTGUI_Area
QString errorDef = GetNSErrorDefinition(msg, "notify"); QString errorDef = GetNSErrorDefinition(msg, "notify");
if(errorDef == "Invalid access key") stt->doEmitionYellowFoundData("[NS-Track] [Key is unauthorized] A valid key is required."); if(errorDef == "Invalid access key") stt->doEmitionYellowFoundData("[NS-Track] [Key is unauthorized] A valid key is required.");
else stt->doEmitionYellowFoundData("[NS-Track] -FAIL! [400 Bad Request : " + GetNSErrorDefinition(msg, "notify") + "]"); else stt->doEmitionYellowFoundData("[NS-Track] -FAIL! [400 Bad Request : " + GetNSErrorDefinition(msg, "notify") + "]");
#pragma endregion
CSSOCKET(sock); CSSOCKET(sock);
return -1; return -1;
} }
@ -240,12 +240,12 @@ int KeyCheckerMain()
} }
else else
{ {
#pragma region QTGUI_Area
char header[64] = {0}; char header[64] = {0};
getSubStrEx(msg, "http/1.1 ", "\r\n", header, 64); getSubStrEx(msg, "http/1.1 ", "\r\n", header, 64);
stt->doEmitionYellowFoundData("[Key check] -FAIL! An error occured. (" + QString::number(WSAGetLastError()) + ") Header: <u>" + QString::fromLocal8Bit(header) + "</u>"); stt->doEmitionYellowFoundData("[Key check] -FAIL! An error occured. (" + QString::number(WSAGetLastError()) + ") Header: <u>" + QString::fromLocal8Bit(header) + "</u>");
if(gDebugMode) stt->doEmitionDebugFoundData(QString(msg)); if(gDebugMode) stt->doEmitionDebugFoundData(QString(msg));
#pragma endregion
CSSOCKET(sock); CSSOCKET(sock);
return -1; return -1;
}; };
@ -255,12 +255,12 @@ int KeyCheckerMain()
} }
else else
{ {
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[Key check] -Balancer replied with invalid string."); stt->doEmitionRedFoundData("[Key check] -Balancer replied with invalid string.");
if(gDebugMode) stt->doEmitionDebugFoundData(QString(msg)); if(gDebugMode) stt->doEmitionDebugFoundData(QString(msg));
CSSOCKET(sock); CSSOCKET(sock);
return -1; return -1;
#pragma endregion
}; };
}; };

View File

@ -49,24 +49,24 @@ void CheckProxyLogic()
if(pSock == INVALID_SOCKET) if(pSock == INVALID_SOCKET)
{ {
#pragma region QTGUI_Area
chPTh->doEmitChangeRedIRCData("CheckProxy: -INVALID SOCKET."); chPTh->doEmitChangeRedIRCData("CheckProxy: -INVALID SOCKET.");
#pragma endregion
} }
else else
{ {
if(connect(pSock, (sockaddr*)&addr, sizeof(addr)) != SOCKET_ERROR) if(connect(pSock, (sockaddr*)&addr, sizeof(addr)) != SOCKET_ERROR)
{ {
#pragma region QTGUI_Area
chPTh->doEmitChangeRawIRCDataOut(QString::fromLocal8Bit("CONNECT 2ip.ru HTTP/1.1\r\n\r\n")); chPTh->doEmitChangeRawIRCDataOut(QString::fromLocal8Bit("CONNECT 2ip.ru HTTP/1.1\r\n\r\n"));
#pragma endregion
send(pSock, "CONNECT 2ip.ru HTTP/1.1\r\n\r\n", strlen("CONNECT 2ip.ru HTTP/1.1\r\n\r\n"), 0); send(pSock, "CONNECT 2ip.ru HTTP/1.1\r\n\r\n", strlen("CONNECT 2ip.ru HTTP/1.1\r\n\r\n"), 0);
while(recv(pSock, precvBuff, sizeof(precvBuff), 0) > 0) while(recv(pSock, precvBuff, sizeof(precvBuff), 0) > 0)
{ {
#pragma region QTGUI_Area
chPTh->doEmitChangeRawIRCDataInc(QString::fromLocal8Bit(precvBuff)); chPTh->doEmitChangeRawIRCDataInc(QString::fromLocal8Bit(precvBuff));
#pragma endregion
if( (strstr(precvBuff, "HTTP/1.1 200 OK") || strstr(precvBuff, "200 OK") if( (strstr(precvBuff, "HTTP/1.1 200 OK") || strstr(precvBuff, "200 OK")
|| strstr(precvBuff, "OK 200") || strstr(precvBuff, "200 Connection") || strstr(precvBuff, "OK 200") || strstr(precvBuff, "200 Connection")
) )
@ -81,17 +81,17 @@ void CheckProxyLogic()
) )
{ {
#pragma region QTGUI_Area
chPTh->doEmitChangeRawIRCDataOut(QString::fromLocal8Bit("GET / HTTP/1.1\r\nHost: 2ip.ru\r\n\r\n")); chPTh->doEmitChangeRawIRCDataOut(QString::fromLocal8Bit("GET / HTTP/1.1\r\nHost: 2ip.ru\r\n\r\n"));
#pragma endregion
send(pSock, "GET / HTTP/1.1\r\nHost: 2ip.ru\r\n\r\n", strlen("GET / HTTP/1.1\r\nHost: 2ip.ru\r\n\r\n"), 0); send(pSock, "GET / HTTP/1.1\r\nHost: 2ip.ru\r\n\r\n", strlen("GET / HTTP/1.1\r\nHost: 2ip.ru\r\n\r\n"), 0);
ZeroMemory(precvBuff, sizeof(precvBuff)); ZeroMemory(precvBuff, sizeof(precvBuff));
while(recv(pSock, precvBuff, sizeof(precvBuff), 0) > 0) while(recv(pSock, precvBuff, sizeof(precvBuff), 0) > 0)
{ {
#pragma region QTGUI_Area
chPTh->doEmitChangeRawIRCDataInc(QString::fromLocal8Bit(precvBuff)); chPTh->doEmitChangeRawIRCDataInc(QString::fromLocal8Bit(precvBuff));
#pragma endregion
if(strstr(precvBuff, "404 File Not Found") == NULL && strstr(precvBuff, "Invalid Request") == NULL if(strstr(precvBuff, "404 File Not Found") == NULL && strstr(precvBuff, "Invalid Request") == NULL
&& strstr(precvBuff, "Invalid request") == NULL && strstr(precvBuff, "invalid request") == NULL && strstr(precvBuff, "Invalid request") == NULL && strstr(precvBuff, "invalid request") == NULL
&& strstr(precvBuff, "400 Bad Request") == NULL && strstr(precvBuff, "400 bad request") == NULL && strstr(precvBuff, "400 Bad Request") == NULL && strstr(precvBuff, "400 bad request") == NULL
@ -105,9 +105,9 @@ void CheckProxyLogic()
) )
{ {
#pragma region QTGUI_Area
chPTh->doEmitChangeGreenIRCData("[OK] Success! Now using " + QString(ircProxy) + ":" + QString(ircProxyPort) + "."); chPTh->doEmitChangeGreenIRCData("[OK] Success! Now using " + QString(ircProxy) + ":" + QString(ircProxyPort) + ".");
#pragma endregion
proxyEnabledFlag = 1; proxyEnabledFlag = 1;
CSSOCKET(pSock); CSSOCKET(pSock);
@ -115,9 +115,9 @@ void CheckProxyLogic()
} }
else else
{ {
#pragma region QTGUI_Area
chPTh->doEmitChangeRedIRCData(QString(ircProxy) + ":" + QString(ircProxyPort) + " - is not CONNECT proxy? Try another one."); chPTh->doEmitChangeRedIRCData(QString(ircProxy) + ":" + QString(ircProxyPort) + " - is not CONNECT proxy? Try another one.");
#pragma endregion
proxyEnabledFlag = 0; proxyEnabledFlag = 0;
CSSOCKET(pSock); CSSOCKET(pSock);
@ -128,9 +128,9 @@ void CheckProxyLogic()
} }
else else
{ {
#pragma region QTGUI_Area
chPTh->doEmitChangeRedIRCData(QString(ircProxy) + ":" + QString(ircProxyPort) + " - is not CONNECT proxy? Try another one."); chPTh->doEmitChangeRedIRCData(QString(ircProxy) + ":" + QString(ircProxyPort) + " - is not CONNECT proxy? Try another one.");
#pragma endregion
proxyEnabledFlag = 0; proxyEnabledFlag = 0;
CSSOCKET(pSock); CSSOCKET(pSock);
@ -140,9 +140,9 @@ void CheckProxyLogic()
} }
else else
{ {
#pragma region QTGUI_Area
chPTh->doEmitChangeRedIRCData("Cannot connect to " + QString(ircProxy) + ":" + QString(ircProxyPort) + "."); chPTh->doEmitChangeRedIRCData("Cannot connect to " + QString(ircProxy) + ":" + QString(ircProxyPort) + ".");
#pragma endregion
proxyEnabledFlag = 0; proxyEnabledFlag = 0;
}; };
}; };

View File

@ -17,9 +17,9 @@ void IRCPinger_Th::run()
{ {
if(globalPinger >= 360) //6min timeout if(globalPinger >= 360) //6min timeout
{ {
#pragma region QTGUI_Area
ircPTh->doEmitChangeRedIRCData("-//- Ping timeout. Reconnecting... "); ircPTh->doEmitChangeRedIRCData("-//- Ping timeout. Reconnecting... ");
#pragma endregion
ircPTh->doEmitRestartIRC(); ircPTh->doEmitRestartIRC();
globalPinger = 0; globalPinger = 0;

View File

@ -30,28 +30,34 @@ int _countFTPDirectories(char *recvBuff){
}; };
void BConInc() void BConInc()
{ {
__asm #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
__asm
{ {
lock inc BrutingThrds; lock inc BrutingThrds;
}; };
#pragma region QTGUI_Area #else
asm("lock incl BrutingThrds");
#endif
stt->doEmitionChangeBA(QString::number(BrutingThrds)); stt->doEmitionChangeBA(QString::number(BrutingThrds));
#pragma endregion }
++BA;
};
void BConDec() void BConDec()
{ {
if(BrutingThrds > 0) if(BrutingThrds > 0)
{ {
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
__asm __asm
{ {
lock dec BrutingThrds; lock dec BrutingThrds;
}; };
#else
asm("lock decl BrutingThrds");
#endif
} }
#pragma region QTGUI_Area
stt->doEmitionChangeBA(QString::number(BrutingThrds)); stt->doEmitionChangeBA(QString::number(BrutingThrds));
#pragma endregion
}; }
bool debugWriteWait = false; bool debugWriteWait = false;
void _DebugWriteHTMLToFile(char *request, char *buff) void _DebugWriteHTMLToFile(char *request, char *buff)
{ {
@ -72,7 +78,7 @@ void _DebugWriteHTMLToFile(char *request, char *buff)
stt->doEmitionRedFoundData("[DEBUG] Cannot open debugData.txt"); stt->doEmitionRedFoundData("[DEBUG] Cannot open debugData.txt");
}; };
debugWriteWait = false; debugWriteWait = false;
}; }
unsigned char tl(unsigned char d) unsigned char tl(unsigned char d)
{ {
if(d >= 192 && d <= 223) if(d >= 192 && d <= 223)
@ -100,13 +106,13 @@ int recvWT(
FD_SET(Socket,&ReadSet); FD_SET(Socket,&ReadSet);
Time.tv_sec = Timeout; Time.tv_sec = Timeout;
Time.tv_usec = 0; Time.tv_usec = 0;
*bTimedOut = FALSE; *bTimedOut = false;
n = select(Socket+1,&ReadSet,NULL,NULL,&Time); n = select(Socket+1,&ReadSet,NULL,NULL,&Time);
if (n > 0) { /* got some data */ if (n > 0) { /* got some data */
return recv(Socket,Buffer,Len,0); return recv(Socket,Buffer,Len,0);
} }
if (n == 0) { /* timeout */ if (n == 0) { /* timeout */
*bTimedOut = TRUE; *bTimedOut = true;
} }
return(n) ; /* trouble */ return(n) ; /* trouble */
} }
@ -381,11 +387,14 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
strcat(hRqst, path); strcat(hRqst, path);
strcat(hRqst, " HTTP/1.1\r\nHost: "); strcat(hRqst, " HTTP/1.1\r\nHost: ");
strcat(hRqst, ip); strcat(hRqst, ip);
if(port != 80){ if(port != 80){
strcat(hRqst, ":"); strcat(hRqst, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(hRqst, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(hRqst, tbuff);
}; };
if(cookieLen != 0) if(cookieLen != 0)
{ {
strcat(hRqst, "\r\nCookie: "); strcat(hRqst, "\r\nCookie: ");
@ -394,15 +403,13 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
strcat(hRqst, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nAuthorization: Basic bG9sa2E6bG9sa2F=\r\n\r\n"); strcat(hRqst, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nAuthorization: Basic bG9sa2E6bG9sa2F=\r\n\r\n");
sockaddr_in sockAddr; sockaddr_in sockAddr;
#pragma region VerifyBASSL
if(port == 443) if(port == 443)
{ {
ZeroMemory(headerMsg, REQUEST_MAX_SIZE); ZeroMemory(headerMsg, REQUEST_MAX_SIZE);
_baSSLWorker(ip, hRqst, headerMsg); _baSSLWorker(ip, hRqst, headerMsg);
} }
#pragma endregion
else else
#pragma region VerifyBA
{ {
SOCKET sock; SOCKET sock;
sockAddr.sin_family = AF_INET; sockAddr.sin_family = AF_INET;
@ -460,7 +467,7 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
}; };
CSSOCKET(sock); CSSOCKET(sock);
}; };
#pragma endregion
if(strlen(headerMsg) == 0) if(strlen(headerMsg) == 0)
@ -527,7 +534,7 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
return lps; return lps;
}; };
}; };
#pragma endregion
isActive = 1; isActive = 1;
char tPass[256] = {0}; char tPass[256] = {0};
@ -586,7 +593,8 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
if(port != 80){ if(port != 80){
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
}; };
if(cookieLen != 0) if(cookieLen != 0)
{ {
@ -628,7 +636,8 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
if(port != 80){ if(port != 80){
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
}; };
if(cookieLen != 0) if(cookieLen != 0)
{ {
@ -641,7 +650,6 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
strcat(request, "\r\nConnection: close\r\n\r\n"); strcat(request, "\r\nConnection: close\r\n\r\n");
}; };
#pragma region BABSEQ-HTTPS
if(port == 443) if(port == 443)
{ {
ZeroMemory(recvBuff, sizeof(recvBuff)); ZeroMemory(recvBuff, sizeof(recvBuff));
@ -649,9 +657,8 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
_baSSLWorker(ip, request, recvBuff); _baSSLWorker(ip, request, recvBuff);
dataSz = strlen(recvBuff); dataSz = strlen(recvBuff);
} }
#pragma endregion
else else
#pragma region BABSEQ-HTTP
{ {
SOCKET sock = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP ); SOCKET sock = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP );
cCode = connect(sock, (sockaddr*)&sockAddr, sizeof(sockAddr)); cCode = connect(sock, (sockaddr*)&sockAddr, sizeof(sockAddr));
@ -716,7 +723,7 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
}; };
CSSOCKET(sock); CSSOCKET(sock);
}; };
#pragma endregion
if(MapWidgetOpened) stt->doEmitionAddIncData(QString(ip), QString(recvBuff)); if(MapWidgetOpened) stt->doEmitionAddIncData(QString(ip), QString(recvBuff));
@ -833,7 +840,7 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
}; };
}; };
}; };
#pragma endregion
isActive = 0; isActive = 0;
strcpy(lps.login, "UNKNOWN"); strcpy(lps.login, "UNKNOWN");
@ -957,9 +964,9 @@ lopaStr _FTPBrute(char *ip, int port, PathStr *ps)
isActive = 0; isActive = 0;
#pragma region QTGUI_Area
stt->doEmition_BARedData("[-] 550 (No connections allowed) - Ban detected. Dropping " + QString(ip)); stt->doEmition_BARedData("[-] 550 (No connections allowed) - Ban detected. Dropping " + QString(ip));
#pragma endregion
strcpy(lps.login, "UNKNOWN"); strcpy(lps.login, "UNKNOWN");
return lps; return lps;
@ -1198,7 +1205,7 @@ lopaStr _FTPBrute(char *ip, int port, PathStr *ps)
{ {
stt->doEmitionYellowFoundData("[*] " + QString(ip) + " [PASV TO] Failed!"); stt->doEmitionYellowFoundData("[*] " + QString(ip) + " [PASV TO] Failed!");
}; };
#pragma endregion
if(xx > 1) if(xx > 1)
{ {
@ -1719,7 +1726,8 @@ lopaStr _WFBrut(char *cookie, char *ip, int port, char *methodVal, char *actionV
strcat(request, ip); strcat(request, ip);
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
if(cookieLen != 0) if(cookieLen != 0)
{ {
strcat(request, "\r\nCookie: "); strcat(request, "\r\nCookie: ");
@ -1792,9 +1800,9 @@ lopaStr _WFBrut(char *cookie, char *ip, int port, char *methodVal, char *actionV
strcat(pass, ":"); strcat(pass, ":");
strcat(pass, wfPassLst[j]); strcat(pass, wfPassLst[j]);
isActive = 0; isActive = 0;
#pragma region QTGUI_Area
stt->doEmition_BAGreenData("[+] " + QString(pass)); stt->doEmition_BAGreenData("[+] " + QString(pass));
#pragma endregion
strcpy(lps.login, wfLoginLst[i]); strcpy(lps.login, wfLoginLst[i]);
strcpy(lps.pass, wfPassLst[j]); strcpy(lps.pass, wfPassLst[j]);
return lps; return lps;
@ -1845,14 +1853,16 @@ lopaStr _WFBrut(char *cookie, char *ip, int port, char *methodVal, char *actionV
strcat(request, ip); strcat(request, ip);
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
if(cookieLen != 0) if(cookieLen != 0)
{ {
strcat(request, "\r\nCookie: "); strcat(request, "\r\nCookie: ");
strcat(request, cookie); strcat(request, cookie);
}; };
strcat(request, "\r\nContent-type: application/x-www-form-urlencoded\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: us-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nConnection: close\r\nContent-Length: "); strcat(request, "\r\nContent-type: application/x-www-form-urlencoded\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: us-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nConnection: close\r\nContent-Length: ");
strcat(request, itoa(strlen(argData), b, 10)); sprintf(b, "%d", strlen(argData));
strcat(request, b);
strcat(request, "\r\n\r\n"); strcat(request, "\r\n\r\n");
strcat(request, argData); strcat(request, argData);
@ -1920,9 +1930,9 @@ lopaStr _WFBrut(char *cookie, char *ip, int port, char *methodVal, char *actionV
strcat(pass, ":"); strcat(pass, ":");
strcat(pass, wfPassLst[j]); strcat(pass, wfPassLst[j]);
isActive = 0; isActive = 0;
#pragma region QTGUI_Area
stt->doEmition_BAGreenData("[+] " + QString(pass)); stt->doEmition_BAGreenData("[+] " + QString(pass));
#pragma endregion
strcpy(lps.login, wfLoginLst[i]); strcpy(lps.login, wfLoginLst[i]);
strcpy(lps.pass, wfPassLst[j]); strcpy(lps.pass, wfPassLst[j]);
return lps; return lps;
@ -1970,7 +1980,7 @@ lopaStr Connector::_WFLobby(char *cookie, char *ip, int port, char *methodVal, c
return res; return res;
}; };
#pragma endregion
#pragma region SSH #pragma region SSH
int _sshConnect(char *user, char *pass, char *host, int port) int _sshConnect(char *user, char *pass, char *host, int port)
{ {
@ -2103,7 +2113,7 @@ int _EstablishSSHConnection(char *host, int port, conSTR *CSTR, char *banner)
isActive = 0; isActive = 0;
return -1; return -1;
}; };
#pragma endregion
#pragma region IPCAMWeb #pragma region IPCAMWeb
int _webLoginSeq(char *request, char *login, char *pass, char *ip, int port, int passCounter, char *type, std::vector<char*> negVector) int _webLoginSeq(char *request, char *login, char *pass, char *ip, int port, int passCounter, char *type, std::vector<char*> negVector)
{ {
@ -2297,7 +2307,8 @@ lopaStr _IPCameraBrute(char *ip, int port, char *SPEC)
if(port != 80){ if(port != 80){
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
}; };
strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: close\r\n\r\n"); strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: close\r\n\r\n");
} }
@ -2312,7 +2323,8 @@ lopaStr _IPCameraBrute(char *ip, int port, char *SPEC)
if(port != 80){ if(port != 80){
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
}; };
strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: close\r\n\r\n"); strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: close\r\n\r\n");
} }
@ -2331,7 +2343,8 @@ lopaStr _IPCameraBrute(char *ip, int port, char *SPEC)
if(port != 80){ if(port != 80){
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
}; };
strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: close\r\n\r\n"); strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: close\r\n\r\n");
} }
@ -2350,7 +2363,8 @@ lopaStr _IPCameraBrute(char *ip, int port, char *SPEC)
if(port != 80){ if(port != 80){
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
}; };
strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: close\r\n\r\n"); strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: close\r\n\r\n");
} }
@ -2365,7 +2379,8 @@ lopaStr _IPCameraBrute(char *ip, int port, char *SPEC)
if(port != 80){ if(port != 80){
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
}; };
strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: close\r\n\r\n"); strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: close\r\n\r\n");
} }
@ -2376,7 +2391,8 @@ lopaStr _IPCameraBrute(char *ip, int port, char *SPEC)
if(port != 80){ if(port != 80){
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
}; };
strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: keep-alive"); strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: keep-alive");
int loginLength = strlen(login); int loginLength = strlen(login);
@ -2390,7 +2406,8 @@ lopaStr _IPCameraBrute(char *ip, int port, char *SPEC)
strcat(passString, pass); strcat(passString, pass);
strcat(request, "\r\nContent-Length: "); strcat(request, "\r\nContent-Length: ");
char tempBuff[16] = {0}; char tempBuff[16] = {0};
strcat(request, itoa(sz, tempBuff, 10)); sprintf(tempBuff, "%d", sz);
strcat(request, tempBuff);
strcat(request, "\r\n\r\n"); strcat(request, "\r\n\r\n");
strcat(request, passString); strcat(request, passString);
delete []passString; delete []passString;
@ -2402,7 +2419,8 @@ lopaStr _IPCameraBrute(char *ip, int port, char *SPEC)
if(port != 80){ if(port != 80){
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
}; };
strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: keep-alive"); strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: keep-alive");
int loginLength = strlen(login); int loginLength = strlen(login);
@ -2417,7 +2435,8 @@ lopaStr _IPCameraBrute(char *ip, int port, char *SPEC)
strcat(passString, "&submit=+Login+"); strcat(passString, "&submit=+Login+");
strcat(request, "\r\nContent-Length: "); strcat(request, "\r\nContent-Length: ");
char tempBuff[16] = {0}; char tempBuff[16] = {0};
strcat(request, itoa(sz, tempBuff, 10)); sprintf(tempBuff, "%d", sz);
strcat(request, tempBuff);
strcat(request, "\r\n\r\n"); strcat(request, "\r\n\r\n");
strcat(request, passString); strcat(request, passString);
delete []passString; delete []passString;
@ -2433,7 +2452,8 @@ lopaStr _IPCameraBrute(char *ip, int port, char *SPEC)
if(port != 80){ if(port != 80){
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
}; };
strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: close\r\n\r\n"); strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: close\r\n\r\n");
@ -2445,7 +2465,8 @@ lopaStr _IPCameraBrute(char *ip, int port, char *SPEC)
if(port != 80){ if(port != 80){
strcat(request, ":"); strcat(request, ":");
char tbuff[16] = {0}; char tbuff[16] = {0};
strcat(request, itoa(port, tbuff, 10)); sprintf(tbuff, "%d", port);
strcat(request, tbuff);
}; };
strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: keep-alive"); strcat(request, "\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: en-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nConnection: keep-alive");
int loginLength = strlen(login); int loginLength = strlen(login);
@ -2459,7 +2480,8 @@ lopaStr _IPCameraBrute(char *ip, int port, char *SPEC)
strcat(passString, pass); strcat(passString, pass);
strcat(request, "\r\nContent-Length: "); strcat(request, "\r\nContent-Length: ");
char tempBuff[16] = {0}; char tempBuff[16] = {0};
strcat(request, itoa(sz, tempBuff, 10)); sprintf(tempBuff, "%d", sz);
strcat(request, tempBuff);
strcat(request, "\r\n\r\n"); strcat(request, "\r\n\r\n");
strcat(request, passString); strcat(request, passString);
delete []passString; delete []passString;
@ -2497,7 +2519,7 @@ lopaStr Connector::_IPCameraBLobby(char *ip, int port, char *SPEC)
return res; return res;
}; };
#pragma endregion
int _pingMyTarget(char *ip) int _pingMyTarget(char *ip)
{ {
HANDLE hIcmpFile; HANDLE hIcmpFile;

2829
connector.cpp.autosave Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,5 @@
#define RECV_MAX_SIZE 350000 #define RECV_MAX_SIZE 350000
#define REQUEST_MAX_SIZE 4096 #define REQUEST_MAX_SIZE 4096
#define SD_BOTH 2
#define PORTSET "80,81,88,8080,8081,60001,60002,8008,8888,554,9000,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"
#define CSSOCKET(Socket) shutdown(Socket, SD_BOTH); closesocket(Socket); Socket = -1; #define CSSOCKET(Socket) shutdown(Socket, SD_BOTH); closesocket(Socket); Socket = -1;

View File

@ -9,7 +9,7 @@ extern void BConInc();
extern void BConDec(); extern void BConDec();
extern QString GetNSErrorDefinition(char *str, char *defin); extern QString GetNSErrorDefinition(char *str, char *defin);
extern void _SaveBackupToFile(); extern void _SaveBackupToFile();
extern char* __cdecl strstri(char *_Str, const char *_SubStr); extern char* strstri(char *_Str, const char *_SubStr);
extern char* _getAttribute(char *str, char *attrib); extern char* _getAttribute(char *str, char *attrib);
extern char *_findFirst(char *str, char *delim); extern char *_findFirst(char *str, char *delim);
extern void nCleanup(); extern void nCleanup();

View File

@ -1,8 +1,8 @@
#include "nesca_3.h" #include "nesca_3.h"
#include <QApplication> #include <QApplication>
#include <qfontdatabase.h>
#if defined(Q_OS_WIN32) #if defined(Q_OS_WIN32)
#include <windows.h> #include <windows.h>
#include <qfontdatabase.h>
#endif #endif
//--Fixing _ITERATOR_DEBUG_LEVEL 0!=2 //--Fixing _ITERATOR_DEBUG_LEVEL 0!=2

View File

@ -1,17 +1,15 @@
#pragma once #pragma once
#include "base64.h" #include "base64.h"
#include <libssh\libssh.h> #include <libssh/libssh.h>
#if defined(Q_OS_WIN32) #include <openssl/ssl.h>
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
#pragma once #pragma once
#include "iostream" #include "iostream"
#include <time.h> #include <time.h>
#include <process.h> #include <process.h>
#include <conio.h> #include <conio.h>
#include <openssl/ssl.h> #else
#endif
#if defined(Q_OS_LINUX)
#pragma once
#include <string> #include <string>
#include <iostream> #include <iostream>
#include <stdio.h> #include <stdio.h>
@ -36,12 +34,16 @@
#define WSAGetLastError() errno #define WSAGetLastError() errno
#define closesocket(sock) ::close((sock)) #define closesocket(sock) ::close((sock))
typedef unsigned int DWORD;
typedef void* LPVOID;
typedef void* HANDLE;
typedef unsigned int UINT; typedef unsigned int UINT;
typedef const char * LPCSTR; typedef const char * LPCSTR;
typedef int SOCKET; typedef int SOCKET;
typedef hostent HOSTENT; typedef hostent HOSTENT;
typedef struct linger LINGER; typedef struct linger LINGER;
typedef int BOOL; typedef int BOOL;
#define INVALID_SOCKET (SOCKET)(~0) #define INVALID_SOCKET (SOCKET)(~0)
#define SOCKET_ERROR (-1) #define SOCKET_ERROR (-1)
#define SD_BOTH 0x02 #define SD_BOTH 0x02

View File

@ -8,13 +8,65 @@ QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
PKGCONFIG += openssl
CONFIG += c++11
TARGET = nesca TARGET = nesca
TEMPLATE = app TEMPLATE = app
LIBS += -lssh
INCLUDEPATH += /opt/Qt5.3.2/5.3/gcc_64/include/QtWidgets/
SOURCES +=\
main.cpp \
ActivityDrawerTh_HorNet.cpp \
base64.cpp \
CheckKey_Th.cpp \
CheckProxy_Th.cpp \
connector.cpp \
DrawerTh_GridQoSScanner.cpp \
DrawerTh_HorNet.cpp \
DrawerTh_ME2Scanner.cpp \
DrawerTh_QoSScanner.cpp \
DrawerTh_VoiceScanner.cpp \
irc_nmblinker.cpp \
IRCPinger_Th.cpp \
msgcheckerthread.cpp \
nesca_3.cpp \
nesca_startModule.cpp \
oIRC_Th.cpp \
piestat.cpp \
progressbardrawer.cpp \
STh.cpp \
vercheckerthread.cpp
SOURCES += main.cpp\ HEADERS += ActivityDrawerTh_HorNet.h \
mainwindow.cpp base64.h \
CheckKey_Th.h \
CheckProxy_Th.h \
DrawerTh_GridQoSScanner.h \
DrawerTh_HorNet.h \
DrawerTh_ME2Scanner.h \
DrawerTh_QoSScanner.h \
DrawerTh_VoiceScanner.h \
externData.h \
externFunctions.h \
irc_nmblinker.h \
IRCPinger_Th.h \
mainResources.h \
msgcheckerthread.h \
nesca_3.h \
oIRC_Th.h \
piestat.h \
progressbardrawer.h \
resource.h \
STh.h \
vercheckerthread.h
HEADERS += mainwindow.h FORMS += nesca_3.ui
RESOURCES += \
nesca_3.qrc
OTHER_FILES += \
nesca_3.rc
FORMS += mainwindow.ui

267
nesca.pro.user Normal file
View File

@ -0,0 +1,267 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 3.2.1, 2015-02-24T13:47:42. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
<value type="QByteArray">{09239471-2602-4d8c-98f8-d340993c53e4}</value>
</data>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
<value type="int">0</value>
</data>
<data>
<variable>ProjectExplorer.Project.EditorSettings</variable>
<valuemap type="QVariantMap">
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
<value type="QString" key="language">Cpp</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
</valuemap>
</valuemap>
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
<value type="QString" key="language">QmlJS</value>
<valuemap type="QVariantMap" key="value">
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
</valuemap>
</valuemap>
<value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
<value type="int" key="EditorConfiguration.IndentSize">4</value>
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
<value type="int" key="EditorConfiguration.TabSize">8</value>
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap"/>
</data>
<data>
<variable>ProjectExplorer.Project.Target.0</variable>
<valuemap type="QVariantMap">
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.3 GCC 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.3 GCC 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.53.gcc_64_kit</value>
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/kvs/Documents/CProjects/build-nesca-Desktop_Qt_5_3_GCC_64bit-Debug</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value>
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
<value type="QString">-w</value>
<value type="QString">-r</value>
</valuelist>
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
<value type="QString">-w</value>
<value type="QString">-r</value>
</valuelist>
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/kvs/Documents/CProjects/build-nesca-Desktop_Qt_5_3_GCC_64bit-Release</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value>
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
<value type="QString">-w</value>
<value type="QString">-r</value>
</valuelist>
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
</valuemap>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
<value type="QString">-w</value>
<value type="QString">-r</value>
</valuelist>
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
</valuemap>
<value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
</valuemap>
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy locally</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
</valuemap>
<value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
<valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
<value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
<value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
<value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
<value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value>
<value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
<valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
<value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value>
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
<value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value>
<value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
<value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
<valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
<value type="int">0</value>
<value type="int">1</value>
<value type="int">2</value>
<value type="int">3</value>
<value type="int">4</value>
<value type="int">5</value>
<value type="int">6</value>
<value type="int">7</value>
<value type="int">8</value>
<value type="int">9</value>
<value type="int">10</value>
<value type="int">11</value>
<value type="int">12</value>
<value type="int">13</value>
<value type="int">14</value>
</valuelist>
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">nesca</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/kvs/Documents/CProjects/nesca/nesca.pro</value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">nesca.pro</value>
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
<value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
</valuemap>
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
</data>
<data>
<variable>ProjectExplorer.Project.TargetCount</variable>
<value type="int">1</value>
</data>
<data>
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
<value type="int">16</value>
</data>
<data>
<variable>Version</variable>
<value type="int">16</value>
</data>
</qtcreator>

View File

@ -170,7 +170,7 @@ bool ME2ScanFlag = true, QoSScanFlag = false, VoiceScanFlag = false, PieStatFlag
Ui::nesca_3Class *ui = new Ui::nesca_3Class; Ui::nesca_3Class *ui = new Ui::nesca_3Class;
#pragma endregion
void setSceneArea() void setSceneArea()
{ {
delete ui->graphicsVoice; delete ui->graphicsVoice;
@ -1426,16 +1426,16 @@ void nesca_3::ConnectToIRCServer()
} }
else else
{ {
#pragma region QTGUI_Area
ui->ircText->append("<span style=\"color:red;background-color:#313131;\">No IRC port specified!</span>"); ui->ircText->append("<span style=\"color:red;background-color:#313131;\">No IRC port specified!</span>");
#pragma endregion
}; };
} }
else else
{ {
#pragma region QTGUI_Area
ui->ircText->append("<span style=\"color:red;background-color:#313131;\">No IRC server specified!</span>"); ui->ircText->append("<span style=\"color:red;background-color:#313131;\">No IRC server specified!</span>");
#pragma endregion
}; };
}; };
void nesca_3::ChangeIRCRawLog() void nesca_3::ChangeIRCRawLog()
@ -2514,7 +2514,7 @@ void nesca_3::smReaction()
}; };
}; };
#pragma endregion
void nesca_3::IPScanSeq() void nesca_3::IPScanSeq()
{ {
if(ui->ipLine->text() != "") if(ui->ipLine->text() != "")
@ -2919,7 +2919,7 @@ void nesca_3::ConnectEvrthng()
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()) );
}; };
#pragma endregion
void RestoreSession() void RestoreSession()
{ {
@ -2929,9 +2929,9 @@ void RestoreSession()
if(resFile != NULL) if(resFile != NULL)
{ {
#pragma region QTGUI_Area
stt->doEmitionYellowFoundData("Previous session file found! Restoring..."); stt->doEmitionYellowFoundData("Previous session file found! Restoring...");
#pragma endregion
while(fgets(resStr, 128, resFile) != NULL) while(fgets(resStr, 128, resFile) != NULL)
{ {
if(strstr(resStr, "[SESSION]:") != NULL) if(strstr(resStr, "[SESSION]:") != NULL)
@ -3198,9 +3198,9 @@ void RestoreSession()
}; };
fclose(resFile); fclose(resFile);
#pragma region QTGUI_Area
stt->doEmitionGreenFoundData("Previous session restored."); stt->doEmitionGreenFoundData("Previous session restored.");
#pragma endregion
}; };
} }
void CreateVerFile() void CreateVerFile()
@ -3338,10 +3338,10 @@ void _startMsgCheck()
WSADATA wsda; WSADATA wsda;
if (WSAStartup(0x0101, &wsda)) if (WSAStartup(0x0101, &wsda))
{ {
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("WSAStartup failed."); stt->doEmitionRedFoundData("WSAStartup failed.");
stt->doEmitionKillSttThread(); stt->doEmitionKillSttThread();
#pragma endregion
}; };
#endif #endif
@ -3829,7 +3829,7 @@ void nesca_3::appendDefaultIRCText(bool pm, bool hlflag, int cCode, QString str,
pos += colr.matchedLength(); pos += colr.matchedLength();
thisIsUrl = true; thisIsUrl = true;
}; };
#pragma endregion
#pragma region Bold-handler #pragma region Bold-handler
int posBold = 0; int posBold = 0;
@ -3844,7 +3844,7 @@ void nesca_3::appendDefaultIRCText(bool pm, bool hlflag, int cCode, QString str,
posBold += boldr.matchedLength(); posBold += boldr.matchedLength();
thisIsUrl = true; thisIsUrl = true;
}; };
#pragma endregion
#pragma region underline-handler #pragma region underline-handler
int posUnder = 0; int posUnder = 0;
@ -3859,7 +3859,7 @@ void nesca_3::appendDefaultIRCText(bool pm, bool hlflag, int cCode, QString str,
posUnder += under.matchedLength(); posUnder += under.matchedLength();
thisIsUrl = true; thisIsUrl = true;
}; };
#pragma endregion
#pragma region link-handler #pragma region link-handler
r.indexIn(str); r.indexIn(str);
@ -3871,7 +3871,7 @@ void nesca_3::appendDefaultIRCText(bool pm, bool hlflag, int cCode, QString str,
str.replace(r, "<a href=\"" + link.trimmed() + "\"><span style=\"color: #717171;\">" + link.trimmed() + "</span></a> "); str.replace(r, "<a href=\"" + link.trimmed() + "\"><span style=\"color: #717171;\">" + link.trimmed() + "</span></a> ");
thisIsUrl = true; thisIsUrl = true;
}; };
#pragma endregion
str.replace("", "</font>"); str.replace("", "</font>");
str.replace("", "</font>"); str.replace("", "</font>");

View File

@ -9,8 +9,8 @@
#include <QGraphicsScene> #include <QGraphicsScene>
#include <QGraphicsItem> #include <QGraphicsItem>
#include "ui_nesca_3.h" #include "ui_nesca_3.h"
#include <QSystemTrayIcon.h> #include <QSystemTrayIcon>
#include <QtGui\qevent.h> #include <QtGui/qevent.h>
#include <qthread.h> #include <qthread.h>
#include <qdatetime.h> #include <qdatetime.h>
#include <qjsonobject.h> #include <qjsonobject.h>
@ -18,7 +18,8 @@
#include <qjsonarray.h> #include <qjsonarray.h>
#include <qtextcodec.h> #include <qtextcodec.h>
#include <qjsondocument.h> #include <qjsondocument.h>
#include <libssh\libssh.h> #include <libssh/libssh.h>
#include <mainResources.h>
extern Ui::nesca_3Class *ui; extern Ui::nesca_3Class *ui;
extern bool widgetIsHidden, IRCLogToggled, BALogSwitched, blinkFlag, disableBlink, debugFileOK, QOSWait, extern bool widgetIsHidden, IRCLogToggled, BALogSwitched, blinkFlag, disableBlink, debugFileOK, QOSWait,
@ -192,7 +193,7 @@ protected:
move(x()+delta.x(), y()+delta.y()); move(x()+delta.x(), y()+delta.y());
oldPos = evt->globalPos(); oldPos = evt->globalPos();
} }
void mouseReleaseEvent(QMouseEvent *evt) void mouseReleaseEvent()
{ {
if(switchWindows) if(switchWindows)
{ {

View File

@ -32,7 +32,7 @@
<string>NESCA 3</string> <string>NESCA 3</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="nesca_3.qrc"> <iconset>
<normaloff>:/nesca_3/Z:/nesca.ico</normaloff>:/nesca_3/Z:/nesca.ico</iconset> <normaloff>:/nesca_3/Z:/nesca.ico</normaloff>:/nesca_3/Z:/nesca.ico</iconset>
</property> </property>
<property name="windowOpacity"> <property name="windowOpacity">
@ -1677,7 +1677,7 @@ border-radius: 3px;</string>
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Consolas'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Consolas'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="cursorWidth"> <property name="cursorWidth">
@ -2179,7 +2179,7 @@ p, li { white-space: pre-wrap; }
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="nesca_3.qrc"> <iconset>
<normaloff>:/nesca_3/Z:/nesca.ico</normaloff>:/nesca_3/Z:/nesca.ico</iconset> <normaloff>:/nesca_3/Z:/nesca.ico</normaloff>:/nesca_3/Z:/nesca.ico</iconset>
</property> </property>
</widget> </widget>
@ -2432,7 +2432,7 @@ p, li { white-space: pre-wrap; }
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Eurostile'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Eurostile'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="cursorWidth"> <property name="cursorWidth">
@ -3043,62 +3043,188 @@ background-color: #000000;</string>
<property name="palette"> <property name="palette">
<palette> <palette>
<active> <active>
<colorrole role="Base"> <colorrole role="Button">
<brush brushstyle="SolidPattern"> <brush brushstyle="LinearGradientPattern">
<color alpha="0"> <gradient startx="0.541000000000000" starty="0.500364000000000" endx="0.540000000000000" endy="0.000000000000000" type="LinearGradient" spread="PadSpread" coordinatemode="ObjectBoundingMode">
<red>49</red> <gradientstop position="0.000000000000000">
<green>49</green> <color alpha="255">
<blue>49</blue> <red>16</red>
<green>16</green>
<blue>16</blue>
</color> </color>
</brush> </gradientstop>
</colorrole> <gradientstop position="1.000000000000000">
<colorrole role="Window"> <color alpha="255">
<brush brushstyle="SolidPattern">
<color alpha="0">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</gradientstop>
</gradient>
</brush>
</colorrole>
<colorrole role="Base">
<brush brushstyle="LinearGradientPattern">
<gradient startx="0.541000000000000" starty="0.500364000000000" endx="0.540000000000000" endy="0.000000000000000" type="LinearGradient" spread="PadSpread" coordinatemode="ObjectBoundingMode">
<gradientstop position="0.000000000000000">
<color alpha="255">
<red>16</red>
<green>16</green>
<blue>16</blue>
</color>
</gradientstop>
<gradientstop position="1.000000000000000">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</gradientstop>
</gradient>
</brush>
</colorrole>
<colorrole role="Window">
<brush brushstyle="LinearGradientPattern">
<gradient startx="0.541000000000000" starty="0.500364000000000" endx="0.540000000000000" endy="0.000000000000000" type="LinearGradient" spread="PadSpread" coordinatemode="ObjectBoundingMode">
<gradientstop position="0.000000000000000">
<color alpha="255">
<red>16</red>
<green>16</green>
<blue>16</blue>
</color>
</gradientstop>
<gradientstop position="1.000000000000000">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</gradientstop>
</gradient>
</brush> </brush>
</colorrole> </colorrole>
</active> </active>
<inactive> <inactive>
<colorrole role="Base"> <colorrole role="Button">
<brush brushstyle="SolidPattern"> <brush brushstyle="LinearGradientPattern">
<color alpha="0"> <gradient startx="0.541000000000000" starty="0.500364000000000" endx="0.540000000000000" endy="0.000000000000000" type="LinearGradient" spread="PadSpread" coordinatemode="ObjectBoundingMode">
<red>49</red> <gradientstop position="0.000000000000000">
<green>49</green> <color alpha="255">
<blue>49</blue> <red>16</red>
<green>16</green>
<blue>16</blue>
</color> </color>
</brush> </gradientstop>
</colorrole> <gradientstop position="1.000000000000000">
<colorrole role="Window"> <color alpha="255">
<brush brushstyle="SolidPattern">
<color alpha="0">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</gradientstop>
</gradient>
</brush>
</colorrole>
<colorrole role="Base">
<brush brushstyle="LinearGradientPattern">
<gradient startx="0.541000000000000" starty="0.500364000000000" endx="0.540000000000000" endy="0.000000000000000" type="LinearGradient" spread="PadSpread" coordinatemode="ObjectBoundingMode">
<gradientstop position="0.000000000000000">
<color alpha="255">
<red>16</red>
<green>16</green>
<blue>16</blue>
</color>
</gradientstop>
<gradientstop position="1.000000000000000">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</gradientstop>
</gradient>
</brush>
</colorrole>
<colorrole role="Window">
<brush brushstyle="LinearGradientPattern">
<gradient startx="0.541000000000000" starty="0.500364000000000" endx="0.540000000000000" endy="0.000000000000000" type="LinearGradient" spread="PadSpread" coordinatemode="ObjectBoundingMode">
<gradientstop position="0.000000000000000">
<color alpha="255">
<red>16</red>
<green>16</green>
<blue>16</blue>
</color>
</gradientstop>
<gradientstop position="1.000000000000000">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</gradientstop>
</gradient>
</brush> </brush>
</colorrole> </colorrole>
</inactive> </inactive>
<disabled> <disabled>
<colorrole role="Base"> <colorrole role="Button">
<brush brushstyle="SolidPattern"> <brush brushstyle="LinearGradientPattern">
<color alpha="0"> <gradient startx="0.541000000000000" starty="0.500364000000000" endx="0.540000000000000" endy="0.000000000000000" type="LinearGradient" spread="PadSpread" coordinatemode="ObjectBoundingMode">
<gradientstop position="0.000000000000000">
<color alpha="255">
<red>16</red>
<green>16</green>
<blue>16</blue>
</color>
</gradientstop>
<gradientstop position="1.000000000000000">
<color alpha="255">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</gradientstop>
</gradient>
</brush>
</colorrole>
<colorrole role="Base">
<brush brushstyle="LinearGradientPattern">
<gradient startx="0.541000000000000" starty="0.500364000000000" endx="0.540000000000000" endy="0.000000000000000" type="LinearGradient" spread="PadSpread" coordinatemode="ObjectBoundingMode">
<gradientstop position="0.000000000000000">
<color alpha="255">
<red>16</red>
<green>16</green>
<blue>16</blue>
</color>
</gradientstop>
<gradientstop position="1.000000000000000">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</gradientstop>
</gradient>
</brush> </brush>
</colorrole> </colorrole>
<colorrole role="Window"> <colorrole role="Window">
<brush brushstyle="SolidPattern"> <brush brushstyle="LinearGradientPattern">
<color alpha="0"> <gradient startx="0.541000000000000" starty="0.500364000000000" endx="0.540000000000000" endy="0.000000000000000" type="LinearGradient" spread="PadSpread" coordinatemode="ObjectBoundingMode">
<gradientstop position="0.000000000000000">
<color alpha="255">
<red>16</red>
<green>16</green>
<blue>16</blue>
</color>
</gradientstop>
<gradientstop position="1.000000000000000">
<color alpha="255">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</gradientstop>
</gradient>
</brush> </brush>
</colorrole> </colorrole>
</disabled> </disabled>
@ -3287,7 +3413,7 @@ background-color: #000000;</string>
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Eurostile'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Eurostile'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="acceptRichText"> <property name="acceptRichText">
@ -3423,7 +3549,7 @@ p, li { white-space: pre-wrap; }
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Eurostile'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Eurostile'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:2px; margin-bottom:2px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:2px; margin-bottom:2px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="acceptRichText"> <property name="acceptRichText">
@ -3884,8 +4010,6 @@ color: rgb(71, 71, 71);</string>
<tabstop>exitButton</tabstop> <tabstop>exitButton</tabstop>
<tabstop>dataText</tabstop> <tabstop>dataText</tabstop>
</tabstops> </tabstops>
<resources> <resources/>
<include location="nesca_3.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>

View File

@ -141,9 +141,9 @@ void ConInc()
{ {
lock inc cons; lock inc cons;
}; };
#pragma region QTGUI_Area
stt->doEmitionThreads(QString::number(cons) + "/" + QString::number(gThreads)); stt->doEmitionThreads(QString::number(cons) + "/" + QString::number(gThreads));
#pragma endregion
}; };
void ConDec() void ConDec()
{ {
@ -154,9 +154,9 @@ void ConDec()
lock dec cons; lock dec cons;
}; };
}; };
#pragma region QTGUI_Area
stt->doEmitionThreads(QString::number(cons) + "/" + QString::number(gThreads)); stt->doEmitionThreads(QString::number(cons) + "/" + QString::number(gThreads));
#pragma endregion
}; };
void _SaveBackupToFile() void _SaveBackupToFile()
{ {
@ -411,10 +411,10 @@ void *_timer()
strcat(dbuffer, "d)"); strcat(dbuffer, "d)");
strcat(timeLeft, (strcmp(dbuffer, "1.$d)") == 0 ? "INF)" : dbuffer)); strcat(timeLeft, (strcmp(dbuffer, "1.$d)") == 0 ? "INF)" : dbuffer));
#pragma region QTGUI_Area
stt->doEmitionIPS(QString(timeLeft)); stt->doEmitionIPS(QString(timeLeft));
stt->doEmitionOffline(QString::number(offlines)); stt->doEmitionOffline(QString::number(offlines));
#pragma endregion
ZeroMemory(timeLeft, sizeof(timeLeft)); ZeroMemory(timeLeft, sizeof(timeLeft));
ZeroMemory(dbuffer, sizeof(dbuffer)); ZeroMemory(dbuffer, sizeof(dbuffer));
Sleep(1000); Sleep(1000);
@ -463,18 +463,18 @@ void *_tracker()
if(connect(sock, (sockaddr*)&sockAddr, sizeof(sockAddr)) == -1) if(connect(sock, (sockaddr*)&sockAddr, sizeof(sockAddr)) == -1)
{ {
CSSOCKET(sock); CSSOCKET(sock);
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[NS-Track] -Cannot connect to balancer! " + QString::number(WSAGetLastError()) + "."); stt->doEmitionRedFoundData("[NS-Track] -Cannot connect to balancer! " + QString::number(WSAGetLastError()) + ".");
#pragma endregion
continue; continue;
}; };
if(send(sock, msg, strlen(msg), 0) == -1) if(send(sock, msg, strlen(msg), 0) == -1)
{ {
CSSOCKET(sock); CSSOCKET(sock);
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[NS-Track] -Cannot send to balancer! " + QString::number(WSAGetLastError()) + "."); stt->doEmitionRedFoundData("[NS-Track] -Cannot send to balancer! " + QString::number(WSAGetLastError()) + ".");
#pragma endregion
continue; continue;
}; };
@ -497,9 +497,9 @@ void *_tracker()
if(test == -1) if(test == -1)
{ {
CSSOCKET(sock); CSSOCKET(sock);
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[NS-Track] -Cannot recv from balancer! " + QString::number(WSAGetLastError()) + "."); stt->doEmitionRedFoundData("[NS-Track] -Cannot recv from balancer! " + QString::number(WSAGetLastError()) + ".");
#pragma endregion
continue; continue;
}; };
@ -515,19 +515,19 @@ void *_tracker()
if(ln > 64) if(ln > 64)
{ {
CSSOCKET(sock); CSSOCKET(sock);
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[NS-Track] -Received server string is not valid!"); stt->doEmitionRedFoundData("[NS-Track] -Received server string is not valid!");
SaveErrorLog("NS-Track", msg, rBuffT); SaveErrorLog("NS-Track", msg, rBuffT);
#pragma endregion
continue; continue;
} }
else strncpy(ndbServer, (char*)(t1 + strlen("http://")), ln); else strncpy(ndbServer, (char*)(t1 + strlen("http://")), ln);
if(strlen(t2) > 64) if(strlen(t2) > 64)
{ {
#pragma region QTGUI_Area
stt->doEmitionYellowFoundData("[NS-Track] -Fragmentation detected!"); stt->doEmitionYellowFoundData("[NS-Track] -Fragmentation detected!");
#pragma endregion
if(strstr(t2, "\r\n") != NULL) if(strstr(t2, "\r\n") != NULL)
{ {
char *t3 = strstr(t2, "\r\n"); char *t3 = strstr(t2, "\r\n");
@ -536,9 +536,9 @@ void *_tracker()
if(y > 64) if(y > 64)
{ {
CSSOCKET(sock); CSSOCKET(sock);
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[NS-Track] -Received server string is not valid!"); stt->doEmitionRedFoundData("[NS-Track] -Received server string is not valid!");
#pragma endregion
SaveErrorLog("NS-Track", msg, rBuffT); SaveErrorLog("NS-Track", msg, rBuffT);
continue; continue;
} }
@ -546,18 +546,18 @@ void *_tracker()
{ {
strncpy(ndbScriptT, t2, y); strncpy(ndbScriptT, t2, y);
CSSOCKET(sock); CSSOCKET(sock);
#pragma region QTGUI_Area
stt->doEmitionGreenFoundData("[NS-Track] -OK! -Fragmented server string aquired! Starting NS-Track loop..."); stt->doEmitionGreenFoundData("[NS-Track] -OK! -Fragmented server string aquired! Starting NS-Track loop...");
#pragma endregion
strncpy(ndbScript, ndbScriptT, strlen(ndbScriptT) ); strncpy(ndbScript, ndbScriptT, strlen(ndbScriptT) );
}; };
} }
else else
{ {
CSSOCKET(sock); CSSOCKET(sock);
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[NS-Track] -Received server string is not valid!"); stt->doEmitionRedFoundData("[NS-Track] -Received server string is not valid!");
#pragma endregion
SaveErrorLog("NS-Track", msg, rBuffT); SaveErrorLog("NS-Track", msg, rBuffT);
continue; continue;
}; };
@ -565,9 +565,9 @@ void *_tracker()
else else
{ {
strcpy(ndbScriptT, t2); strcpy(ndbScriptT, t2);
#pragma region QTGUI_Area
stt->doEmitionGreenFoundData("[NS-Track] -OK! -Server string aquired! Starting NS-Track loop..."); stt->doEmitionGreenFoundData("[NS-Track] -OK! -Server string aquired! Starting NS-Track loop...");
#pragma endregion
CSSOCKET(sock); CSSOCKET(sock);
strncpy(ndbScript, ndbScriptT, strlen(ndbScriptT) - 2 ); strncpy(ndbScript, ndbScriptT, strlen(ndbScriptT) - 2 );
}; };
@ -575,9 +575,9 @@ void *_tracker()
else else
{ {
CSSOCKET(sock); CSSOCKET(sock);
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[NS-Track] -Cannot receive script value!"); stt->doEmitionRedFoundData("[NS-Track] -Cannot receive script value!");
#pragma endregion
continue; continue;
}; };
@ -668,9 +668,9 @@ void *_tracker()
{ {
CSSOCKET(sock); CSSOCKET(sock);
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[NS-Track] -connect() returned " + QString::number(WSAGetLastError()) + "."); stt->doEmitionRedFoundData("[NS-Track] -connect() returned " + QString::number(WSAGetLastError()) + ".");
#pragma endregion
continue; continue;
}; };
@ -684,9 +684,9 @@ void *_tracker()
if(send(sock, msg, strlen(msg), 0) == -1) if(send(sock, msg, strlen(msg), 0) == -1)
{ {
CSSOCKET(sock); CSSOCKET(sock);
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[NS-Track] -send() returned " + QString::number(WSAGetLastError()) + "."); stt->doEmitionRedFoundData("[NS-Track] -send() returned " + QString::number(WSAGetLastError()) + ".");
#pragma endregion
SaveErrorLog("NS-Track", msg, ""); SaveErrorLog("NS-Track", msg, "");
continue; continue;
}; };
@ -729,29 +729,29 @@ void *_tracker()
if(test == -1) if(test == -1)
{ {
CSSOCKET(sock); CSSOCKET(sock);
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[NS-Track] -recv() returned " + QString::number(WSAGetLastError()) + "."); stt->doEmitionRedFoundData("[NS-Track] -recv() returned " + QString::number(WSAGetLastError()) + ".");
#pragma endregion
SaveErrorLog("NS-Track", msg, ""); SaveErrorLog("NS-Track", msg, "");
continue; continue;
}; };
if(strstr(rBuffT, "201 Created") != NULL) if(strstr(rBuffT, "201 Created") != NULL)
{ {
#pragma region QTGUI_Area
if(gDebugMode) stt->doEmitionYellowFoundData("[NS-Track] -OK. Data saved!"); if(gDebugMode) stt->doEmitionYellowFoundData("[NS-Track] -OK. Data saved!");
stt->doEmitionDataSaved(true); stt->doEmitionDataSaved(true);
Sleep(1000); Sleep(1000);
stt->doEmitionDataSaved(false); stt->doEmitionDataSaved(false);
#pragma endregion
} }
else if(strstr(rBuffT, "400 Bad Request") != NULL) else if(strstr(rBuffT, "400 Bad Request") != NULL)
{ {
#pragma region QTGUI_Area
QString errorDef = GetNSErrorDefinition(rBuffT, "notify"); QString errorDef = GetNSErrorDefinition(rBuffT, "notify");
if(errorDef == "Invalid access key") stt->doEmitionYellowFoundData("[NS-Track] [Key is unauthorized] A valid key is required."); if(errorDef == "Invalid access key") stt->doEmitionYellowFoundData("[NS-Track] [Key is unauthorized] A valid key is required.");
else stt->doEmitionYellowFoundData("[NS-Track] -FAIL! [400 Bad Request : " + errorDef + "]"); else stt->doEmitionYellowFoundData("[NS-Track] -FAIL! [400 Bad Request : " + errorDef + "]");
#pragma endregion
SaveErrorLog("NS-Track", msg, rBuffT); SaveErrorLog("NS-Track", msg, rBuffT);
} }
else else
@ -868,7 +868,7 @@ unsigned long int numOfIps(int ipsstart[], int ipsend[])
// // }; // // };
// // }; // // };
// //}; // //};
//#pragma endregion //
// //
// return res; // return res;
//}; //};
@ -913,10 +913,10 @@ void targetAndIPWriter(unsigned long int target, char *buff)
strcpy(curIPBuff, "--->"); strcpy(curIPBuff, "--->");
strcat(curIPBuff, buff); strcat(curIPBuff, buff);
#pragma region QTGUI_Area
stt->doEmitionIPRANGE(QString(curIPBuff)); stt->doEmitionIPRANGE(QString(curIPBuff));
stt->doEmitionTargetsLeft(QString(targetNPers)); stt->doEmitionTargetsLeft(QString(targetNPers));
#pragma endregion
}; };
void _passLoginFapper() void _passLoginFapper()
{ {
@ -971,9 +971,9 @@ void _passLoginFapper()
ZeroMemory(buffFG, sizeof(buffFG)); ZeroMemory(buffFG, sizeof(buffFG));
}; };
#pragma region QTGUI_Area
stt->doEmitionGreenFoundData("Password list loaded (" + QString(std::to_string(MaxPass).c_str()) + " entries)"); stt->doEmitionGreenFoundData("Password list loaded (" + QString(std::to_string(MaxPass).c_str()) + " entries)");
#pragma endregion
i = 0; i = 0;
@ -986,19 +986,19 @@ void _passLoginFapper()
ZeroMemory(buffFG, sizeof(buffFG)); ZeroMemory(buffFG, sizeof(buffFG));
}; };
#pragma region QTGUI_Area
stt->doEmitionGreenFoundData("Login list loaded (" + QString(std::to_string(MaxLogin).c_str()) + " entries)"); stt->doEmitionGreenFoundData("Login list loaded (" + QString(std::to_string(MaxLogin).c_str()) + " entries)");
#pragma endregion
fclose(loginList); fclose(loginList);
fclose(passList); fclose(passList);
} }
else else
{ {
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("No password/login list found"); stt->doEmitionRedFoundData("No password/login list found");
stt->doEmitionKillSttThread(); stt->doEmitionKillSttThread();
#pragma endregion
}; };
MaxWFLogin = 0; MaxWFLogin = 0;
@ -1052,9 +1052,9 @@ void _passLoginFapper()
ZeroMemory(buffFG, sizeof(buffFG)); ZeroMemory(buffFG, sizeof(buffFG));
}; };
#pragma region QTGUI_Area
stt->doEmitionGreenFoundData("WFPassword list loaded (" + QString(std::to_string(MaxWFPass).c_str()) + " entries)"); stt->doEmitionGreenFoundData("WFPassword list loaded (" + QString(std::to_string(MaxWFPass).c_str()) + " entries)");
#pragma endregion
i = 0; i = 0;
@ -1067,19 +1067,19 @@ void _passLoginFapper()
ZeroMemory(buffFG, sizeof(buffFG)); ZeroMemory(buffFG, sizeof(buffFG));
}; };
#pragma region QTGUI_Area
stt->doEmitionGreenFoundData("WFLogin list loaded (" + QString(std::to_string(MaxWFLogin).c_str()) + " entries)"); stt->doEmitionGreenFoundData("WFLogin list loaded (" + QString(std::to_string(MaxWFLogin).c_str()) + " entries)");
#pragma endregion
fclose(wfLoginList); fclose(wfLoginList);
fclose(wfLoginList); fclose(wfLoginList);
} }
else else
{ {
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("No password/login list found"); stt->doEmitionRedFoundData("No password/login list found");
stt->doEmitionKillSttThread(); stt->doEmitionKillSttThread();
#pragma endregion
}; };
#pragma region SSHPASS #pragma region SSHPASS
@ -1118,24 +1118,24 @@ void _passLoginFapper()
ZeroMemory(buffFG, sizeof(buffFG)); ZeroMemory(buffFG, sizeof(buffFG));
}; };
#pragma region QTGUI_Area
stt->doEmitionGreenFoundData("SSH Password list loaded (" + QString(std::to_string(MaxSSHPass).c_str()) + " entries)"); stt->doEmitionGreenFoundData("SSH Password list loaded (" + QString(std::to_string(MaxSSHPass).c_str()) + " entries)");
#pragma endregion
fclose(sshlpList); fclose(sshlpList);
} }
else else
{ {
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("No password/login list found"); stt->doEmitionRedFoundData("No password/login list found");
stt->doEmitionKillSttThread(); stt->doEmitionKillSttThread();
#pragma endregion
};
#pragma endregion
#pragma region QTGUI_Area };
stt->doEmitionYellowFoundData("BA: ~" + QString(std::to_string(MaxLogin * MaxPass/gTimeOut/60).c_str()) + "; WF: ~" + QString(std::to_string(MaxWFLogin * MaxWFPass/gTimeOut/60).c_str()) + "; SSH: ~" + QString(std::to_string(MaxSSHPass/gTimeOut/60).c_str())); stt->doEmitionYellowFoundData("BA: ~" + QString(std::to_string(MaxLogin * MaxPass/gTimeOut/60).c_str()) + "; WF: ~" + QString(std::to_string(MaxWFLogin * MaxWFPass/gTimeOut/60).c_str()) + "; SSH: ~" + QString(std::to_string(MaxSSHPass/gTimeOut/60).c_str()));
#pragma endregion
}; };
void ReadUTF8(FILE* nFile, char *cp) void ReadUTF8(FILE* nFile, char *cp)
{ {
@ -1231,19 +1231,19 @@ void ReadUTF8(FILE* nFile, char *cp)
ZeroMemory(buffFG, sizeof(buffFG)); ZeroMemory(buffFG, sizeof(buffFG));
}; };
#pragma region QTGUI_Area
stt->doEmitionGreenFoundData("Negative list loaded (" + QString::number(GlobalNegativeSize) + " entries)"); stt->doEmitionGreenFoundData("Negative list loaded (" + QString::number(GlobalNegativeSize) + " entries)");
#pragma endregion
ZeroMemory(buffFG, sizeof(buffFG)); ZeroMemory(buffFG, sizeof(buffFG));
fclose(nFile); fclose(nFile);
} }
else else
{ {
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("No negative list found"); stt->doEmitionRedFoundData("No negative list found");
stt->doEmitionKillSttThread(); stt->doEmitionKillSttThread();
#pragma endregion
}; };
} }
#ifdef WIN32 #ifdef WIN32
@ -1341,10 +1341,10 @@ void CheckMaskBits(char *res, int index)
} }
else else
{ {
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[CheckMaskBits] Cannot parse IP list"); stt->doEmitionRedFoundData("[CheckMaskBits] Cannot parse IP list");
stt->doEmitionKillSttThread(); stt->doEmitionKillSttThread();
#pragma endregion
}; };
}; };
void GetOctets(char *curIP) void GetOctets(char *curIP)
@ -2225,7 +2225,7 @@ int _GetDNSFromMask(char *mask, char *saveMask, char *saveMaskEnder)
}; };
#endif #endif
Sleep(gThreadDelay); Sleep(gThreadDelay);
#pragma endregion
}; };
}; };
@ -2275,10 +2275,10 @@ int startScan(char* args)
int resInit = fInit(gMode, gRange); int resInit = fInit(gMode, gRange);
if(resInit == -1 ) if(resInit == -1 )
{ {
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("[Error] fInit failure"); stt->doEmitionRedFoundData("[Error] fInit failure");
stt->doEmitionKillSttThread(); stt->doEmitionKillSttThread();
#pragma endregion
return -1; return -1;
}; };
@ -2797,26 +2797,26 @@ stt->doEmitionThreads(QString::number(0) + "/" + QString::number(gThreads));
} }
else else
{ {
#pragma region QTGUI_Area
stt->doEmitionRedFoundData("Wrong parameters."); stt->doEmitionRedFoundData("Wrong parameters.");
#pragma endregion
}; };
Sleep(gTimeOut + 1); Sleep(gTimeOut + 1);
#pragma region QTGUI_Area
stt->doEmitionYellowFoundData("Stopping threads..."); stt->doEmitionYellowFoundData("Stopping threads...");
stt->doEmitionChangeStatus("Stopping..."); stt->doEmitionChangeStatus("Stopping...");
#pragma endregion
while(cons > 0 || isActive == 1 || jsonArr->size() > 0) Sleep(2000); while(cons > 0 || isActive == 1 || jsonArr->size() > 0) Sleep(2000);
nCleanup(); nCleanup();
#pragma region QTGUI_Area
stt->doEmitionGreenFoundData("Done. Saved: " + QString::number(saved) + "; Alive: " + QString::number(found) + "."); stt->doEmitionGreenFoundData("Done. Saved: " + QString::number(saved) + "; Alive: " + QString::number(found) + ".");
stt->doEmitionChangeParsed(QString::number(saved) + "/" + QString::number(found)); stt->doEmitionChangeParsed(QString::number(saved) + "/" + QString::number(found));
stt->doEmitionChangeStatus("Idle"); stt->doEmitionChangeStatus("Idle");
stt->doEmitionKillSttThread(); stt->doEmitionKillSttThread();
#pragma endregion
}; };
void nCleanup(){ void nCleanup(){