Added sshpass checking.

This commit is contained in:
cora32 2015-03-24 00:00:53 +03:00
parent 65dbbfb039
commit 8b4e8b0a91
2 changed files with 5 additions and 1 deletions

View File

@ -94,6 +94,10 @@ int SSHBrute(const char* host, int port, std::string *buffer, const char *banner
if(!globalScanFlag) break;
strcpy(temp, sshlpLst[i]);
ptr1 = strstr(temp, ":");
if (ptr1 == NULL) {
stt->doEmitionRedFoundData("[SSH]Wrong format: " + QString(temp));
return -1;
}
sz = ptr1 - temp;
strncpy(login, temp, sz);
strcpy(pass, ptr1 + 1);

View File

@ -22,5 +22,5 @@ admin:123123
admin:654321
root:password
admin:pasword
test:test
root:1qazXSW@
test:test