From a514051bfd6b5cee7cd4d0b2f52b2f0f18fe81c9 Mon Sep 17 00:00:00 2001 From: cora32 Date: Sat, 28 Mar 2015 12:27:59 +0300 Subject: [PATCH] SSH msg-spam fixed. --- SSHAuth.cpp | 3 +-- finder.cpp | 25 +++++++++++++++++++------ version | 2 +- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/SSHAuth.cpp b/SSHAuth.cpp index 10a9ab0..cb73e13 100644 --- a/SSHAuth.cpp +++ b/SSHAuth.cpp @@ -37,8 +37,7 @@ int _sshConnect(const char *user, const char *pass, const char *host, int port) if(res != CURLE_OK) { curl_easy_cleanup(curl); ++ssh; - stt->doEmitionRedFoundData("[SSH]Cannot connect to: " + QString(host) + ":" + QString::number(port)); - return 0; + return -2; } if(sock != -1) { diff --git a/finder.cpp b/finder.cpp index ccaf7d4..93efd2f 100644 --- a/finder.cpp +++ b/finder.cpp @@ -1785,7 +1785,9 @@ int redirectReconnect(char *ip, int port, char *str, Lexems *ls, PathStr *ps, st { ps->flag = -1; ls->flag = -1; - if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + "] Rejecting in _header::redirect [Dead host]."); + if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + + "] Rejecting in _header::redirect [Dead host]."); }; return -2; @@ -1899,7 +1901,9 @@ int redirectReconnect(char *ip, int port, char *str, Lexems *ls, PathStr *ps, st { ps->flag = -1; ls->flag = -1; - if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + "] Rejecting in _header::redirect [Dead host]."); + if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + + "] Rejecting in _header::redirect [Dead host]."); }; return -2; @@ -1964,7 +1968,9 @@ int redirectReconnect(char *ip, int port, char *str, Lexems *ls, PathStr *ps, st { ps->flag = -1; ls->flag = -1; - if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + "] Rejecting in _header::redirect [Dead host]."); + if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + + "] Rejecting in _header::redirect [Dead host]."); }; return -2; } @@ -2018,7 +2024,9 @@ int redirectReconnect(char *ip, int port, char *str, Lexems *ls, PathStr *ps, st { ps->flag = -1; ls->flag = -1; - if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + "] Rejecting in _header::redirect [Dead host]."); + if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + + "] Rejecting in _header::redirect [Dead host]."); }; return -2; }; @@ -2495,7 +2503,10 @@ int Lexems::_header(char *ip, int port, const char str[], Lexems *l, PathStr *ps while(str1 != NULL); return -2; }; - + if (strstri(str, "
headr, "[Form]"); + } //if(strstri(str, "headr, " [Login form detected]"); @@ -2589,7 +2600,9 @@ int Lexems::_header(char *ip, int port, const char str[], Lexems *l, PathStr *ps { if(gNegDebugMode) { - stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + "] Rejecting in _header::Lowload_body (<250b)"); + stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + + "] Rejecting in _header::Lowload_body (<15b)"); }; ++Filt; diff --git a/version b/version index 89f9067..21d64d4 100644 --- a/version +++ b/version @@ -1 +1 @@ -24B38-32E \ No newline at end of file +24B38-40C \ No newline at end of file