📘
Hacktricks
  • GitHub: Welcome to the page where you will find each trick/technique/whatev
  • About the author
  • Getting Started in Hacking
  • Pentesting Methodology
  • External Recon Methodology
  • Phishing Methodology
  • Exfiltration
  • Tunneling and Port Forwarding
  • Brute Force - CheatSheet
  • Search Exploits
  • shells
    • Shells (Linux, Windows, MSFVenom)
  • linux-unix
    • Checklist - Linux Privilege Escalation
    • Linux Privilege Escalation
    • Useful Linux Commands
    • Linux Environment Variables
  • macos
    • MacOS Security & Privilege Escalation
  • windows
    • Checklist - Local Windows Privilege Escalation
    • Windows Local Privilege Escalation
    • Active Directory Methodology
    • NTLM
    • Stealing Credentials
    • Authentication, Credentials, UAC and EFS
    • Basic CMD for Pentesters
    • Basic PowerShell for Pentesters
    • AV Bypass
  • mobile-apps-pentesting
    • Android APK Checklist
    • Android Applications Pentesting
    • iOS Pentesting Checklist
    • iOS Pentesting
  • pentesting
    • Pentesting Network
  • Stargazers
  • blob
    • master
      • hacktricks/LICENSE.md at master
  • network
    • Forks
  • Issues
  • Pull requests
  • Actions
  • Projects
  • GitHub: Welcome to the page where you will find each trick/technique/whatev
  • Build software better, together
  • Pulse
  • tree
    • Build software better, together
    • GitHub at 1e46f267c2ce5c79bb9a8a146f468f214419f708
    • master
      • .gitbook
        • hacktricks/.gitbook/assets at master
      • hacktricks/.github at master
      • a.i.-exploiting
        • hacktricks/a.i.-exploiting/bra.i.nsmasher-presentation at master
      • hacktricks/backdoors at master
      • hacktricks/blockchain at master
      • hacktricks/cloud-security at master
  • Branches
  • Releases
  • Commits
    • Commits
  • Commits
  • commit
    • GitBook: [master] one page modified@1e46f26
    • GitBook: [master] 3 pages and 6 assets modified@e741d40
    • Update FUNDING.yml@c7e5a37
    • GitBook: [master] one page modified@5b5b28a
    • GitBook: [master] 511 pages and one asset modified@73a4b96
Powered by GitBook
On this page

Was this helpful?

  1. linux-unix

Checklist - Linux Privilege Escalation

Previouslinux-unixNextLinux Privilege Escalation

Last updated 3 years ago

Was this helpful?

Do you use Hacktricks every day? Did you find the book very useful? Would you like to receive extra help with cybersecurity questions? Would you like to find more and higher quality content on Hacktricks? so we can dedicate more time to it and also get access to the Hacktricks private group where you will get the help you need and much more!

If you want to know about my latest modifications/additions or you have any suggestion for HackTricks or PEASS, join the ​, or follow me on Twitter ​. If you want to share some tricks with the community you can also submit pull requests to that will be reflected in this book and don't forget to give ⭐ on github to motivate me to continue developing this book.

  • Get OS information

  • Check the , any writable folder?

  • Check , any sensitive detail?

  • Search for using scripts (DirtyCow?)

  • List mounted drives

  • Any unmounted drive?

  • Any creds in fstab?

  1. Check for installed

  2. Check for installed

  • Is any unknown software running?

  • Is any software with more privileges that it should have running?

  • Search for exploits for running processes (specially if running of versions)

  • Can you modify the binary of any running process?

  • Monitor processes and check if any interesting process is running frequently

  • Can you read some interesting process memory (where passwords could be saved)?

  • Is the being modified by some cron and you can write in it?

  • Any in a cron job?

  • Some is being executed or is inside modifiable folder?

  • Have you detected that some script could be being ? (every 1, 2 or 5 minutes)

  • Any writable .service file?

  • Any writable binary executed by a service?

  • Any writable folder in systemd PATH?

  • Any writable timer?

  • Any writable .socket file?

  • Can you communicate with any socket?

  • HTTP sockets with interesting info?

  • Can you communicate with any D-Bus?

  • Enumerate the network to know where you are

  • Open ports you couldn't access before getting a shell inside the machine?

  • Can you sniff traffic using tcpdump?

  • Generic users/groups enumeration

  • Do you have a very big UID? Is the machine vulnerable?

  • Clipboard data?

  • Password Policy?

  • Try to use every known password that you have discovered previously to login with each possible user. Try to login also without password.

  • If you have write privileges over some folder in PATH you may be able to escalate privileges

  • Can you execute any comand with sudo? Can you use it to READ, WRITE or EXECUTE anything as root? ()

  • Is any exploitable suid binary? ()

  • Has any binary any unexpected capability?

  • Has any file any unexpected ACL?

  • screen?

  • tmux?

  • Profile files - Read sensitive data? Write to privesc?

  • passwd/shadow files - Read sensitive data? Write to privesc?

  • Check commonly interesting folders for sensitive data

  • Weird Localtion/Owned files, you may have access or alter executable files

  • Modified in last mins

  • Sqlite DB files

  • Hidden files

  • Script/Binaries in PATH

  • Web files (passwords?)

  • Backups?

  • Known files that contains passwords: Use Linpeas and LaZagne

  • Generic search

  • Modify python library to execute arbitrary commands?

  • Can you modify log files? Logtotten exploit

  • Can you modify /etc/sysconfig/network-scripts/? Centos/Redhat exploit

If you want to know about my latest modifications/additions or you have any suggestion for HackTricks or PEASS, join the , or follow me on Twitter ​. If you want to share some tricks with the community you can also submit pull requests to that will be reflected in this book. Don't forget to give ⭐ on the github to motivate me to continue developing this book.

​​

Support Hacktricks through github sponsors
💬
telegram group
🐦
@carlospolopm
https://github.com/carlospolop/hacktricks
PATH
env variables
kernel exploits
useful software
vulnerable software
PATH
wildcard
modifiable script
executed very frequently
GTFOBins
GTFOBins
💬
PEASS & HackTricks telegram group here
🐦
@carlospolopm
https://github.com/carlospolop/hacktricks
Buy me a coffee here