get_john_formats
Check available John the Ripper hash formats to identify compatible cracking methods before starting password recovery processes.
Instructions
check available john format before cracking a hash
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": "get_john_formats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/pentestmcp/server.py:255-257 (handler)The handler function for the 'get_john_formats' tool. It executes the command 'john --list=formats' using the run_command helper to list available hash formats supported by John the Ripper.
async def get_john_formats(): return run_command(["john","--list=formats"]) - src/pentestmcp/server.py:254-254 (registration)Registration of the 'get_john_formats' tool using the MCP decorator, specifying its name and description.
@mcp.tool(name="get_john_formats",description="check available john format before cracking a hash")