This commit is contained in:
vanhauser-thc 2022-11-03 17:05:41 +01:00
parent 8fb5f5e2b4
commit feaab90b1f
2 changed files with 13 additions and 2 deletions

View file

@ -2,10 +2,11 @@ Changelog for hydra
------------------- -------------------
Release 9.5-dev Release 9.5-dev
* The help for http-form was wrong. the condition variable must always be
the *last* parameter, not the third
* smb2: fix for updated libsmb2 which resulted in correct guessing attempts * smb2: fix for updated libsmb2 which resulted in correct guessing attempts
not being detected not being detected
* The help for http forms was wrong. the condition variable must always be * smtp: break early if the server does not allow authentication
the *last* parameter, not the third
Release 9.4 Release 9.4

View file

@ -61,6 +61,10 @@ int32_t start_smtp(int32_t s, char *ip, int32_t port, unsigned char options, cha
return 1; return 1;
if (strstr(buf, "334") == NULL) { if (strstr(buf, "334") == NULL) {
hydra_report(stderr, "[ERROR] SMTP PLAIN AUTH : %s\n", buf); hydra_report(stderr, "[ERROR] SMTP PLAIN AUTH : %s\n", buf);
if (strstr(buf, "503") != NULL) {
free(buf);
return 4;
}
free(buf); free(buf);
return 3; return 3;
} }
@ -438,6 +442,12 @@ void service_smtp(char *ip, int32_t sp, unsigned char options, char *miscptr, FI
} }
hydra_child_exit(0); hydra_child_exit(0);
return; return;
case 4: /* error exit */
if (sock >= 0) {
sock = hydra_disconnect(sock);
}
hydra_child_exit(3);
return;
default: default:
hydra_report(stderr, "[ERROR] Caught unknown return code, exiting!\n"); hydra_report(stderr, "[ERROR] Caught unknown return code, exiting!\n");
hydra_child_exit(0); hydra_child_exit(0);