Enumeration is the process of gathering information about a computer system, network, or application. It helps gain valuable insights into the target system.
Here are some commands for Linux enumeration:
hostnameprints the computer's name.
uname -aprints information about the kernel.
cat /proc/versionprints additional information about the kernel, and sometimes compiler information.
cat /etc/issuecan be used to identify some operating systems.
psshows running processes.
envprints environment variables.
sudo -lprints commands the current user can run with
ls -lashows all files and folders in current directory, including hidden files.
idprints an overview of current user's privileges and groups.
cat /etc/passwdprints information about all accounts configured on the system.
ifconfigprints information about the network adapters. However this has been deprecated in newer Linux distributions in favour of the
ipprints information about the network adapters.
cat /etc/exportsprints information about Network File Sharing (NFS).
echo $PATHprints a list of directories used to search for binaries when commands are typed in the terminal.
whoamiprints the current user.
which python3prints the location of an executable, in this example
Please note that this is not an exhaustive list!
The effectiveness of these commands can vary depending on the specific Linux distribution, and the permissions of the user executing them.
This post was tagged: