#!/bin/sh
wget -O /tmp/antiloris.download http://hosting.servxs.net/files/antiloris.txt
cp /tmp/antiloris.download /bin/antiloris
chmod +x /bin/antiloris
chown 0:0 /bin/antiloris
rm /tmp/antiloris.download
ISINCRNTB=`cat /etc/crontab |egrep "antiloris"`
if [ "$ISINCRNTB" = "" ] ; then
  echo "" >> /etc/crontab
  echo "# Anti Loris Attack" >> /etc/crontab
  echo "* * * * *   root    /bin/sh /bin/antiloris" >> /etc/crontab
  echo "* * * * *   root    sleep 15; /bin/sh /bin/antiloris" >> /etc/crontab
  echo "* * * * *   root    sleep 30; /bin/sh /bin/antiloris" >> /etc/crontab
  echo "* * * * *   root    sleep 45; /bin/sh /bin/antiloris" >> /etc/crontab
fi
echo ""
echo ""
echo ""
echo ""
echo "DONE :)"
