Difference between revisions of "Linux Privilege Escalation"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) m Tag: visualeditor |
Rafahsolis (talk | contribs) m (→Setuid) Tag: visualeditor |
||
| (One intermediate revision by the same user not shown) | |||
| Line 19: | Line 19: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| − | == Setuid == | + | ==Setuid== |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
| − | find / -perm -4000 2>/dev/null | + | find / -perm -4000 -exec ls -la {} \; 2>/dev/null |
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 13:04, 23 January 2020
Check Kernel version[edit]
uname -r
cat /proc/version
dmesg | grep Linux
Privilege checks[edit]
Basic Linux Privilege Escalation
Make file inmutable[edit]
sudo chattr +i carpeta-prueba/
sudo chattr +i archivo-prueba.txt
Setuid[edit]
find / -perm -4000 -exec ls -la {} \; 2>/dev/null