From 7e63f8fffc1551ab0a76d8a3f4fbb22ed4f16067 Mon Sep 17 00:00:00 2001 From: Sam Sneed <163201376+sam-sneed@users.noreply.github.com> Date: Wed, 5 Jun 2024 01:55:17 +0000 Subject: [PATCH] Update sneedscan.sh --- sneedscan.sh | 99 ++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 88 insertions(+), 11 deletions(-) diff --git a/sneedscan.sh b/sneedscan.sh index 1abeb2b..13a4f45 100644 --- a/sneedscan.sh +++ b/sneedscan.sh @@ -1,7 +1,23 @@ echo SneedScan - a Sneed Group Tool. sudo freshclam -echo Scanning home folders.... +echo Scanning downloads.... +sudo clamscan -r -i --scan-pe=yes \ +--scan-elf=yes \ +--scan-ole2=yes \ +--scan-pdf=yes \ +--scan-xmldocs=yes \ +--scan-archive=yes \ +--scan-swf=yes \ +--scan-html=yes \ +--scan-hwp3=no \ +--alert-macros=yes \ +--max-files=10000 \ +--max-recursion=24 \ +--max-dir-recursion=10 \ +--remove /home/*/Downloads + +echo Scanning documents.... sudo clamscan -r -i --scan-pe=yes \ --scan-elf=yes \ --scan-ole2=yes \ @@ -9,20 +25,81 @@ sudo clamscan -r -i --scan-pe=yes \ --scan-xmldocs=yes \ --scan-archive=no \ --scan-swf=no \ +--scan-html=yes \ +--scan-hwp3=no \ +--alert-macros=yes \ +--max-files=10000 \ +--max-recursion=6 \ +--max-dir-recursion=4 \ +--remove /home/*/Documents + +echo Scanning homes.... +sudo clamscan -i --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-macros=yes \ --max-files=10000 \ --max-recursion=12 \ ---max-dir-recursion=10 \ ---remove /home +--remove /home/* - -echo Scanning user binaries.... +echo Scanning /tmp.... +sudo clamscan -i -r --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-macros=yes \ +--max-files=10000 \ +--max-recursion=12 \ +--remove /tmp/ + + +echo Scanning /var/tmp.... +sudo clamscan -i -r --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-macros=yes \ +--max-files=10000 \ +--max-recursion=12 \ +--remove /var/tmp/ + + +echo Scanning web servers.... +sudo clamscan -i -r --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-macros=yes \ +--max-files=10000 \ +--max-recursion=12 \ +--remove /var/www + +echo Scanning user binaries.... +clamscan --scan-elf=yes \ +--scan-ole2=no \ +--scan-pdf=no \ +--scan-xmldocs=no \ --scan-archive=no \ --scan-swf=no \ --scan-html=no \ @@ -33,11 +110,11 @@ echo Scanning user binaries.... --max-dir-recursion=3 \ --remove /usr/bin -echo Scanning system binaries. ---scan-elf=yes \ ---scan-ole2=yes \ ---scan-pdf=yes \ ---scan-xmldocs=yes \ +echo Scanning system binaries. (WILL NOT AUTOREMOVE THESE) +clamscan --scan-elf=yes \ +--scan-ole2=no \ +--scan-pdf=no \ +--scan-xmldocs=no \ --scan-archive=no \ --scan-swf=no \ --scan-html=no \ @@ -46,4 +123,4 @@ echo Scanning system binaries. --max-files=10000 \ --max-recursion=12 \ --max-dir-recursion=3 \ ---remove /bin +/bin