Skip to main content
Glama

Hashcat MCP Server

AI 기반 비밀번호 해시 감사 어시스턴트로, 로컬 LLMHashcat**Model 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

배치 파일 크랙

한 줄에 하나의 해시가 있는 파일을 만들거나 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