Untitled
unknown
plain_text
2 years ago
314 B
11
Indexable
#!/bin/bash
# Check if cron process is running
if ps aux | grep -v grep | grep cron >/dev/null; then
echo "Cron service is running."
else
echo "Cron service is not running on this system. Please investigate." | mail -s "Cron Service Alert" root@localhost
fi
cat /root/flag.txt > /home/bob/flag.txtEditor is loading...
Leave a Comment