diff --git a/clamscan-automate.sh b/clamscan-automate.sh new file mode 100644 index 0000000..7de54bd --- /dev/null +++ b/clamscan-automate.sh @@ -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. :-)" diff --git a/clamscan-depends-ubuntu.sh b/clamscan-depends-ubuntu.sh new file mode 100644 index 0000000..4f2b43c --- /dev/null +++ b/clamscan-depends-ubuntu.sh @@ -0,0 +1 @@ +sudo apt install clamav clamav-freshclam diff --git a/clamscan.sh b/clamscan.sh new file mode 100644 index 0000000..dc71cf3 --- /dev/null +++ b/clamscan.sh @@ -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