Linux based survey
Situational Awarness
datedate -uidifconfig -awlastps -elf
Network Triage
hostnamenetstat -anP tcpnetstat -anP udppfiles [pids of listening processes]netstat -nrls -1 /proc | xargs pfiles | egrep '^[0-9]|AF_INET'arp -ancat /etc/resolv.conf
-
On Disk network config
ifconfig -a# interface names via driver namescat /etc/hostname.<interface name># hostname for ip-address associationcat /etc/hosts# match hostname to ipls -l /etc/inet/ipnodescat /etc/nodename# canonical hostnamecat /etc/netmasks# netmasks for each networkcat /etc/defaultrouter# default gatewaycat /etc/gateways# mulit-network gateways / routescat /etc/inet/static_routes# static routesls /etc/notrouter# router / not router
-
TODO: solaris filewall
System Profiling
vmstatuptimehostiduname -awho -rrunlevelpsrinfo -vmodinfo -cprtpicldf -h
Startup / Running
historycat /etc/inittab- TODO: list running and config’d to run services
ls -latr /etc/rc.d/rc3.d/ls -latr /etc/cron*ls -latr /var/spool/*
Disk / User Triage
show the contents of all directories which have ‘bin’ in them
find / -maxdepth 3 -name *bin -type d 2>/dev/null | xargs ls -lcat /etc/passwdls -latr /rootls -latr /home/*ls -latr /export/home/*ls -latr /tmpcat <FILE>with FILE:/.bash_history/.history/export/home/<USER>/.bash_history/export/home/<USER>/.history
ls -latr /var/logls -latr /var/adm