From 1ca0741aeab7796fb7ee8ce5404ba67ddf1ff171 Mon Sep 17 00:00:00 2001 From: Sam Sneed <163201376+sam-sneed@users.noreply.github.com> Date: Tue, 4 Jun 2024 23:38:20 +0000 Subject: [PATCH] Add files via upload --- clamscan-automate.sh | 6 ++++++ clamscan-depends-ubuntu.sh | 1 + clamscan.sh | 16 ++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 clamscan-automate.sh create mode 100644 clamscan-depends-ubuntu.sh create mode 100644 clamscan.sh 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