Page cover

Enumeration

Get Distribution Codename
lsb_release -cs
cat /etc/lsb-release
One liners

You can create one liners with commands like

Check Groups

adm group can read log files.

Check processes and Services

If /proc is mounted with the hidepid option set to invisible the processes on the system are only visible to the current user and root users

Check Listening ports
/etc/passwd

Write Permissions

/etc/shadow

Crack the hash

/etc/sudoers
  • If the file is read-only, you need to change its permissions to allow write access:

  • Add the following line:

  • Restore the original file permissions to make it read-only again:

Scan the local network
  • Find one many hosts there are in the network by doing a ping sweep:

  • If nc is installed can be use to scan for open ports:

Credential Hunting

Passwords

  • Search for the string pass (case-insensitive) in all files and directories recursively:

  • Search for the string password in files with double extension, recursively:

  • Search for ssh keys recursively from the current directory you are in:

Hashes

File Enumeration

find

Check Environment

Check RAM remaining to Memory Locking

Check Periherals
Check Logs

journalctl

Last updated