From 15525cdaece31fc421ce929f1c963c4a007d3e4c Mon Sep 17 00:00:00 2001 From: owein Date: Tue, 19 Nov 2019 16:49:54 +0100 Subject: [PATCH] rolled back the http-form parameters parsing. help for bfg's rain is in bfg's help now --- hydra-http-form.c | 7 ++++++- hydra.c | 5 ++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hydra-http-form.c b/hydra-http-form.c index 7662f04..b2ace32 100644 --- a/hydra-http-form.c +++ b/hydra-http-form.c @@ -1272,13 +1272,18 @@ ptr_header_node initialize(char *ip, unsigned char options, char *miscptr) { sprintf(bufferurl, "%.6096s", miscptr); url = bufferurl; ptr = url; - while (*ptr != 0 && (*ptr != ':' || *(ptr - 1) == '\\')) ptr++; if (*ptr != 0) *ptr++ = 0; variables = ptr; + while (*ptr != 0 && (*ptr != ':' || *(ptr - 1) == '\\')) + ptr++; + if (*ptr != 0) + *ptr++ = 0; + + cond = ptr; while (*ptr != 0 && (*ptr != ':' || *(ptr - 1) == '\\')) ptr++; if (*ptr != 0) diff --git a/hydra.c b/hydra.c index fa2ccfc..47e21c0 100644 --- a/hydra.c +++ b/hydra.c @@ -504,7 +504,6 @@ void help(int32_t ext) { #ifdef HAVE_MATH_H " -x MIN:MAX:CHARSET password bruteforce generation, type \"-x -h\" to get help\n" " -y disable use of symbols in bruteforce, see above\n" - " -r rainy mode for password generation (-x)\n" #endif " -e nsr try \"n\" null password, \"s\" login as pass " "and/or \"r\" reversed login\n" @@ -590,8 +589,8 @@ void help_bfg() { " 'A' for uppercase letters, '1' for numbers, and for all " "others,\n" " just add their real representation.\n" - " -y disable the use of the above letters as placeholders\n\n" - " -r use 'rain' to explode the linearity of the generation. + " -y disable the use of the above letters as placeholders\n" + " -r use a formula to explode the linearity of the generation, without loss.\n\n" "Examples:\n" " -x 3:5:a generate passwords from length 3 to 5 with all " "lowercase letters\n"