From a40bfb1e54fce6d1a9f5b0fb4ae4e1366d0d6fc2 Mon Sep 17 00:00:00 2001 From: Karim Kanso Date: Thu, 14 May 2020 10:58:14 +0100 Subject: [PATCH] add 404 to http-proxy as a success condition --- hydra-http-proxy.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hydra-http-proxy.c b/hydra-http-proxy.c index 17bf02a..14bfaf5 100644 --- a/hydra-http-proxy.c +++ b/hydra-http-proxy.c @@ -250,7 +250,11 @@ int32_t start_http_proxy(int32_t s, char *ip, int32_t port, unsigned char option } ptr = ((char *)index(http_proxy_buf, ' ')) + 1; - if (*ptr == '2' || (*ptr == '3' && *(ptr + 2) == '1') || (*ptr == '3' && *(ptr + 2) == '2')) { + if (*ptr == '2' || + (*ptr == '3' && *(ptr + 2) == '1') || + (*ptr == '3' && *(ptr + 2) == '2') || + (*ptr == '4' && *(ptr + 2) == '4') + ) { hydra_report_found_host(port, ip, "http-proxy", fp); hydra_completed_pair_found(); free(http_proxy_buf);