Update sneedscan.sh

This commit is contained in:
Sam Sneed 2024-06-05 01:55:17 +00:00 committed by GitHub
parent 1c0e198a1d
commit 7e63f8fffc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,23 @@
echo SneedScan - a Sneed Group Tool. echo SneedScan - a Sneed Group Tool.
sudo freshclam 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 \ sudo clamscan -r -i --scan-pe=yes \
--scan-elf=yes \ --scan-elf=yes \
--scan-ole2=yes \ --scan-ole2=yes \
@ -9,20 +25,81 @@ sudo clamscan -r -i --scan-pe=yes \
--scan-xmldocs=yes \ --scan-xmldocs=yes \
--scan-archive=no \ --scan-archive=no \
--scan-swf=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-html=no \
--scan-hwp3=no \ --scan-hwp3=no \
--alert-macros=yes \ --alert-macros=yes \
--max-files=10000 \ --max-files=10000 \
--max-recursion=12 \ --max-recursion=12 \
--max-dir-recursion=10 \ --remove /home/*
--remove /home
echo Scanning /tmp....
echo Scanning user binaries.... sudo clamscan -i -r --scan-pe=yes \
--scan-elf=yes \ --scan-elf=yes \
--scan-ole2=yes \ --scan-ole2=yes \
--scan-pdf=yes \ --scan-pdf=yes \
--scan-xmldocs=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-archive=no \
--scan-swf=no \ --scan-swf=no \
--scan-html=no \ --scan-html=no \
@ -33,11 +110,11 @@ echo Scanning user binaries....
--max-dir-recursion=3 \ --max-dir-recursion=3 \
--remove /usr/bin --remove /usr/bin
echo Scanning system binaries. echo Scanning system binaries. (WILL NOT AUTOREMOVE THESE)
--scan-elf=yes \ clamscan --scan-elf=yes \
--scan-ole2=yes \ --scan-ole2=no \
--scan-pdf=yes \ --scan-pdf=no \
--scan-xmldocs=yes \ --scan-xmldocs=no \
--scan-archive=no \ --scan-archive=no \
--scan-swf=no \ --scan-swf=no \
--scan-html=no \ --scan-html=no \
@ -46,4 +123,4 @@ echo Scanning system binaries.
--max-files=10000 \ --max-files=10000 \
--max-recursion=12 \ --max-recursion=12 \
--max-dir-recursion=3 \ --max-dir-recursion=3 \
--remove /bin /bin