mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
SSH msg-spam fixed.
This commit is contained in:
parent
837ce29455
commit
a514051bfd
@ -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) {
|
||||
|
25
finder.cpp
25
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("[<a href=\"http://" + QString(ip) + ":" + QString::number(port) + "/\"><font color=\"#0084ff\">" + QString(ip) + ":" + QString::number(port) + "</font></a>" + "] Rejecting in _header::redirect [Dead host].");
|
||||
if(gNegDebugMode) stt->doEmitionDebugFoundData("[<a href=\"http://" + QString(ip) + ":" + QString::number(port)
|
||||
+ "/\"><font color=\"#0084ff\">" + QString(ip) + ":" + QString::number(port) + "</font></a>"
|
||||
+ "] 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("[<a href=\"http://" + QString(ip) + ":" + QString::number(port) + "/\"><font color=\"#0084ff\">" + QString(ip) + ":" + QString::number(port) + "</font></a>" + "] Rejecting in _header::redirect [Dead host].");
|
||||
if(gNegDebugMode) stt->doEmitionDebugFoundData("[<a href=\"http://" + QString(ip) + ":" + QString::number(port) +
|
||||
"/\"><font color=\"#0084ff\">" + QString(ip) + ":" + QString::number(port) + "</font></a>" +
|
||||
"] 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("[<a href=\"http://" + QString(ip) + ":" + QString::number(port) + "/\"><font color=\"#0084ff\">" + QString(ip) + ":" + QString::number(port) + "</font></a>" + "] Rejecting in _header::redirect [Dead host].");
|
||||
if(gNegDebugMode) stt->doEmitionDebugFoundData("[<a href=\"http://" + QString(ip) + ":" + QString::number(port) +
|
||||
"/\"><font color=\"#0084ff\">" + QString(ip) + ":" + QString::number(port) + "</font></a>" +
|
||||
"] 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("[<a href=\"http://" + QString(ip) + ":" + QString::number(port) + "/\"><font color=\"#0084ff\">" + QString(ip) + ":" + QString::number(port) + "</font></a>" + "] Rejecting in _header::redirect [Dead host].");
|
||||
if(gNegDebugMode) stt->doEmitionDebugFoundData("[<a href=\"http://" + QString(ip) + ":" + QString::number(port) +
|
||||
"/\"><font color=\"#0084ff\">" + QString(ip) + ":" + QString::number(port) + "</font></a>" +
|
||||
"] 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, "<form ") != NULL)
|
||||
{
|
||||
strcat(ps->headr, "[Form]");
|
||||
}
|
||||
//if(strstri(str, "<form ") != NULL)
|
||||
//{
|
||||
// strcat(ps->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("[<a href=\"http://" + QString(ip) + ":" + QString::number(port) + "/\"><font color=\"#0084ff\">" + QString(ip) + ":" + QString::number(port) + "</font></a>" + "] Rejecting in _header::Lowload_body (<250b)");
|
||||
stt->doEmitionDebugFoundData("[<a href=\"http://" + QString(ip) + ":" + QString::number(port) +
|
||||
"/\"><font color=\"#0084ff\">" + QString(ip) + ":" + QString::number(port) + "</font></a>" +
|
||||
"] Rejecting in _header::Lowload_body (<15b)");
|
||||
};
|
||||
|
||||
++Filt;
|
||||
|
Loading…
Reference in New Issue
Block a user