PRIMARY CATEGORY → CHECKLISTS   •   LINUX PRIVESC

Mindmap

Zoom in


Global

  • Additional NICs pointing to other subnets ( ip a s, /sys/class/net)
  • Interesting System Directories ( /<DIRECTORY>, /opt, /var and so on )
  • Running Services that are not externally accesible ( netstat or ss ) and are running as a different user ( More privileged or Root )
  • Credential Hunting on Configuration Files ( /etc, /etc/fstab or web directories → /var/www/worpdress/wp-config.php )
  • Weak passwords on existing system users → <USER>:<USER>

e.g. A system user called john whose password is john

  • Credential Reuse on existing system users ( root user as well ) 😊

e.g. A user’s password for a web application that is reused for the system’s root user

Run LES


Per User

If installed, check Doas as well ( find <SNIP> -iname 'doas.conf' )

Check /root as well!

Sensitive → Sudo Privileges, CRON Job, a privileged process running the given script

python3 -c 'import rpcpy; print(rpcpy.__version__)' or check <MODULE_PATH>/__version__


Pillaging

  • Grab /etc/shadow hashes and try to crack them

  • Look for plain credentials or other type of sensitive data within each /home directory

Check ALL directories → .ssh, .config…

Check ALL files → Shell/MariaDB History ( e.g. .bash_history )…

  • Check any Service running on the target → Look for credentials

e.g. Apache2 → /var/www/wordpress/wp-config.php, MariaDB → Database Connection

Mimipenguin

Lazagne