ToolsFebruary 9, 20261 min readby 0xt0pus

LinEnum

Linux privilege escalation enumeration script that checks for common misconfigurations


LinEnum

Description

A Linux privilege escalation enumeration script that automates the collection of system information, user details, network configuration, file permissions, and other data useful for identifying privilege escalation vectors on Linux systems.

Usage 1: Download LinEnum

Download the LinEnum script from GitHub to the attacker machine.

Command:

wget https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh

Usage 2: Transfer LinEnum to Target via Netcat

Transfer the script to the target machine using netcat.

On Target Machine:

Command:

nc -l -l 1234 > linenum.sh

On Attacker Machine:

Command:

nc -w 3 TARGETIP 1234 < LinEnum.sh

Run LinEnum and search for a specific keyword (e.g., password) in the output to quickly find sensitive information.

Command:

LinEnum -k password

Notes

  • Make the script executable before running: chmod +x LinEnum.sh
  • LinEnum can find sensitive files such as password backups, configuration files, and other privilege escalation vectors.
  • GitHub: https://github.com/rebootuser/LinEnum