From 9c7c4a9e22e4121daa9c981c0779ed49d828d1a0 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Sat, 9 Jan 2016 01:20:10 +0100 Subject: [PATCH] HYDRA_PROXY_CONNECT warning (unused) --- CHANGES | 1 + hydra.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGES b/CHANGES index 092acc0..567201c 100644 --- a/CHANGES +++ b/CHANGES @@ -14,6 +14,7 @@ Release 8.2-pre * Fixed a bug where the cisco-enable module was not working with the password-only logon mode * Fixed an out of memory bug in http-form * Fixed imap PLAIN method +* Added warning if HYDRA_PROXY_CONNECT environment is detected, that is an outdated setting * ... your patch? diff --git a/hydra.c b/hydra.c index 8ec53c0..cfb00cf 100644 --- a/hydra.c +++ b/hydra.c @@ -2552,6 +2552,9 @@ int main(int argc, char *argv[]) { hydra_options.miscptr = argv[optind + 2]; } + if (getenv("HYDRA_PROXY_CONNECT")) + fprintf(stderr, "[WARNING] The environment variable HYDRA_PROXY_CONNECT is not used! Use HYDRA_PROXY instead!\n"); + if (strcmp(hydra_options.service, "http") == 0 || strcmp(hydra_options.service, "https") == 0) { fprintf(stderr, "[ERROR] There is no service \"%s\", most likely you mean one of the many web modules, e.g. http-get or http-form-post. Read it up!\n", hydra_options.service); exit(-1);