githubEdit

environment-enumeration

Basic System Information

whoami
id
hostname
ip a
sudo -l

OS and Kernel

cat /etc/os-release
echo $PATH
env
uname -a
lscpu
cat /etc/shells

Defenses

(Commands may require root or sudo)

 iptables -L
 apparmor_status
 sestatus
 ufw status
 fail2ban-client status
 snort -V

Drives and Shares

Users and Groups

File System and Hidden Files/Directories



Once you land on a system you must check several key details:

OS version

Kernel version

Running services

Installed packages and version

Logged in users

User home directories

Check for ssh keys

Check shell history

Find all history files

Sudo privileges & version

Check .config files

Readable shadow file

Password hashes in /etc/passwd

Cron jobs

Unmounted file systems and additional drives

SUID and GUID permissions binaries

Writable directories

Writable files

open ports

Information gathering

System awareness

Os version

Kernel version

Running services

See system path

Environment variables

Kernel version

Get information about the CPU

Get login shells

Defence in place

Get drive information

Get mounted or unmounted drive

Routing/ARP table

DNS information

Existing users

Check user login shell

Get group information

List group members

Check SSH keys

Get .bash_history information

Get mounted file systems (search for .conf and .config file in them)

Get unmounted drive

Get all hidden files

Get all hidden directories

Check temp files

Three are three tmp file in the system and /var/tmp retention time is longer.

Check log files (Get interesting files)

Analysis a binary

Ping

last login

Information about the system

Check Installed software

Check GTFO bins against installed packages

Get all binaries

Find .sh scripts

Last updated