mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
FTP fix
This commit is contained in:
parent
5bff76ac40
commit
9a29f8963d
@ -21,7 +21,7 @@ lopaStr FTPA::FTPBrute(const char *ip, const int port, PathStr *ps) {
|
|||||||
|
|
||||||
char login[128] = {0};
|
char login[128] = {0};
|
||||||
char pass[32] = {0};
|
char pass[32] = {0};
|
||||||
char nip[128] = { 0 };
|
//char nip[128] = { 0 };
|
||||||
|
|
||||||
for (int i = 0; i < MaxFTPLogin; ++i)
|
for (int i = 0; i < MaxFTPLogin; ++i)
|
||||||
{
|
{
|
||||||
@ -30,7 +30,6 @@ lopaStr FTPA::FTPBrute(const char *ip, const int port, PathStr *ps) {
|
|||||||
strcpy(login, ftpLoginLst[i]);
|
strcpy(login, ftpLoginLst[i]);
|
||||||
if (strlen(login) <= 1) continue;
|
if (strlen(login) <= 1) continue;
|
||||||
|
|
||||||
|
|
||||||
for (int j = 0; j < MaxFTPPass; ++j)
|
for (int j = 0; j < MaxFTPPass; ++j)
|
||||||
{
|
{
|
||||||
if(!globalScanFlag) return lps;
|
if(!globalScanFlag) return lps;
|
||||||
@ -41,7 +40,7 @@ lopaStr FTPA::FTPBrute(const char *ip, const int port, PathStr *ps) {
|
|||||||
lpString = string(login) + ":" + string(pass);
|
lpString = string(login) + ":" + string(pass);
|
||||||
|
|
||||||
Connector con;
|
Connector con;
|
||||||
res = con.nConnect(nip, port, &buffer, NULL, NULL, &lpString);
|
res = con.nConnect(ip, port, &buffer, NULL, NULL, &lpString);
|
||||||
if (res == -2) {
|
if (res == -2) {
|
||||||
if (rowIndex == -1) {
|
if (rowIndex == -1) {
|
||||||
nesca_3::addBARow(QString(ip) + ":" + QString::number(port), "--", "FAIL");
|
nesca_3::addBARow(QString(ip) + ":" + QString::number(port), "--", "FAIL");
|
||||||
|
Loading…
Reference in New Issue
Block a user