mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
Added sshpass checking.
This commit is contained in:
parent
19e458126d
commit
dc390d3921
@ -94,6 +94,10 @@ int SSHBrute(const char* host, int port, std::string *buffer, const char *banner
|
|||||||
if(!globalScanFlag) break;
|
if(!globalScanFlag) break;
|
||||||
strcpy(temp, sshlpLst[i]);
|
strcpy(temp, sshlpLst[i]);
|
||||||
ptr1 = strstr(temp, ":");
|
ptr1 = strstr(temp, ":");
|
||||||
|
if (ptr1 == NULL) {
|
||||||
|
stt->doEmitionRedFoundData("[SSH]Wrong format: " + QString(temp));
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
sz = ptr1 - temp;
|
sz = ptr1 - temp;
|
||||||
strncpy(login, temp, sz);
|
strncpy(login, temp, sz);
|
||||||
strcpy(pass, ptr1 + 1);
|
strcpy(pass, ptr1 + 1);
|
||||||
|
@ -22,5 +22,5 @@ admin:123123
|
|||||||
admin:654321
|
admin:654321
|
||||||
root:password
|
root:password
|
||||||
admin:pasword
|
admin:pasword
|
||||||
test:test
|
|
||||||
root:1qazXSW@
|
root:1qazXSW@
|
||||||
|
test:test
|
Loading…
Reference in New Issue
Block a user