diff --git a/connector.cpp b/connector.cpp index 5e57ef0..312e98d 100644 --- a/connector.cpp +++ b/connector.cpp @@ -51,26 +51,6 @@ void BConDec() stt->doEmitionChangeBA(QString::number(BrutingThrds)); #pragma endregion }; -void SSHConInc() -{ - __asm - { - lock inc BrutingThrds; - }; -#pragma region QTGUI_Area - stt->doEmitionChangeBA(QString::number(BrutingThrds)); -#pragma endregion -}; -void SSHConDec() -{ - __asm - { - lock dec BrutingThrds; - }; -#pragma region QTGUI_Area - stt->doEmitionChangeBA(QString::number(BrutingThrds)); -#pragma endregion -}; bool debugWriteWait = false; void _DebugWriteHTMLToFile(char *request, char *buff) { @@ -2089,7 +2069,7 @@ int _EstablishSSHConnection(char *host, int port, conSTR *CSTR, char *banner) char pass[32] = {0}; char temp[64] = {0}; isActive = 1; - SSHConInc(); + BConInc(); int sz = 0; char *ptr1 = 0; int res = -1; @@ -2108,19 +2088,19 @@ int _EstablishSSHConnection(char *host, int port, conSTR *CSTR, char *banner) if(res == 0) { if(i == 0) return -2; //Failhit - SSHConDec(); + BConDec(); isActive = 0; return 0; } else if(res == -2) { - SSHConDec(); + BConDec(); isActive = 0; return -2; }; Sleep(500); }; - SSHConDec(); + BConDec(); isActive = 0; return -1; }; diff --git a/finder.cpp b/finder.cpp index b942f25..86811f3 100644 --- a/finder.cpp +++ b/finder.cpp @@ -407,10 +407,12 @@ int ContentFilter(char *buff, int port, char *ip, char *cp) { if(buff != NULL) { - int sz = strlen(buff); int res = 0; + std::string tempString = toLowerStr(buff); + int sz = tempString.size(); char *lBuff = new char[sz + 1]; ZeroMemory(lBuff, sz + 1); + if(strstr(cp, "1251") != NULL) { strcpy(lBuff, toLowerStr(buff).c_str());