mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 12:36:09 -07:00
fix smtp
This commit is contained in:
parent
8fb5f5e2b4
commit
feaab90b1f
2 changed files with 13 additions and 2 deletions
5
CHANGES
5
CHANGES
|
@ -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
|
||||||
|
|
10
hydra-smtp.c
10
hydra-smtp.c
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue