Skip to main content
Glama

Run Hashcat

run_hashcat

Crack password hashes using dictionary, combinator, mask, or hybrid attacks; identify hash types, benchmark hardware, and display cracked results.

Instructions

Hashcat is the world's fastest and most advanced password recovery utility. Tags: security, pentest, password-cracking, forensics, cryptography, gpu-acceleration

Usage Guide:

  • System Benchmark (action="benchmark"): Test hardware performance.

  • Identify Hash (action="identify"): Detect the algorithm of a hash string or file.

  • List Modes (action="list"): Show all supported hash types and their IDs.

  • Straight Attack (action="crack", attack_mode=0): Dictionary attack using a wordlist. Optionally provide a rule_file to mutate the wordlist.

  • Combinator Attack (action="crack", attack_mode=1): Combine words from two wordlists (wordlist and wordlist2).

  • Mask Attack (action="crack", attack_mode=3): Brute-force using a pattern (e.g., ?u?l?l?l?d?d). Use increment with increment_min/increment_max to try varying lengths.

  • Hybrid Attack (action="crack", attack_mode=6): Append a mask to words in a dictionary.

  • Show Results (action="show"): Display cracked passwords from the potfile for a target hash.

Warnings:

  • This tool is used for password cracking. Ensure you have explicit permission to perform this action.

  • High workload profiles (-w 3 or 4) may cause system lag or unresponsiveness.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "run_hashcat"
  }
}

Input Schema

NameRequiredDescriptionDefault
maskNoBrute-force pattern (e.g., ?a?a?a?a).
actionYesThe operation to perform (benchmark, identify, list, crack, show).
wordlistNoPath to the primary wordlist file./usr/share/wordlists/rockyou.txt
hash_fileNoPath to the file containing hashes to crack.
hash_modeNoHash type ID (e.g., 1000 for NTLM, 0 for MD5).
incrementNoEnable mask length incrementing.
rule_fileNoPath to a hashcat rule file (e.g., best64.rule).
wordlist2NoPath to the second wordlist for combinator attacks (mode 1).
attack_modeNoAttack type (0=Straight, 1=Combinator, 3=Mask, 6=Hybrid).
output_fileNoFile to save cracked results.
increment_maxNoEnding length for incrementing mask.
increment_minNoStarting length for incrementing mask.
workload_profileNoPerformance profile (1=low, 2=default, 3=high, 4=insane).
optimized_kernelsNoEnable faster but restricted GPU kernels.

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?

With no annotations, the description carries the full burden and does add real value: it warns that explicit permission is required and that workload_profile 3-4 can cause system lag. However, it never states whether crack is blocking or long-running, how results are surfaced versus the potfile, or what happens on timeout, which matters for a GPU workload that can run for hours.

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 structure is well front-loaded with a Usage Guide split by action and a short Warnings block, making it scannable. The opening marketing sentence and the 'Tags:' line add little operational value and could be trimmed.

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 14-parameter, five-action tool with an output schema, the description covers every action and the mode-specific parameter combinations, plus safety and performance warnings. The main omission is the execution model, i.e. whether run_hashcat blocks while start_hashcat_session/stop_hashcat_session manage long jobs.

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 the baseline is 3, but the description goes beyond the schema by explaining cross-parameter relationships: attack_mode values are tied to specific scenarios, increment is linked to increment_min/increment_max, and mask is shown with a concrete pattern example. It still leaves output_file and optimized_kernels trade-offs to the schema.

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 names a specific tool and enumerates its concrete operations (benchmark, identify, list, crack, show), so an agent knows exactly what capabilities are exposed. It does not differentiate from sibling alternatives such as run_john, which also performs password cracking, so it stops short of a 5.

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?

The Usage Guide gives explicit when-to-use routing per action and per attack_mode, including which parameters pair with which mode (wordlist2 for mode 1, mask plus increment for mode 3, rule_file for mode 0). It lacks any when-not-to-use guidance or mention of an alternative tool for the same job.

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