Advertisement
MorpheusArch

av_script.sh_v0.2

Jul 26th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.15 KB | None | 0 0
  1. #This program is free software; you can redistribute it and/or
  2. #modify it under the terms of the GNU General Public License
  3. #as published by the Free Software Foundation; either version 2
  4. #of the License, or (at your option) any later version.
  5.  
  6. #This program is distributed in the hope that it will be useful,
  7. #but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9. #GNU General Public License for more details.
  10.  
  11. #You should have received a copy of the GNU General Public License
  12. #along with this program; if not, write to the Free Software
  13. #Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  14.  
  15. #!/bin/bash
  16.  
  17. clear
  18. pacman -Syy
  19.  
  20. echo ""
  21. echo "Installing ClamAV"
  22.  
  23. echo ""
  24. pacman -S clamav
  25. echo ""
  26.  
  27. echo "Updating virus definitions"
  28. echo ""
  29. freshclam
  30. echo ""
  31.  
  32. echo "Creating directory for logs..."
  33. mkdir /var/log/avscan
  34. sleep 1
  35. echo ""
  36.  
  37. echo "Output of scan will be stored in /var/log/avscan/scan.log"
  38. sleep 2
  39. echo ""
  40.  
  41. echo "Checking all files on system"
  42. clamscan -r / --max-filesize=2000M --max-scansize=2000M -l /var/log/avscan/scan.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement