Skip to main content
Glama

Hashcat MCP Server

AIを活用したパスワードハッシュ監査アシスタントで、ローカルLLMHashcatModel Context Protocol (MCP) を通じて組み合わせます。

正規のセキュリティ監査のために構築されています — LLMはハッシュタイプを自律的に識別し、攻撃戦略を選択し、複数のアプローチでエスカレーションし、結果を平易な英語で報告します。すべての処理はローカルで行われます — データがマシンの外部に出ることはありません。


アーキテクチャ

User (natural language)
        ↓
Local LLM — qwen2.5 via Ollama
  (decides which tools to call and with what arguments)
        ↓
MCP Client — bridges LLM decisions to real tool execution
        ↓
MCP Server — exposes Hashcat as structured tools
        ↓
Hashcat — performs actual password recovery
        ↓
Results logged to results/session_log.json

Related MCP server: PentestMCP

ツール

ツール

説明

identify_hash

フォーマット/長さからハッシュアルゴリズムを識別します(MD5、NTLM、SHA-1、bcryptなど)

list_wordlists

システム上で利用可能なワードリストとルールファイルを一覧表示します

run_hashcat

設定可能な攻撃モードとワードリストを使用して単一のハッシュをクラックします

crack_batch

ファイルから複数のハッシュを自動エスカレーション付きでクラックします

攻撃エスカレーション(自動)

LLMはすべてのハッシュに対して自動的に次のシーケンスを実行します:

  1. 辞書攻撃 — 10k-common ワードリスト

  2. ルールベース攻撃 — 100k-ncsc + best66.rule

  3. ハイブリッド攻撃 — 100k-ncsc + 4桁マスク(?d?d?d?d

  4. より大きなワードリスト — 000webhost


技術スタック

コンポーネント

バージョン

目的

Hashcat

v7.1.2

パスワード復元エンジン

Ollama

latest

ローカルLLMランタイム

qwen2.5

7B

ツール呼び出し対応LLM

FastMCP (Python)

latest

MCPサーバーフレームワーク

WSL2 Ubuntu

24.x

Windows上のLinux環境


セットアップ

前提条件

  • WSL2 + Ubuntuを備えたWindows

  • Ollamaがインストールされていること(curl -fsSL https://ollama.com/install.sh | sh

  • Hashcatがインストールされていること(sudo apt install hashcat

  • SecListsがクローンされていること(git clone --depth 1 https://github.com/danielmiessler/SecLists.git ~/SecLists

インストール

git clone https://github.com/YOUR_USERNAME/hashcat-mcp.git
cd hashcat-mcp
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

LLMをプルする

ollama pull qwen2.5:latest

使用方法

アシスタントを起動する

cd hashcat-mcp
source venv/bin/activate
python3 mcp_client.py

単一のハッシュをクラックする

You: crack this hash: 482c811da5d5b4bc6d497ffa98491e38
Assistant: [calls identify_hash → MD5 identified]
           [calls run_hashcat → password123 found]
           The password is: password123

バッチファイルをクラックする

1行に1つのハッシュ、またはusername:hash形式のファイルを作成します:

admin:e90664c0af74160644d29e4d6147969b
user1:5f4dcc3b5aa765d61d8327deb882cf99
482c811da5d5b4bc6d497ffa98491e38

次に、次のように依頼します:

You: crack all hashes in /home/user/hashes.txt — they are MD5

出力:

==================================================
BATCH CRACK SUMMARY
==================================================
Total hashes:   3
Cracked:        3 (100.0%)
Not cracked:    0
==================================================
RESULTS:
  ✓ admin      → Summer2024
  ✓ user1      → password
  ✓ (hash)     → password123
==================================================
Full results saved to: results/session_log.json

セッションログ

すべてのクラック試行は自動的にresults/session_log.jsonに記録されます:

{
  "timestamp": "2026-08-19T19:33:27.932857",
  "username": "admin",
  "hash": "e90664c0af74160644d29e4d6147969b",
  "hash_mode": 0,
  "cracked": true,
  "password": "Summer2024",
  "attack_used": "mode 6 wordlist=100k-ncsc mask=?d?d?d?d"
}

対応ハッシュタイプ

アルゴリズム

Hashcatモード

形式例

MD5

-m 0

482c811da5d5b4bc6d497ffa98491e38

NTLM

-m 1000

cc36cf7aa9dc7f2d2c2c43f877c32b0c

SHA-1

-m 100

cbfdac6008f9cab4083784cbd1874f76618d2a97

SHA-256

-m 1400

ef92b779... (64文字)

bcrypt

-m 3200

$2a$10$...

sha512crypt

-m 1800

$6$...


セキュリティと倫理

このツールは、正規のパスワードセキュリティ監査専用に設計されています:

  • 実際の攻撃手法に対して組織のパスワード強度をテストする

  • 攻撃者より先に弱いパスワードを特定する

  • セキュリティポリシー施行のための証拠を生成する

明示的な監査の許可を得ていないハッシュには、このツールを決して使用しないでください。


プロジェクト構成

hashcat-mcp/
├── mcp_server.py        # MCP server — exposes Hashcat as tools
├── mcp_client.py        # MCP client — connects LLM to server
├── prompts/
│   └── system_prompt.txt  # LLM behavior instructions
├── hashes/              # Hash files for testing
├── results/
│   └── session_log.json   # Automatic audit log
└── requirements.txt
F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to perform authorized security testing and penetration testing operations including SSL/TLS analysis, port scanning, vulnerability scanning, and HTTP security header audits through natural language interactions.
    1
    MIT
  • A
    license
    C
    quality
    D
    maintenance
    Enables LLMs to perform Active Directory penetration testing using tools like NetExec, Bloodhound, Nmap, Certipy, and John the Ripper. Automates vulnerability discovery, attack path analysis, and documentation generation for security assessments.
    26
    6
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to perform penetration testing and security assessments by exposing 60+ Kali Linux security tools including network scanning, web security testing, password cracking, exploitation frameworks, and OSINT capabilities through an AI-friendly interface.
    2
    MIT
  • A
    license
    A
    quality
    F
    maintenance
    Enables AI assistants to perform authorized WiFi security assessments, including network scanning, handshake capture, and password cracking, by executing aircrack-ng commands on a remote Kali Linux system via SSH.
    16
    MIT

View all related MCP servers

Related MCP Connectors

  • Offline methodology engine for authorized penetration testing, CTF, and security research.

  • CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.

  • CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chess960king/hashcat-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server