How to specify HTTP method?

085

To specify the HTTP method in Hydra, you include it in the command when defining the form submission. Here’s how you can do it for different methods:

  1. HTTP POST Method:

    • For a POST request, you use the http-post-form option. Here’s an example:
    hydra -L usernames.txt -P passwords.txt target.com http-post-form "/login:username=^USER^&password=^PASS^:Invalid login"
  2. HTTP GET Method:

    • For a GET request, you would use the http-get option. Here’s an example:
    hydra -L usernames.txt -P passwords.txt target.com http-get "/login?username=^USER^&password=^PASS^:Invalid login"
  3. Other HTTP Methods:

    • If you need to use other HTTP methods (like PUT or DELETE), you would typically need to use the appropriate option that corresponds to that method, but Hydra primarily focuses on GET and POST for login forms.

In summary, you specify the HTTP method by using the appropriate option (http-post-form for POST and http-get for GET) followed by the URL and the parameters for the request.

0 Comments

no data
Be the first to share your comment!