Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/61106960/adpeas
Privilege EscalationReconnaissanceVulnerability ScannersExploitationInformation GatheringPost-ExploitationPenetration TestingAuthenticationRed Teaming
GitHub61106960/adpeas

adPEAS

Powershell tool to automate Active Directory enumeration.

查看仓库
1.4k15615713小时55分前Kitploit 审核通过
分享
内容在请求的语言中不可用。显示英文版本。
# adPEAS v2 — Active Directory Privilege Escalation Awesome Scripts

<p align="center">
  <img src="https://assets.kitploit.com/production/public/readmes/4985/094efb3e3ea9d020e014d57d49df2544da13c1a85d28db14f491e55817bcc68f.jpg" alt="adPEAS Logo" width="800">
</p>

<p align="center">
  <strong>Comprehensive Active Directory security assessment — zero dependencies, single file, ready to go.</strong>
</p>

---

## What is adPEAS?

adPEAS is a PowerShell-based security assessment tool that identifies misconfigurations, vulnerabilities, and privilege escalation paths in Active Directory environments. It is designed for penetration testers, security auditors, and red teams who need a reliable, self-contained tool that works on any Windows system — no RSAT, no ActiveDirectory module, no third-party dependencies.

**adPEAS v2** is a complete rewrite of adPEAS v1. It replaces the legacy `DirectoryEntry`/`DirectorySearcher` approach with a unified `System.DirectoryServices.Protocols.LdapConnection` architecture and adds native Kerberos authentication, advanced reporting, and offensive operations — all in pure PowerShell.

### What's New in v2

- **Native Kerberos stack** — AS-REQ/AS-REP, TGS-REQ/TGS-REP, Pass-the-Ticket, PKINIT, all in pure PowerShell
- **Multiple auth methods** — Password, NT-Hash (OPtH), AES keys (PtK), Certificates (PKINIT & Pass-the-Cert/Schannel), Windows integrated
- **50+ security checks** across 10 categories with severity scoring
- **Interactive HTML reports** with search, filtering, risk scores, and tooltips
- **JSON export** for offline report conversion, incremental scanning, and scan comparison
- **BloodHound CE collector** — built-in data collection for attack path analysis
- **Offensive operations** — Kerberoasting, AS-REP Roasting, Golden/Silver/Diamond Tickets, RBCD abuse, Shadow Credentials, and more
- **Session-based workflow** — connect once, run multiple checks interactively
- **Tab-completion** — autocomplete AD object names for interactive exploration

