Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
credential-attacks-toolkit — Complete credential attack suite for authorized security testing — SSH, FTP, Web Login, Bruteforce, Dictionary attacks | Kitploit
Tools/GitHubGitHub/amibhai/credential-attacks-toolkit
ReconnaissancePassword AttacksPenetration TestingRed Teaming
GitHubamibhai/credential-attacks-toolkit

credential-attacks-toolkit

Complete credential attack suite for authorized security testing — SSH, FTP, Web Login, Bruteforce, Dictionary attacks

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
1372 months agoNot yet reviewed

CredAttack — Credential Attacks Toolkit

Release Python Protocols Tests License

⚠️ LEGAL NOTICE — Authorised security testing ONLY.
Using this tool against systems you do not own or have explicit written permission to test is illegal under the Computer Fraud and Abuse Act (US), Computer Misuse Act (UK), and equivalent laws worldwide. See SECURITY.md.


Table of Contents

  • What is CredAttack?
  • Attack Modes
  • Supported Protocols
  • Architecture
  • Quick Start
  • Installation
  • CLI Reference
  • Password Mutation Engine
  • Default Credentials Database
  • Proxy Rotation
  • HTML Reports
  • Configuration & Environment Variables
  • Docker
  • Testing
  • Project Structure
  • Contributing

What is CredAttack?

CredAttack is a modular, production-grade credential testing suite for authorised penetration testing engagements. It covers the full credential-attack lifecycle:

PhaseCredAttack Capability
ReconnaissanceDefault creds DB (200+ pairs), smart username-derived pattern generation
Attack17 protocol attackers, 6 attack modes, multi-target campaigns
EvasionLockout detection, configurable rate limiting, jitter, proxy rotation
ReportingJSONL audit log, Jinja2 HTML report, found-creds banner + file dump

Attack Modes

ModeCommandDescription
Dictionaryssh, ftp, smb, …Wordlist against one user
SpraysprayOne password across a user list (lockout-safe)
CombocomboEvery user × every password
SmartsmartUsername/company-derived pattern generation
DefaultsdefaultsTry 200+ known service defaults
Multi-targetmultiSame attack across a list of hosts
Full pipelinefullAll protocols, one report

Supported Protocols

#ProtocolModuleDefault PortNotes
1SSHssh.py22paramiko, key/password auth
2FTPftp.py21Active & passive mode
3HTTP Formhttp_form.py80/443Auto CSRF token detection
4HTTP Basichttp_basic.py80RFC 7617
5HTTP Digesthttp_digest.py80RFC 7616
6SMBsmb.py445impacket, NTLM
7RDPrdp.py3389impacket NLA
8SMTPsmtp.py587STARTTLS
9POP3pop3.py110APOP support
10IMAPimap.py143STARTTLS
11MySQLmysql.py3306mysql-connector-python
12MSSQLmssql.py1433pymssql
13Redisredis_proto.py6379AUTH command
14MongoDBmongodb.py27017pymongo
15WinRMwinrm.py5985NTLM, pywinrm
16LDAPldap_proto.py389ldap3, rootDSE auto-detect
17Telnettelnet.py23raw TCP
18VNCvnc.py5900Raw DES challenge-response

Architecture

credattack.py          ← thin shim: `python credattack.py ...` from a checkout
│
├── credattack/cli.py   ← CLI (Typer) — 8 attack-mode subcommands; also the
│                          `credattack` console script when pip-installed
├── credattack/core/
│   ├── config.py      ← Pydantic v2 Settings, CREDATTACK_* env-var overrides
│   ├── engine.py      ← AttackEngine (ThreadPoolExecutor + Rich progress UI)
│   ├── lockout.py     ← LockoutDetector (sliding-window, thread-safe)
│   ├── proxy.py       ← ProxyRotator (round-robin, health-check, demotion)
│   ├── mutator.py     ← PasswordMutator (leet, seasonal, suffix, keyboard-walk…)
│   ├── result.py      ← AttemptResult + SessionReport dataclasses
│   ├── report.py      ← Jinja2 HTML report generator
│   └── logger.py      ← Rich logging + JSONL audit writer
│
├── credattack/protocols/
│   └── *.py           ← 18 ProtocolAttacker implementations
│
├── credattack/data/
│   ├── default_creds.json    ← 200+ real default credential pairs
│   ├── smart_patterns.json   ← 140+ enterprise password templates
│   └── wordlists/            ← Per-service default password lists
│
└── tests/             ← 50+ pytest tests (unit + protocol mocks)

Quick Start

# Clone and set up
git clone https://github.com/amibhai/credential-attacks-toolkit.git
cd credential-attacks-toolkit
python -m venv .venv && source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -r requirements.txt

# Check version
python credattack.py --version

# Dry-run (no connections made — verify your word lists)
python credattack.py ssh -t 192.168.1.100 -u admin -P wordlists/common_passwords.txt --dry-run

# Real SSH dictionary attack
python credattack.py ssh -t 192.168.1.100 -u admin -P /path/to/rockyou.txt

# Password spray (rate-limited, lockout-safe)
python credattack.py spray -t 192.168.1.100 --protocol ssh -U users.txt -p "Summer2024!" --delay 30

# Smart mode — generate patterns from username + company
python credattack.py smart -t 192.168.1.100 --protocol ssh -u john.doe --company ACME

# Try service defaults
python credattack.py defaults -t 192.168.1.100 --protocol mysql

# Multi-target campaign
python credattack.py multi --targets hosts.txt --protocol ssh -U users.txt -P passes.txt

Installation

Option A — pip + virtualenv (recommended)

python -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\activate
pip install --upgrade pip
pip install -r requirements.txt

Option B — Makefile shortcuts

make install      # core deps
make install-dev  # + pytest-cov, ruff, mypy

Option C — pip install (editable or from a wheel)

pip install -e .          # core deps only
pip install -e .[full]    # + SMB/RDP/MySQL/MSSQL/Redis/MongoDB/WinRM/LDAP
pip install -e .[dev]     # + pytest/ruff/mypy

credattack --version      # console script, equivalent to `python credattack.py`

Option D — Docker

docker build -t credattack -f docker/Dockerfile .
docker run --rm credattack --help

# Mount your wordlists and collect output
docker run --rm \
  -v $(pwd)/wordlists:/app/wordlists:ro \
  -v $(pwd)/output:/app/output \
  credattack ssh -t 192.168.1.100 -u admin -P wordlists/common_passwords.txt

CLI Reference

Global options

python credattack.py [OPTIONS] COMMAND [ARGS]...

Options:
  -V, --version    Show version and exit.
  --help           Show help.

Common flags (available on all protocol commands)

Download Tool