Untitled

 avatar
unknown
plain_text
a year ago
314 B
6
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.txt
Editor is loading...
Leave a Comment