> **New to adPEAS?** Check the [Quick-Start Guide](https://github.com/61106960/adpeas/blob/main/docs/02-Quick-Start.md) or read the [blog series on blog.sekurity.de](https://blog.sekurity.de/blog/adpeas-v2-introduction) for a deep dive into architecture, authentication, and internals.

---

## Features at a Glance

| Category | Highlights |
|----------|-----------|
| **Authentication** | Credentials, PKINIT, Pass-the-Cert, NT-Hash, AES keys, Windows auth, Kerberos-first with automatic fallback |
| **Security Checks** | Domain config, Kerberoast, ASREPRoast, ACLs, DCSync, delegation, AD CS escalation paths, GPO abuse, LAPS, BitLocker recovery keys, outdated systems |
| **Reporting** | Console (color-coded), plain text, interactive HTML, JSON export |
| **Offensive Ops** | Kerberoasting, AS-REP Roasting, Golden/Silver/Diamond Tickets, RBCD, Shadow Credentials, Pass-the-Ticket |
| **BloodHound** | Built-in BloodHound CE collector (ZIP export) |
| **OPSEC Mode** | Skip active and noisy steps: hash extraction in Kerberoast/ASREPRoast, the BloodHound collector, the enumeration-heavy checks (owners, LAPS config, outdated systems, password-in-description, share hunting) and all SMB access to GPO/NETLOGON scripts |
| **Deployment** | Single `.ps1` file, no RSAT, no external modules, works offline and air-gapped |

---

## Requirements

- **OS**: Windows 10/11, Windows Server 2016/2019/2022/2025
- **PowerShell**: 5.1+ (Windows PowerShell)
- **.NET Framework**: 4.5+ (included in Windows)
- **Network**: LDAP (389), LDAPS (636), Kerberos (88), SMB (445); Global Catalog (3268/3269) for forest-wide lookups; HTTP/HTTPS (80/443) for AD CS web-enrollment and Exchange probes. SMB (445) reaches domain computers for the GPO/NETLOGON script and (opt-in) share checks

No ActiveDirectory module, RSAT, or external PowerShell modules required.

---

## Download

### Release Versions

| File | Size | Use Case |
|------|------|----------|
| `adPEAS.ps1` | ~8 MB | Development, debugging, code review |
| `adPEAS_min.ps1` | ~5.5 MB | Regular use with smaller footprint |
| `adPEAS_ultra.ps1` | ~5 MB | Minimal size, no comments |
| `adPEAS_obf.ps1` | ~1.2 MB | Smallest size, obfuscated for transfer |
| `adPEAS.exe` | ~8.2 MB | A PowerShell prompt with adPEAS already loaded - release download only |

All of them are functionally identical. Choose based on your deployment scenario. `adPEAS.exe` is a console executable carrying `adPEAS.ps1`; it is attached to every [GitHub Release](https://github.com/61106960/adPEAS/releases) but not kept on `main` - see [Installation](https://github.com/61106960/adpeas/blob/main/docs/01-Installation.md#adpeasexe).

```powershell
# Clone the repository
git clone https://github.com/61106960/adPEAS.git
cd adPEAS
```

### Building from Source

The `main` branch always carries a current build of all four variants, rebuilt with every fix and feature, so the raw URLs above serve the newest code. Those builds carry a development version string (`2.10.0+20261111-1947`). Every tagged [GitHub Release](https://github.com/61106960/adPEAS/releases) has the four stable builds attached as downloadable assets, with a clean version string (`2.10.0`) — use those if you need a known, citable version. To build from source yourself:

```powershell
git clone https://github.com/61106960/adPEAS.git
cd adPEAS
.\Build-Release.ps1
```

This produces all four variants (`adPEAS.ps1`, `adPEAS_min.ps1`, `adPEAS_ultra.ps1`, `adPEAS_obf.ps1`) and `adPEAS.exe` in the repository root. Requires Windows PowerShell 5.1 and no additional dependencies - the executable is compiled with the C# compiler that ships with the .NET Framework.

---

## Quick Start

```powershell
# Option 1: Import as module (recommended)
Import-Module .\adPEAS.ps1

# Option 2: Dot-sourcing
. .\adPEAS.ps1

# Option 3: Read and execute in memory
Get-Content -Raw .\adPEAS.ps1 | Invoke-Expression

# Option 4: Load directly from GitHub into memory (no file on disk).
# Both variants work; on an older/hardened host that still defaults to TLS 1.0,
# prepend once: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

# 4a: WebClient - shortest. DownloadString detects and strips the file's UTF-8 BOM
#     itself, so nothing extra is needed. WebClient is a legacy API but works everywhere.
Invoke-Expression (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/61106960/adPEAS/main/adPEAS_obf.ps1')

# 4b: Invoke-WebRequest - the modern cmdlet. Its .Content keeps the BOM as a leading
#     U+FEFF that Invoke-Expression cannot parse, so TrimStart removes it first.
Invoke-Expression ((Invoke-WebRequest -Uri "https://raw.githubusercontent.com/61106960/adPEAS/main/adPEAS_obf.ps1" -UseBasicParsing).Content.TrimStart([char]0xFEFF))
```

### One-Liner (v1 Compatible)

```powershell
# Domain-joined machine (current user)
Invoke-adPEAS -Domain "contoso.com" -UseWindowsAuth

# With credentials
Invoke-adPEAS -Domain "contoso.com" -Username "john.doe" -Password "P@ssw0rd!"

# OPSEC mode (skip Kerberoast, ASREPRoast, BloodHound)
Invoke-adPEAS -Domain "contoso.com" -UseWindowsAuth -OPSEC
```

### Session-Based (v2 Style)

```powershell
# Connect once
Connect-adPEAS -Domain "contoso.com" -UseWindowsAuth

# Run full scan
Invoke-adPEAS

# Or run individual checks
Get-KerberoastableAccounts
Get-ADCSVulnerabilities
Get-DangerousACLs

# Disconnect when done
Disconnect-adPEAS
```

### Authentication Methods

```powershell
# Credentials
Connect-adPEAS -Domain "contoso.com" -Credential (Get-Credential)

# Overpass-the-Hash (NT-Hash)
Connect-adPEAS -Domain "contoso.com" -Username "admin" -NTHash "32ED87BDB5FDC5E9CBA88547376818D4"

# Pass-the-Key (AES256)
Connect-adPEAS -Domain "contoso.com" -Username "admin" -AES256Key "4a3b2c1d5e6f..."

# PKINIT (Certificate)
Connect-adPEAS -Domain "contoso.com" -Certificate "user.pfx"

# Pass-the-Cert / Schannel (LDAPS, no Kerberos)
Connect-adPEAS -Domain "contoso.com" -Certificate "user.pfx" -ForcePassTheCert

# LDAPS
Connect-adPEAS -Domain "contoso.com" -UseWindowsAuth -UseLDAPS
```

### Output & Reporting

```powershell
# All formats (default) — creates .txt, .html, and .json
Invoke-adPEAS -Domain "contoso.com" -UseWindowsAuth -Outputfile .\report

# HTML only
Invoke-adPEAS -Domain "contoso.com" -UseWindowsAuth -Outputfile .\report -Format HTML

# Offline report conversion from JSON
Convert-adPEASReport -InputJson ".\report.json" -OutputPath ".\new_report"

# Compare two scans (diff report)
Compare-adPEASReport -Baseline ".\scan_q1.json" -Current ".\scan_q2.json" -OutputPath ".\diff"
```

---

## Security Check Modules

| Module | Description |
|--------|-------------|
| `Domain` | Domain configuration, trusts, password policy, LDAP signing, SMB signing |
| `Creds` | Kerberoast, ASREPRoast, LAPS & BitLocker recovery key access, credential exposure in SYSVOL, credentials kept by deleted objects |
| `Rights` | ACLs, DCSync, password reset rights, dangerous OU permissions, GPO user-rights and logon restrictions, LAPS read permissions, add-computer rights, critical object ACLs |
| `Delegation` | Unconstrained, constrained, resource-based constrained delegation |
| `ADCS` | Certificate templates and CAs: ESC1-ESC5, ESC8, ESC9, ESC13, ESC14, ESC15 (ESC10 via the GPO check). The escalation paths that need administrative access to the CA host are out of scope - see [Security Checks](https://github.com/61106960/adpeas/blob/main/docs/04-Security-Checks.md) |
| `Accounts` | Privileged accounts, protected users, service accounts, SID history, authentication policy silos, RODC password replication |
| `GPO` | GPO permissions, local group membership, scheduled tasks, scripts, dangerous registry settings (WDigest, AlwaysInstallElevated, OneLogon/Zerologon, …) and Point and Print printer driver policies (PrintNightmare) deployed via GPO |
| `Computer` | LAPS, outdated systems, infrastructure servers, computer password age, network map |
| `Application` | Exchange, SCCM, SCOM infrastructure |
| `Shares` | Share hunting across domain computers (opt-in: only with `-Module Shares`, connects over SMB to every Windows computer) |
| `Bloodhound` | BloodHound CE data collection |

Run specific modules:

```powershell
Invoke-adPEAS -Domain "contoso.com" -UseWindowsAuth -Module Domain,Creds,ADCS
```

Or run everything except a few, without listing the rest:

```powershell
Invoke-adPEAS -Domain "contoso.com" -UseWindowsAuth -ExcludeModule Bloodhound,Computer
```

---

## Documentation

Full documentation is available in the [docs/](https://github.com/61106960/adpeas/blob/main/docs) directory:

| Document                                                | Topic                             |
| ------------------------------------------------------- | --------------------------------- |
| [Installation](https://github.com/61106960/adpeas/blob/main/docs/01-Installation.md)                 | Download, setup, execution policy |
| [Quick-Start](https://github.com/61106960/adpeas/blob/main/docs/02-Quick-Start.md)                   | Get started in 5 minutes          |
| [Authentication](https://github.com/61106960/adpeas/blob/main/docs/03-Authentication-Methods.md)     | All authentication options        |
| [Security Checks](https://github.com/61106960/adpeas/blob/main/docs/04-Security-Checks.md)           | Complete check reference          |
| [BloodHound Collector](https://github.com/61106960/adpeas/blob/main/docs/05-BloodHound-Collector.md) | BloodHound CE export              |
| [Core Functions](https://github.com/61106960/adpeas/blob/main/docs/06-Core-Functions.md)             | LDAP query functions              |
| [Set- & New-Modules](https://github.com/61106960/adpeas/blob/main/docs/07-Set-Modules.md)            | AD modification functions         |
| [Helper Functions](https://github.com/61106960/adpeas/blob/main/docs/08-Helper-Functions.md)         | Utility functions                 |
| [Architecture](https://github.com/61106960/adpeas/blob/main/docs/09-Architecture.md)                 | Technical architecture            |
| [Risk Scoring](https://github.com/61106960/adpeas/blob/main/docs/10-Risk-Scoring-System.md)          | Severity and risk scores          |
| [Troubleshooting](https://github.com/61106960/adpeas/blob/main/docs/11-Troubleshooting.md)           | Common issues and solutions       |
| [FAQ](https://github.com/61106960/adpeas/blob/main/docs/12-FAQ.md)                                   | Frequently asked questions        |

### Blog Series

A detailed blog series covering adPEAS v2 internals is published at [blog.sekurity.de](https://blog.sekurity.de/blog/adpeas-v2-introduction).

---

## License

adPEAS is **source-available**. Internal security assessments of your own organization are free. Commercial use (consulting, MSP, paid engagements) requires a commercial license.

See [LICENSE](https://github.com/61106960/adpeas/blob/main/license/LICENSE.md) for full terms, [COMMERCIAL_AGREEMENT](https://github.com/61106960/adpeas/blob/main/license/COMMERCIAL_AGREEMENT.md) for the commercial agreement, and [PRICING](https://github.com/61106960/adpeas/blob/main/license/PRICING.md) for licensing options.

- **Licensing Inquiries:** [email protected]
- **Technical Support:** [email protected]

---

## Legal Notice

adPEAS is intended for **authorized security testing only**. Always obtain written authorization before testing. Never use against systems you do not own or have permission to test. The authors are not responsible for misuse of this tool. Comply with all applicable laws and regulations.

---

## Author

**Alexander Sturz** — [SEKurity GmbH](https://sekurity.de)

- GitHub: [@61106960](https://github.com/61106960)
- Blog: [blog.sekurity.de](https://blog.sekurity.de)
下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    906
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    725
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    442
  • 4

    wifit3

    derv82/wifit3

    Wifite 但仅限 USB 且跨平台。

    434
  • 5

    jumpserver

    jumpserver/jumpserver

    JumpServer是一个开源的特权访问管理(PAM)平台,为DevOps和IT团队提供通过Web浏览器按需安全访问SSH、RDP、Kubernetes、数据库和RemoteApp端点的能力。

    412
  • 6

    SafeLine

    chaitin/safeline

    自托管WAF和反向代理,可过滤恶意HTTP流量、阻止SQL注入、XSS和机器人攻击,具备速率限制和动态HTML/JS加密功能。

    360

探索所有工具

浏览我们的工具集合

查看所有工具 →