Run Hydra
run_hydraBrute-force logins across network services and HTTP forms using configurable targets, protocols, username/password sources, and threads; stop on first valid pair.
Instructions
Hydra is a parallelized login cracker which supports numerous protocols to attack. Tags: network, security, pentest, brute-force, authentication, exploitation, cracker
Usage Guide:
Basic Attack: Provide a
target,service(e.g., ssh, ftp), and either ausernameoruser_file.HTTP Form Attacks: Set
serviceto "http-post-form". Usepath,user_field,pass_field, andfail_stringto define the form structure and failure condition.Password Generation: Use
brute_force_gen(format MIN:MAX:CHARSET, e.g., "3:5:a1") to generate passwords instead of a wordlist.Session Management: Set
restore=Trueto resume a previously aborted session from the hydra.restore file.Optimization: Use
threadsto control parallelism andexit_foundto stop after the first valid credential pair is discovered.
Warnings:
This tool is used for brute-forcing/exploitation. Ensure you have explicit authorization before use.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_hydra"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Resource path for web-based attacks (e.g., /login.php). | |
| target | No | IP address or hostname of the target. | |
| restore | No | Restore a previously saved session. | |
| service | No | Protocol to attack (ssh, ftp, http-get, http-post-form, mysql, rdp, smb, etc.). | |
| threads | No | Number of parallel tasks (default 4). | |
| use_ssl | No | Enable SSL for the connection (-S). | |
| passlist | No | Path to a wordlist (defaults to Metasploit unix_passwords). | /usr/share/wordlists/metasploit/unix_passwords.txt |
| username | No | A single username to test. | |
| cred_file | No | Path to a file with 'login:pass' pairs (replaces user/pass args). | |
| pass_file | No | Path to a file containing a list of passwords. | |
| user_file | No | Path to a file containing a list of usernames. | |
| exit_found | No | Exit after the first valid login/password pair is found (-f). | |
| pass_field | No | The form field name for the password in HTTP POST. | pass |
| user_field | No | The form field name for the username in HTTP POST. | user |
| fail_string | No | The string returned by the server on a failed login. | Login failed |
| output_file | No | Save found passwords to this file. | |
| brute_force_gen | No | Brute-force character generation (MIN:MAX:CHARSET). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |