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.
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