mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 21:33:51 -07:00
segfault fix
This commit is contained in:
parent
9772a91fb0
commit
ba4a23d2d4
2 changed files with 21 additions and 12 deletions
1
CHANGES
1
CHANGES
|
@ -4,6 +4,7 @@ Changelog for hydra
|
||||||
|
|
||||||
Release 8.7-dev
|
Release 8.7-dev
|
||||||
* added patch from debian maintainers which fixes spellings
|
* added patch from debian maintainers which fixes spellings
|
||||||
|
* fixed weird crash on x64 systems
|
||||||
* many warning fixes by crondaemon
|
* many warning fixes by crondaemon
|
||||||
|
|
||||||
|
|
||||||
|
|
32
hydra.c
32
hydra.c
|
@ -3522,17 +3522,22 @@ int32_t main(int32_t argc, char *argv[]) {
|
||||||
options = 0;
|
options = 0;
|
||||||
if (hydra_options.ssl)
|
if (hydra_options.ssl)
|
||||||
options = options | OPTION_SSL;
|
options = options | OPTION_SSL;
|
||||||
if (hydra_options.colonfile != NULL)
|
|
||||||
printf("[DATA] max %d task%s per %d server%s, overall %d tasks, %lu login tr%s, ~%lu tr%s per task\n", hydra_options.tasks, hydra_options.tasks == 1 ? "" : "s",
|
printf("[DATA] max %d task%s per %d server%s, overall %d task%s, %lu login tr",
|
||||||
hydra_brains.targets, hydra_brains.targets == 1 ? "" : "s", hydra_options.max_use, hydra_brains.todo, hydra_brains.todo == 1 ? "y" : "ies", math2,
|
hydra_options.tasks, hydra_options.tasks == 1 ? "" : "s",
|
||||||
math2 == 1 ? "y" : "ies");
|
hydra_brains.targets, hydra_brains.targets == 1 ? "" : "s",
|
||||||
else
|
hydra_options.max_use, hydra_options.max_use == 1 ? "" : "s",
|
||||||
printf("[DATA] max %d task%s per %d server%s, overall %d task%s, %lu login tr%s (l:%lu/p:%lu), ~%lu tr%s per task\n", hydra_options.tasks, hydra_options.tasks == 1 ? "" : "s",
|
hydra_brains.todo);
|
||||||
hydra_brains.targets, hydra_brains.targets == 1 ? "" : "s",
|
printf("%s", hydra_brains.todo == 1 ? "y" : "ies");
|
||||||
hydra_options.max_use, hydra_options.max_use == 1 ? "" : "s",
|
if (hydra_options.colonfile == NULL) {
|
||||||
hydra_brains.todo, hydra_brains.todo == 1 ? "y" : "ies",
|
printf(" (l:%lu/p:%lu), ~%lu tr",
|
||||||
(uint64_t) hydra_brains.countlogin, (uint64_t) hydra_brains.countpass,
|
(uint64_t) hydra_brains.countlogin, (uint64_t) hydra_brains.countpass,
|
||||||
math2, math2 == 1 ? "y" : "ies");
|
math2);
|
||||||
|
} else {
|
||||||
|
printf(", ~%lu tr", math2);
|
||||||
|
}
|
||||||
|
printf("%s", math2 == 1 ? "y" : "ies");
|
||||||
|
printf(" per task\n");
|
||||||
|
|
||||||
if (hydra_brains.targets == 1) {
|
if (hydra_brains.targets == 1) {
|
||||||
if (index(hydra_targets[0]->target, ':') == NULL)
|
if (index(hydra_targets[0]->target, ':') == NULL)
|
||||||
|
@ -4014,8 +4019,11 @@ int32_t main(int32_t argc, char *argv[]) {
|
||||||
fprintf(stderr, "[ERROR] illegal target result value (%d=>%d)\n", i, hydra_targets[i]->done);
|
fprintf(stderr, "[ERROR] illegal target result value (%d=>%d)\n", i, hydra_targets[i]->done);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%d of %d target%s%scompleted, %lu valid password%s found\n", hydra_brains.targets - j - k - error, hydra_brains.targets, hydra_brains.targets == 1 ? " " : "s ",
|
printf("%d of %d target%s%scompleted, %lu valid password",
|
||||||
hydra_brains.found > 0 ? "successfully " : "", hydra_brains.found, hydra_brains.found == 1 ? "" : "s");
|
hydra_brains.targets - j - k - error, hydra_brains.targets, hydra_brains.targets == 1 ? " " : "s ",
|
||||||
|
hydra_brains.found > 0 ? "successfully " : "", hydra_brains.found);
|
||||||
|
printf("%s", hydra_brains.found == 1 ? "" : "s");
|
||||||
|
printf(" found\n");
|
||||||
|
|
||||||
error += j;
|
error += j;
|
||||||
k = 0;
|
k = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue