Skip to content

Commit

Permalink
FTP fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cora32 committed Jan 20, 2016
1 parent 5bff76a commit 9a29f89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions FTPAuth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ lopaStr FTPA::FTPBrute(const char *ip, const int port, PathStr *ps) {

char login[128] = {0};
char pass[32] = {0};
char nip[128] = { 0 };
//char nip[128] = { 0 };

for (int i = 0; i < MaxFTPLogin; ++i)
{
Expand All @@ -30,7 +30,6 @@ lopaStr FTPA::FTPBrute(const char *ip, const int port, PathStr *ps) {
strcpy(login, ftpLoginLst[i]);
if (strlen(login) <= 1) continue;


for (int j = 0; j < MaxFTPPass; ++j)
{
if(!globalScanFlag) return lps;
Expand All @@ -41,7 +40,7 @@ lopaStr FTPA::FTPBrute(const char *ip, const int port, PathStr *ps) {
lpString = string(login) + ":" + string(pass);

Connector con;
res = con.nConnect(nip, port, &buffer, NULL, NULL, &lpString);
res = con.nConnect(ip, port, &buffer, NULL, NULL, &lpString);
if (res == -2) {
if (rowIndex == -1) {
nesca_3::addBARow(QString(ip) + ":" + QString::number(port), "--", "FAIL");
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2716B-167
2716B-2E6

0 comments on commit 9a29f89

Please sign in to comment.