From 7b053d71649b0abd358eb599b3b4b27f6d7ab7d6 Mon Sep 17 00:00:00 2001 From: GitAntoinee Date: Wed, 1 Apr 2020 15:52:47 +0200 Subject: [PATCH] Add optional option to skip pre-request --- hydra-http-form.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hydra-http-form.c b/hydra-http-form.c index 324fe6a..efe81ff 100644 --- a/hydra-http-form.c +++ b/hydra-http-form.c @@ -434,6 +434,16 @@ int32_t parse_options(char *miscptr, ptr_header_node *ptr_head) { sprintf(cookieurl, "%.1000s", hydra_strrep(miscptr + 2, "\\:", ":")); miscptr = ptr; break; + case 'g': // fall through + case 'G': + ptr = miscptr + 2; + while (*ptr != 0 && (*ptr != ':' || *(ptr - 1) == '\\')) + ptr++; + if (*ptr != 0) + *ptr++ = 0; + getcookie = 0; + miscptr = ptr; + break; case 'h': // add a new header at the end ptr = miscptr + 2;