The Wayback Machine - https://web.archive.org/web/20201204164650/https://github.com/vanhauser-thc/thc-hydra/issues/475
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown GET Requests #475

Open
sgstudent2019 opened this issue Nov 28, 2019 · 2 comments
Open

Unknown GET Requests #475

sgstudent2019 opened this issue Nov 28, 2019 · 2 comments

Comments

@sgstudent2019
Copy link

@sgstudent2019 sgstudent2019 commented Nov 28, 2019

Hello there,

I was running the following command when attempting to brute-force through a WordPress login page: hydra -L usernames.txt -P passwords.txt [IP-Address] http-form-post '/wp-login.php:log=^USER^&pwd=^PASS^:S=Dashboard'.

Before this, I had set an environment variable HYDRA_PROXY_HTTP (HYDRA_PROXY_HTTP="http://127.0.0.1:8080/"), linking it with my Burp Suite tool.

From Burp Suite proxy, I noticed that many GET requests were being made to /wp-login.php, simultaneously while POST requests with credentials were being sent to the same page. It appeared that for every POST request that was being made, one GET request would be made too.

I had assumed all along that when hydra is running, only POST requests were sent as part of the brute-forcing process. Hence, I would like to ask if there is something that I am doing wrong, or not understanding from the phenomenon (if it is intentionally designed in such a manner, why the need for the 1:1 GET request for every POST request made?).

Also, I noticed that someone else was also experiencing the same issue here. I was unable to find any (plausible) reason for the unwanted GET requests.

The hydra version that I am using is v8.9.1. This is the OS that I am running hydra on: Linux kali 4.19.0-kali4-amd64 #1 SMP Debian 4.19.28-2kali1 (2019-03-18) x86_64 GNU/Linux.

Thank you for your time and I apologise in advance if it is something silly - this is my first time chaining a proxy with hydra (to observe the requests made by hydra).

@vanhauser-thc
Copy link
Owner

@vanhauser-thc vanhauser-thc commented Nov 30, 2019

The GET request is used to get a current authentication ccokie for the next login attempt.
this this answer it?

@alexvelickiy
Copy link

@alexvelickiy alexvelickiy commented Sep 1, 2020

Is there a way to prevent this behavior? As it is unnecessary in some cases and therefore half of the requests sent to server are redundant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.