Skip to main content

Linux

OS​

cat /etc/issue
cat /etc/*-release
cat /proc/version
uname -a
rpm -q kernel
dmesg | grep Linux
ls /boot | grep vmlinuz-
lsb_release -a

Process / open ports / services / route / network​

ps auxww
ps -ef
lsof -i
netstat -laputen
arp -e
route
cat /sbin/ifconfig -a
cat /etc/network/interfaces
cat /etc/sysconfig/network
cat /etc/resolv.conf
cat /etc/sysconfig/network
cat /etc/networks
iptables -L
hostname
dnsdomainname

Users​

last
w
cat /etc/passwd | cut -d: -f1
grep -v -E "^#" /etc/passwd | awk -F: '$3 == 0 { print $1}'
ls -ahlR /root/
ls -ahlR /home/
cat ~/.bashrc
cat ~/.profile

Sudoers​

sudo -l
cat /etc/sudoers

Environment​

cat /etc/profile
cat /etc/bashrc
cat ~/.bash_profile
cat ~/.bashrc
cat ~/.bash_logout
cat ~/.bash_history
env
set

FS​

mount
df -h

Upload​

find / -name wget
find / -name nc*
find / -name netcat*
find / -name tftp*
find / -name ftp