Difference between revisions of "Linux Privilege Escalation"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "== Check Kernel version == <syntaxhighlight lang="bash"> uname -r cat /proc/version dmesg | grep Linux </syntaxhighlight>") Tag: visualeditor |
Rafahsolis (talk | contribs) m (→Setuid) Tag: visualeditor |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | == Check Kernel version == | + | ==Check Kernel version== |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
uname -r | uname -r | ||
cat /proc/version | cat /proc/version | ||
dmesg | grep Linux | dmesg | grep Linux | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | ==Privilege checks== | ||
| + | [[:File:Linuxprivchecker.tar.gz|linuxprivchecker.py]] | ||
| + | |||
| + | [[:File:LinEnum.tar.gz|LinEnum]] | ||
| + | |||
| + | [http://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/ Basic Linux Privilege Escalation] | ||
| + | |||
| + | ==Make file inmutable== | ||
| + | <syntaxhighlight lang="bash"> | ||
| + | sudo chattr +i carpeta-prueba/ | ||
| + | sudo chattr +i archivo-prueba.txt | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | ==Setuid== | ||
| + | <syntaxhighlight lang="bash"> | ||
| + | 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