Commit f4565782 authored by Sophie Brun's avatar Sophie Brun

Add a patch to fix segfault on i386 (see issue 4297)

parent 44b0f296
hydra (8.6-1kali1) kali-dev; urgency=medium
* Add a patch to fix segfault on i386 (see issue 4297)
-- Sophie Brun <sophie@freexian.com> Thu, 19 Oct 2017 14:55:33 +0200
hydra (8.6-1) unstable; urgency=medium
* Team upload.
......
From ba4a23d2d470d7407a82a0029d5cde763bc099cd Mon Sep 17 00:00:00 2001
From: van Hauser <vh@thc.org>
Date: Fri, 1 Sep 2017 09:29:03 +0200
Subject: [PATCH] segfault fix
Bug-Kali: https://bugs.kali.org/view.php?id=4297
Bug: https://github.com/vanhauser-thc/thc-hydra/issues/247
---
CHANGES | 1 +
hydra.c | 32 ++++++++++++++++++++------------
2 files changed, 21 insertions(+), 12 deletions(-)
--- a/hydra.c
+++ b/hydra.c
@@ -3522,17 +3522,22 @@ int32_t main(int32_t argc, char *argv[])
options = 0;
if (hydra_options.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",
- hydra_brains.targets, hydra_brains.targets == 1 ? "" : "s", hydra_options.max_use, hydra_brains.todo, hydra_brains.todo == 1 ? "y" : "ies", math2,
- math2 == 1 ? "y" : "ies");
- else
- 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.targets, hydra_brains.targets == 1 ? "" : "s",
- hydra_options.max_use, hydra_options.max_use == 1 ? "" : "s",
- hydra_brains.todo, hydra_brains.todo == 1 ? "y" : "ies",
+
+ printf("[DATA] max %d task%s per %d server%s, overall %d task%s, %lu login tr",
+ hydra_options.tasks, hydra_options.tasks == 1 ? "" : "s",
+ hydra_brains.targets, hydra_brains.targets == 1 ? "" : "s",
+ hydra_options.max_use, hydra_options.max_use == 1 ? "" : "s",
+ hydra_brains.todo);
+ printf("%s", hydra_brains.todo == 1 ? "y" : "ies");
+ if (hydra_options.colonfile == NULL) {
+ printf(" (l:%lu/p:%lu), ~%lu tr",
(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 (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);
}
- 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 ",
- hydra_brains.found > 0 ? "successfully " : "", hydra_brains.found, hydra_brains.found == 1 ? "" : "s");
+ printf("%d of %d target%s%scompleted, %lu valid password",
+ 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;
k = 0;
......@@ -6,3 +6,4 @@
03_use_bin_path.diff
06_show_xhydra_build_output.diff
07_remove_troubled_files.diff
fix-segfault.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment