Skip to main content
Glama

Start Hashcat Session

start_hashcat_session

Starts or restores a persistent hashcat password-cracking session in the background, returning a PID for monitoring and stop control. Use it for long-running cracking tasks that must survive interruptions.

Instructions

Starts or restores a persistent, long-running hashcat cracking session in the background. Tags: security, pentest, password-cracking, persistent

Usage Guide:

  • To start a new session: Provide a unique session_name, hash_mode, and the attack parameters.

  • To restore a session: Set restore=True and provide the session_name.

  • This launches the process in the background. Use the returned PID to monitor or stop it.

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": {
      "session_name": "<session_name>",
      "hash_mode": "<hash_mode>",
      "hash_file": "<hash_file>"
    },
    "name": "start_hashcat_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
maskNoMask pattern (for modes 3, 6).
restoreNoIf True, attempts to resume an interrupted session with the given name.
wordlistNoPath to wordlist (for modes 0, 1, 6).
hash_fileYesPath to target hashes.
hash_modeYesHash type ID.
attack_modeNoAttack type (0, 1, 3, 6).
session_nameYesUnique identifier for the session (prevents data loss if interrupted).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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. It usefully discloses background execution, persistence, PID return, and that a named session prevents data loss on interruption, but it omits permissions/resource requirements, behavior when session_name already exists, and how errors surface.

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?

Front-loaded purpose sentence followed by a tight, scannable usage list with no redundancy. The tags line is marginally useful for discovery but adds little for an agent that has already selected the tool.

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 7-parameter background process launcher with an output schema covering returns, the description covers the essential start-vs-restore paths and the backgrounding behavior. The main remaining gap is its relationship to the run_hashcat and stop_hashcat_session siblings.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter is already documented, including the restore and wordlist/mask mode hints. The description's mention of restore=True with session_name restates schema content rather than adding new meaning, so the baseline of 3 applies.

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?

States a specific verb and resource ('Starts or restores a persistent... hashcat cracking session') plus the key differentiator of background persistence. It does not explicitly contrast with the sibling run_hashcat, so an agent must infer that this is the long-lived variant rather than a one-shot run.

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 two concrete modes: start a new session with session_name/hash_mode/attack parameters, or restore with restore=True and a session_name. It also points to the returned PID for monitoring/stopping, though it never names stop_hashcat_session or explains when to prefer this over run_hashcat.

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