Page cover
githubEdit

stethoscopeEnumeration

chevron-rightGet Distribution Codenamehashtag
chevron-rightMost Used Commandshashtag
chevron-rightCheck Groupshashtag
circle-info

adm group can read log files.

chevron-rightCheck processes and Serviceshashtag
circle-info

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

circle-info

If you see knockd running

chevron-rightCheck Listening portshashtag
chevron-right/etc/passwdhashtag
circle-info

Write Permissions

chevron-right/etc/shadowhashtag
circle-info

Crack the hash

chevron-right/etc/sudoershashtag
circle-info
  • 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:

chevron-rightScan the local networkhashtag
  • 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:

chevron-rightCredential Huntinghashtag
circle-info

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

chevron-rightFile Enumerationhashtag
circle-info

find

chevron-rightCheck Environmenthashtag
circle-info

Check RAM remaining to Memory Locking

chevron-rightCheck Periheralshashtag
chevron-rightCheck Logshashtag
circle-info

journalctl

chevron-rightUse lft to trace hops in the networkhashtag
  • If you suspect that there is a VM or docker being hosted in a different port you can use lft and check if there are differences in the results.

chevron-rightFind the processes associated with a porthashtag
chevron-rightDiscover reachable internal networkshashtag
chevron-rightEnumerating Docker hashtag
circle-info

Host names are usually numerical IDs

Always check the environment variables

  • Confirm the presence of .dockerenv

circle-info

When the host's user information does not exist inside the container’s /etc/passwd file, file permissions will show numeric IDs instead of human-readable names.

circle-info

If the socket is mounted you may be able to use docker-cli:

circle-info

Understand the Network

Docker containers typically run in a private virtual network created by Docker, and the default network uses a subnet in the range 172.16.0.0/12

circle-info

Check for Mounted File Systems

circle-info

Look for vulnerabilities and misconfiguration

circle-info
circle-info

docker-cli

  • Check for containers running with elevated privileges (--privileged, --cap-add).

  • Look for containers that share host namespaces or file systems.

Last updated