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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。