Documentation Index
Fetch the complete documentation index at: https://docs.bytejmp.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Linux capabilities split root privileges into smaller units. A binary with specific capabilities can perform privileged operations without being SUID root.Find Binaries with Capabilities
Dangerous Capabilities
cap_setuid (ep)
Binary can change its UID → instant root.python
perl
ruby
php
node
cap_dac_read_search
Bypass file read permission checks. Read any file.tar
openssl (custom binary)
cap_dac_override
Bypass file write permission checks. Write to any file.python
vim
cap_chown
Change ownership of any file.cap_fowner
Bypass permission checks on file owner operations.cap_net_raw
Capture network traffic. Sniff credentials.cap_net_bind_service
Bind to privileged ports (< 1024). Useful for phishing/MitM.cap_sys_ptrace
Attach to any process. Inject code into root process.cap_sys_admin
Mount filesystems, various admin operations.Set Capabilities (If Root — Persistence)
Quick Reference
| Capability | Impact | Exploit |
|---|---|---|
cap_setuid | Change UID to root | python3/perl/ruby setuid(0) |
cap_dac_read_search | Read any file | tar to exfil /etc/shadow |
cap_dac_override | Write any file | Modify /etc/passwd |
cap_chown | Own any file | chown shadow to user |
cap_fowner | chmod any file | chmod 777 /etc/shadow |
cap_net_raw | Sniff traffic | tcpdump credentials |
cap_sys_ptrace | Inject into process | Attach to root PID |
cap_sys_admin | Mount filesystems | Mount /dev/sda, read shadow |