diff --git a/hydra-http-form.c b/hydra-http-form.c index 8d7ce36..89eeb7c 100644 --- a/hydra-http-form.c +++ b/hydra-http-form.c @@ -468,7 +468,8 @@ return -1 if no response from server */ int analyze_server_response(int s) { int runs = 0; - + redirected_flag = 0; + auth_flag = 0; while ((buf = hydra_receive_line(s)) != NULL) { runs++; //check for http redirection @@ -848,6 +849,10 @@ int start_http_form(int s, char *ip, int port, unsigned char options, char *misc str3[0] = '/'; } + if(strrchr(url, ':') == NULL && port != 80) { + sprintf(str2, "%s:%d", str2, port); + } + if (verbose) hydra_report(stderr, "[VERBOSE] Page redirected to http://%s%s\n", str2, str3);