Skip to main content
Glama

Run Hydra

run_hydra

Brute-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 a username or user_file.

  • HTTP Form Attacks: Set service to "http-post-form". Use path, user_field, pass_field, and fail_string to 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=True to resume a previously aborted session from the hydra.restore file.

  • Optimization: Use threads to control parallelism and exit_found to 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

NameRequiredDescriptionDefault
pathNoResource path for web-based attacks (e.g., /login.php).
targetNoIP address or hostname of the target.
restoreNoRestore a previously saved session.
serviceNoProtocol to attack (ssh, ftp, http-get, http-post-form, mysql, rdp, smb, etc.).
threadsNoNumber of parallel tasks (default 4).
use_sslNoEnable SSL for the connection (-S).
passlistNoPath to a wordlist (defaults to Metasploit unix_passwords)./usr/share/wordlists/metasploit/unix_passwords.txt
usernameNoA single username to test.
cred_fileNoPath to a file with 'login:pass' pairs (replaces user/pass args).
pass_fileNoPath to a file containing a list of passwords.
user_fileNoPath to a file containing a list of usernames.
exit_foundNoExit after the first valid login/password pair is found (-f).
pass_fieldNoThe form field name for the password in HTTP POST.pass
user_fieldNoThe form field name for the username in HTTP POST.user
fail_stringNoThe string returned by the server on a failed login.Login failed
output_fileNoSave found passwords to this file.
brute_force_genNoBrute-force character generation (MIN:MAX:CHARSET).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full load; it does disclose an important behavioral trait, the security warning about brute-forcing/exploitation and the need for authorization, plus side effects such as restore reading hydra.restore and output_file saving discovered credentials. It does not say whether execution is synchronous or long-running, whether it can be interrupted, or how results are returned, which matters for a 17-parameter tool with no safety annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is front-loaded with a product summary, then a bulleted usage guide grouped by mode, then warnings, which makes it easy to scan. The tags line adds little beyond what the description and sibling list already imply, but overall there is negligible waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter tool with zero required fields, the description supplies the missing requisite knowledge: which parameters must be combined for a basic attack versus an HTTP form attack, and how password generation substitutes for a wordlist. An output schema exists, so return values need no explanation, and the only real gap is the absence of execution/runtime behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline would be 3, but the description goes further by explaining how parameters combine: fail_string is the server's failure condition, the four web fields define form structure, brute_force_gen takes a MIN:MAX:CHARSET format, and exit_found stops after the first valid pair. That is cross-parameter semantics the per-field schema descriptions do not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete verb and resource: Hydra is 'a parallelized login cracker which supports numerous protocols to attack', and the usage guide names specific services (ssh, ftp, http-post-form). An agent can identify this as an online credential brute-forcer, though it never explicitly contrasts itself with mydn4hydra, hashcat, or john, which appear in the sibling list and handle adjacent work.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is spelled out by mode: basic attack requires target/service plus username or user_file, HTTP form attacks require path, user_field, pass_field, fail_string, and brute_force_gen is offered as an alternative to a wordlist. What's missing is explicit when-not-to-use guidance and any routing to alternative sibling tools for offline cracking.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.