Add files via upload

This commit is contained in:
Sam Sneed 2024-06-04 23:38:20 +00:00 committed by GitHub
parent 2baff13ee5
commit 1ca0741aea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 0 deletions

6
clamscan-automate.sh Normal file
View file

@ -0,0 +1,6 @@
sudo cp clamscan.sh /usr/bin
sudo crontab -l > scancron
sudo echo "0 */6 * * * clamscan.sh &" >> scancron
sudo crontab scancron
sudo rm scancron
echo "Done! ClamScan will now run every 6 hours. :-)"

View file

@ -0,0 +1 @@
sudo apt install clamav clamav-freshclam

16
clamscan.sh Normal file
View file

@ -0,0 +1,16 @@
echo ClamScan - a Sneed Group Tool.
sudo freshclam
sudo clamscan -r -i --remove / --scan-pe=yes \
--scan-elf=yes \
--scan ole2=yes \
--scan-pdf=yes \
--scan-xmldocs=yes \
--scan-archive=yes \
--scan-swf=no \
--scan-html=no \
--scan-hwp3=no \
--alert-encrypted-archive=yes \
--alert-macros=yes \
--max-files=10000 \
--max-recursion=12 \
-max-dir-recursion=420