john-the-ripper-mcp
Enables AI assistants to perform password security auditing using John the Ripper on a remote Kali system via SSH, supporting cracking, hash management, and session control.
README
John the Ripper MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with access to John the Ripper, the legendary password security auditing and recovery tool. This server executes commands on a remote Kali Linux system via SSH, enabling secure password analysis workflows.
Features
- Password Cracking - Multiple attack modes: wordlist, incremental, single crack, and rules-based
- Hash Management - Show cracked passwords, manage pot files, identify hash types
- Session Control - Create, monitor, restore, and terminate cracking sessions
- Hash Extraction - Extract hashes from encrypted files (ZIP, PDF, SSH keys, Office docs, etc.)
- Benchmarking - Test cracking performance for different hash formats
- Rules Engine - List and test password mangling rules
Installation
# Clone the repository
git clone https://github.com/schwarztim/sec-john-the-ripper-mcp.git
cd sec-john-the-ripper-mcp
# Install dependencies
npm install
# Build
npm run build
Configuration
The server connects to a remote Kali Linux system via SSH. Configure via environment variables:
| Variable | Description | Default |
|---|---|---|
JOHN_SSH_HOST |
SSH hostname or IP of Kali system | kali |
JOHN_SSH_USER |
SSH username (optional) | (none) |
JOHN_PATH |
Path to john binary on remote system | john |
JOHN_WORK_DIR |
Remote working directory for temp files | /tmp/john-mcp |
Prerequisites
- SSH Access - Passwordless SSH key authentication to your Kali system
- John the Ripper - Installed on the remote Kali system (
apt install john) - Node.js - Version 18+ recommended
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"john-the-ripper": {
"command": "node",
"args": ["/path/to/sec-john-the-ripper-mcp/dist/index.js"],
"env": {
"JOHN_SSH_HOST": "your-kali-host",
"JOHN_SSH_USER": "kali"
}
}
}
}
Available Tools
Cracking Operations
| Tool | Description |
|---|---|
john_crack |
Start password cracking with configurable modes and options |
john_show |
Display cracked passwords from hash files |
john_status |
Check the status of running sessions |
john_restore |
Resume an interrupted cracking session |
john_sessions |
List all active and saved sessions |
john_kill |
Terminate running John processes |
Hash Analysis
| Tool | Description |
|---|---|
john_identify |
Identify hash type(s) for given values |
john_formats |
List supported hash formats with optional filtering |
john_hash_extract |
Extract hashes from encrypted files using *2john utilities |
Configuration & Testing
| Tool | Description |
|---|---|
john_rules |
List available rules or test rules against sample words |
john_benchmark |
Run performance benchmarks for hash formats |
john_pot |
Manage the john.pot file (show, clear, export, search) |
Usage Examples
Crack MD5 Hashes with Wordlist
Use john_crack with:
- hash_content: "5f4dcc3b5aa765d61d8327deb882cf99"
- format: "raw-md5"
- wordlist: "/usr/share/wordlists/rockyou.txt"
Identify Unknown Hash
Use john_identify with:
- hash: "$2a$10$N9qo8uLOickgx2ZMRZoMy..."
Extract Hash from ZIP File
Use john_hash_extract with:
- type: "zip"
- file_path: "/path/to/encrypted.zip"
Check Cracking Progress
Use john_status with:
- session: "my-crack-session"
Supported Hash Extraction Types
zip- ZIP archivesrar- RAR archivespdf- PDF documentsssh- SSH private keysgpg- GPG/PGP keysoffice- Microsoft Office documentskeepass- KeePass databases7z- 7-Zip archivesbitlocker- BitLocker volumesluks- LUKS encrypted volumestruecrypt/veracrypt- TrueCrypt/VeraCrypt volumesethereum/bitcoin- Cryptocurrency wallets
Security Considerations
This tool is intended for authorized security testing only. Ensure you have proper authorization before:
- Testing password strength on systems you own or administer
- Conducting penetration tests with written permission
- Recovering passwords for files you have legitimate access to
Unauthorized password cracking is illegal. Always follow your organization's security policies and applicable laws.
License
MIT License - See LICENSE for details.
Contributing
Contributions welcome! Please open an issue or submit a pull request.
Credits
- John the Ripper by Openwall
- Built with the Model Context Protocol SDK
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.