# Hydra

> hydra - a very fast network logon cracker which support many different services\
> [GitHub - vanhauser-thc/thc-hydra](https://github.com/vanhauser-thc/thc-hydra)

## Options

| Option                  | Description                                             |
| ----------------------- | ------------------------------------------------------- |
| `-l` LOGIN or `-L` FILE | Login with LOGIN name, or load several logins from FILE |
| `-p` PASS or `-P` FILE  | Try password PASS, or load several passwords from FILE  |
| `-s`                    | Specify non-default port here                           |
| `-f`                    | Exit after the first found login/password pair          |
| `-V` `-vV`              | Verbose: Show usernames and passwords being tried       |
| `-d`                    | Debug output                                            |

## Examples

SNMP

```bash
hydra -P <password-file> <ip> snmp
```

SSH

```bash
hydra -l <user> -P <password-file> <ip> ssh
```

HTTP Form

```bash
hydra -l <user> -P <password-file> <ip> http-post-form '/path/to/login.php:username=^USER^&password=^PASS^:Invalid' -t 64
```

.htaccess (using colon separated "login:pass" wordlist)

```bash
hydra -C <wordlist> http-get://<ip>:<port>/path/to/whatever
```


---

# 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://d4rk1337.gitbook.io/the-pentesters-cheat-sheet/exploitation/passwords/03-hydra.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.
