mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 05:43:52 -07:00
pre-8.0
This commit is contained in:
parent
6a94f708e8
commit
9f75ddad8b
32 changed files with 208 additions and 129 deletions
|
@ -47,7 +47,7 @@ int start_rlogin(int s, char *ip, int port, unsigned char options, char *miscptr
|
|||
return 1;
|
||||
|
||||
if (ret > 0 && (strstr(buffer, "ssword") != NULL)) {
|
||||
if (strlen(pass = hydra_get_next_password()) == 0)
|
||||
if (strlen((pass = hydra_get_next_password())) == 0)
|
||||
pass = empty;
|
||||
sprintf(buffer2, "%s\r", pass);
|
||||
if (hydra_send(s, buffer2, 1 + strlen(pass), 0) < 0) {
|
||||
|
@ -56,7 +56,9 @@ int start_rlogin(int s, char *ip, int port, unsigned char options, char *miscptr
|
|||
memset(buffer, 0, sizeof(buffer));
|
||||
ret = hydra_recv(s, buffer, sizeof(buffer));
|
||||
if (strcmp(buffer, "\r\n"))
|
||||
ret = hydra_recv(s, buffer, sizeof(buffer));
|
||||
ret = hydra_recv(s, buffer, sizeof(buffer) - 1);
|
||||
if (ret >= 0)
|
||||
buffer[ret] = 0;
|
||||
}
|
||||
/* Authentication failure */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue