百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

SpicyAD

> 编程语言
开源

SpicyAD 是一款 C# Active Directory 渗透测试工具,专门用于授权的安全评估。它将多种 AD 攻击技术整合到一个单一的、

100 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

SpicyAD 是一款 C# Active Directory 渗透测试工具,专门用于授权的安全评估。它将多种 AD 攻击技术整合到一个单一的、

SpicyAD

…

Table of Contents

  • Description
  • Features
  • Installation
  • Execution
    • Interactive Mode
    • Command-Line Mode
    • Reflection (In-Memory)
  • Global Options
  • Connection Flags
  • Commands
    • Enumeration
      • bloodhound
      • domain-info
      • enum-dcs
      • enum-users
      • enum-computers
      • enum-shares
      • find-shares
      • domain-trusts
      • delegations
      • laps
      • enum-vulns
      • enum-certs
    • Attacks
      • kerberoast
      • asreproast
      • targeted-kerberoast
      • spray
      • dump
      • ptt
      • asktgt
      • esc1
      • esc4
      • shadow-creds
      • rbcd
      • add-user
      • delete-user
      • add-machine
      • add-to-group
      • change-password
  • Attack Workflows
  • References
  • Legal Disclaimer

Disclaimer: This tool was created using my knowledge of Kerberos and Active Directory, together with assistance from Claude-Code. We both may be wrong, so research, test, and modify as needed, it’s your responsibility :)

Description

SpicyAD is a C# Active Directory penetration testing tool designed for authorized security assessments. It combines multiple AD attack techniques into a single, easy-to-use tool with both interactive and command-line interfaces.

Secure by default: SpicyAD automatically detects and uses LDAPS (port 636) when available, falling back to LDAP (port 389) if not. This can be toggled manually via /ldaps flag or in the Settings menu.

Category Capabilities
Enumeration Domain info, DCs, users, computers, shares (SYSVOL/NETLOGON/all), trusts, delegations (Unconstrained/Constrained/RBCD), LAPS, certificate templates (ESC1-4, ESC8), BloodHound Ingestor
Kerberos Attacks Kerberoasting with RC4 downgrade via LSA (Rubeus /tgtdeleg style, on by default; /rc4only /aes-only /no-downgrade to control) + AS-REP Roasting, Password Spray, Pass-the-Ticket, Targeted Kerberoasting
ADCS Attacks ESC1 (arbitrary SAN), ESC4 (Template Hijacking), PKINIT + UnPAC-the-hash
Credentials Shadow Credentials, RBCD
AD Management Add/delete users, add machines, group management, password changes

Automatic Attack Chains:

Chain Flow
ESC4 full Modify template → ESC1 → PKINIT → Restore
ESC1 Request cert → PKINIT → Extract NT hash
Shadow Creds Add shadow cred → PKINIT → Extract NT hash
Targeted Kerberoast Set SPN → Kerberoast → Restore
Password Spray Enum users + badPwdCount → spray

Installation

Requirements

  • .NET Framework 4.8
  • Windows environment

Build

powershell
# Using dotnet CLI
dotnet build SpicyAD.csproj -c Release

# Using MSBuild
msbuild SpicyAD.csproj /p:Configuration=Release

Or just compile with VS

bin\Release\net48\SpicyAD.exe

Execution

SpicyAD supports three execution methods:

Method Use Case
Domain-Joined Running from a machine joined to the target domain
Non-Domain-Joined Running from a workgroup machine or different domain
Reflection In-memory execution without touching disk

Interactive Mode

powershell
# Domain-Joined
.\SpicyAD.exe

# Non-Domain-Joined
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd

# Reflection
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Run()

Command-Line Mode

powershell
.\SpicyAD.exe [command] [options]

Reflection (In-Memory)

Execute SpicyAD without writing to disk using .NET Reflection:

powershell
# Load assembly
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe")

# Execute command
[SpicyAD.Program]::Execute("command", "arg1", "arg2")

# Interactive menu
[SpicyAD.Program]::Run()

Global Options

Option Description
/verbose, -v Show detailed output
/log Save output to log file (current directory)
/log: Save output to specified path

Connection Flags

Required for non-domain-joined machines:

Flag Description Example
/domain: Target domain FQDN /domain:evilcorp.net
/dc-ip: Domain Controller IP /dc-ip:10.10.10.10
/user: Username for auth /user:elliot
/password: Password for auth /password:P@ssw0rd
/dns: DNS server (optional) /dns:10.10.10.10
/ldaps, /ssl Use LDAPS (SSL/TLS, port 636) /ldaps

Commands

Enumeration


bloodhound

BloodHound Ingestor - Collect AD data for BloodHound CE analysis. Generates JSON files compatible with BloodHound Community Edition.

Option Description
/collection: Collection method(s) - see table below
/outputdir: Output directory (default: current)
/zipfilename: Custom ZIP filename
/threads: Threads for session/local group enum (default: 10)
/stealth Skip session and local group enumeration
/pretty Pretty-print JSON (larger files)

Collection Methods:

Method Description
default Group, Session, Trusts, ACL, ObjectProps, Container, LocalAdmin
all All collection methods
dconly Group, ACL, Trusts, ObjectProps, Container (no computer enum)
session Network session enumeration (NetSessionEnum)
localgroup Local group membership (LocalAdmin, RDP, DCOM, PSRemote)
group Group membership enumeration
acl Access Control List collection
trusts Domain trust enumeration
container OU, GPO, and container enumeration
computeronly Session and local group enum only
certservices Certificate Templates and Enterprise CAs

Note: Methods can be combined with comma: /collection:group,acl,session

Domain-Joined:

…

Non-Domain-Joined:

powershell
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd bloodhound
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd bloodhound /collection:all
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd bloodhound /collection:dconly /stealth

# With LDAPS (SSL/TLS)
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd /ldaps bloodhound

Reflection:

…

Output: ZIP file containing JSON files for import into BloodHound CE.


domain-info

Get domain information including name, mode, forest, and machine account quota.

Domain-Joined:

powershell
.\SpicyAD.exe domain-info

Non-Domain-Joined:

powershell
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd domain-info

Reflection:

powershell
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("domain-info")

# Non-Domain-Joined
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("/domain:evilcorp.net", "/dc-ip:10.10.10.10", "/user:admin", "/password:P@ssw0rd", "domain-info")

enum-dcs

Enumerate domain controllers with IPs, OS versions, sites, and roles.

Domain-Joined:

powershell
.\SpicyAD.exe enum-dcs

Non-Domain-Joined:

powershell
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd enum-dcs

Reflection:

powershell
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("enum-dcs")

# Non-Domain-Joined
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("/domain:evilcorp.net", "/dc-ip:10.10.10.10", "/user:admin", "/password:P@ssw0rd", "enum-dcs")

enum-users

Enumerate domain users with security-relevant flags (DONT_REQ_PREAUTH, HAS_SPN, DISABLED).

Domain-Joined:

powershell
.\SpicyAD.exe enum-users

Non-Domain-Joined:

powershell
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd enum-users

Reflection:

powershell
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("enum-users")

# Non-Domain-Joined
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("/domain:evilcorp.net", "/dc-ip:10.10.10.10", "/user:admin", "/password:P@ssw0rd", "enum-users")

enum-computers

Enumerate domain computers with IP resolution.

Domain-Joined:

powershell
.\SpicyAD.exe enum-computers

Non-Domain-Joined:

powershell
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd enum-computers

Reflection:

powershell
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("enum-computers")

# Non-Domain-Joined
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("/domain:evilcorp.net", "/dc-ip:10.10.10.10", "/user:admin", "/password:P@ssw0rd", "enum-computers")

enum-shares

Enumerate SYSVOL/NETLOGON shares with interesting file detection.

Domain-Joined:

powershell
.\SpicyAD.exe enum-shares

Non-Domain-Joined:

powershell
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd enum-shares

Reflection:

powershell
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("enum-shares")

# Non-Domain-Joined
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("/domain:evilcorp.net", "/dc-ip:10.10.10.10", "/user:admin", "/password:P@ssw0rd", "enum-shares")

find-shares

Enumerate shares on all domain computers or a specific host.

Domain-Joined:

powershell
.\SpicyAD.exe find-shares
.\SpicyAD.exe find-shares /target:SERVER01

Non-Domain-Joined:

powershell
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd find-shares
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd find-shares /target:SERVER01

Reflection:

powershell
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("find-shares")

# Non-Domain-Joined
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("/domain:evilcorp.net", "/dc-ip:10.10.10.10", "/user:admin", "/password:P@ssw0rd", "find-shares")

domain-trusts

Enumerate domain trust relationships.

Domain-Joined:

powershell
.\SpicyAD.exe domain-trusts

Non-Domain-Joined:

powershell
.\SpicyAD.exe /domain:evilcorp.net /dc-ip:10.10.10.10 /user:admin /password:P@ssw0rd domain-trusts

Reflection:

powershell
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("domain-trusts")

# Non-Domain-Joined
[Reflection.Assembly]::LoadFile("C:\Users\Public\SpicyAD.exe") | Out-Null; [SpicyAD.Program]::Execute("/domain:evilcorp.net", "/dc-ip:10.10.10.10", "/user:admin", "/password:P@ssw0rd", "domain-tr

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言