From 978bac7abc73a63bd44bcea3c83c94e896c4c237 Mon Sep 17 00:00:00 2001 From: yvain douard Date: Sat, 13 Mar 2021 04:00:52 -1000 Subject: [PATCH] rolled back head_init for http-post-form, still an issue with the display --- bfg.c | 1 + hydra-http-form.c | 14 ++------------ hydra.c | 4 ---- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/bfg.c b/bfg.c index 6c676f4..d0ef3ef 100644 --- a/bfg.c +++ b/bfg.c @@ -59,6 +59,7 @@ static int32_t add_single_char(char ch, char flags, int32_t *crs_len) { // note that we check for -x .:.:ab but not for -x .:.:ba // int32_t bf_init(char *arg) { + bf_options.rain = 0; int32_t i = 0; int32_t crs_len = 0; char flags = 0; diff --git a/hydra-http-form.c b/hydra-http-form.c index e6074cf..5fa0fff 100644 --- a/hydra-http-form.c +++ b/hydra-http-form.c @@ -1283,17 +1283,8 @@ ptr_header_node initialize(char *ip, unsigned char options, char *miscptr) { ptr++; if (*ptr != 0) *ptr++ = 0; - cond = ptr; - - if ((ptr2 = index(ptr, ':')) != NULL) { - *ptr2++ = 0; - if (*ptr2) - optional1 = ptr2; - else - optional1 = NULL; - } else - optional1 = NULL; + optional1 = ptr; if (strstr(url, "\\:") != NULL) { if ((ptr = malloc(strlen(url))) != NULL) { strcpy(ptr, hydra_strrep(url, "\\:", ":")); @@ -1339,8 +1330,7 @@ ptr_header_node initialize(char *ip, unsigned char options, char *miscptr) { success_cond = 0; } - // printf("miscptr: %s, url=%s, variables=%s, ptr=%s, optional1: %s, cond: %s - // (%d)\n", miscptr, url, variables, ptr, optional1, cond, success_cond); + printf("miscptr: %s, url=%s, variables=%s, ptr=%s, optional1: %s, cond: %s (%d)\n", miscptr, url, variables, ptr, optional1, cond, success_cond); /* * Parse the user-supplied options. diff --git a/hydra.c b/hydra.c index 9c905da..78f77e8 100644 --- a/hydra.c +++ b/hydra.c @@ -3344,10 +3344,6 @@ int main(int argc, char *argv[]) { hydra_options.max_use = MAXTASKS; } // script kiddie patch - if (hydra_options.server != NULL && (hydra_strcasestr(hydra_options.server, ".outlook.com") != NULL || hydra_strcasestr(hydra_options.server, ".hotmail.com") != NULL || hydra_strcasestr(hydra_options.server, ".yahoo.") != NULL || hydra_strcasestr(hydra_options.server, ".gmx.") != NULL || hydra_strcasestr(hydra_options.server, ".web.de") != NULL || hydra_strcasestr(hydra_options.server, ".gmail.") != NULL || hydra_strcasestr(hydra_options.server, "googlemail.") != NULL)) { - fprintf(stderr, "[WARNING] Google Mail and others have bruteforce and " - "hydra detection and send false positives. You are not " - "doing anything illegal right?!\n"); fprintf(stderr, "[WARNING] !read the above!\n"); sleep(5); }