This commit is contained in:
Leif Johansson 2018-11-01 09:49:23 +01:00
parent 2bb36b6d81
commit 824155e7c9

View file

@ -6,10 +6,10 @@ echo "### SUID binaries"
find / -perm -4000 -ls find / -perm -4000 -ls
echo "### World writable files" echo "### World writable files"
find / -perm -o=w find / -type f -a -perm -o=w
echo "### lines in authorized_keys" echo "### lines in authorized_keys"
for h in `awk -F: '{print $NF}' /etc/passwd`; do for h in `awk -F: '{print $6}' /etc/passwd`; do
echo "-- $h" echo "-- $h"
if [ -f $h/.ssh/authorized_keys ]; then if [ -f $h/.ssh/authorized_keys ]; then
cat $h/.ssh/authorized_keys cat $h/.ssh/authorized_keys
@ -22,6 +22,9 @@ for u in `awk -F: '{print $1}' /etc/passwd`; do
crontab -u $u -l crontab -u $u -l
done done
echo "### cronjobs in /etc"
find /etc/cron.*
echo "### Nyligen ändrade filer i systemet" echo "### Nyligen ändrade filer i systemet"
find / -type f -mtime 1 -ls find / -type f -mtime 1 -ls
@ -29,19 +32,20 @@ echo "### Installerade paket och versioner"
dpkg -l dpkg -l
echo "### Portar som lyssnar lsof alt netstat" echo "### Portar som lyssnar lsof alt netstat"
lsof -i|grep LISTEN alt netstat -lkp netstat -lp
echo "### Entropy" echo "### Entropy"
cat /proc/sys/kernel/random/entropy_avail cat /proc/sys/kernel/random/entropy_avail
echo "### fstab" echo "### fstab"
fstab cat /etc/fstab
echo "### arp-tabell" echo "### arp-tabell"
arp -na arp -na
echo "### processlista" echo "### processlista"
ps -auxww ps -eo euser,ruser,suser,fuser,f,comm,label
echo "### lsmod" echo "### lsmod"
lsmod lsmod