Windows
Privilege escalation — Windows
Section titled “Privilege escalation — Windows”De user bajo a local admin / SYSTEM en lab. Autorización obligatoria.
Checklist rápido
Section titled “Checklist rápido”| Vector | Qué mirar |
|---|---|
| Whoami / grupos | whoami /all — SeImpersonate, Admin? |
| Servicios | Binario/path writable → replace + restart |
| Unquoted service path | Path con espacios sin comillas |
| AlwaysInstallElevated | MSI como SYSTEM si ambas keys = 1 |
| Creds | cmdkey, SAM/SYSTEM (si ya tienes acceso), scripts |
| Token / potato | SeImpersonatePrivilege → tools tipo Potato (lab) |
| UAC | Bypass solo si el lab/contexto lo contempla |
| Scheduled tasks | Tareas con binario editable |
Comandos de triaje
Section titled “Comandos de triaje”whoami /allnet usernet localgroup administratorssysteminfoPowerShell (lab):
Get-Service | Where-Object { $_.Status -eq 'Running' }Get-LocalUserFlujo mental
Section titled “Flujo mental”- Enumera privilegios y grupos.
- Busca misconfigs (servicios, tasks, registry).
- Creds reutilizadas (mismo pass en otros hosts).
- Documenta: vector → prueba →
whoamiresultante.
Linux: PrivEsc Linux. AD: Conceptos AD.
Ref lab: HackTricks Windows PrivEsc.