SneedScan/sneedscan.sh

127 lines
2.4 KiB
Bash
Raw Normal View History

2024-06-05 01:39:07 +00:00
echo SneedScan - a Sneed Group Tool.
2024-06-04 23:38:20 +00:00
sudo freshclam
2024-06-05 01:42:51 +00:00
2024-06-05 01:55:17 +00:00
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....
2024-06-04 23:43:51 +00:00
sudo clamscan -r -i --scan-pe=yes \
2024-06-04 23:38:20 +00:00
--scan-elf=yes \
2024-06-04 23:43:51 +00:00
--scan-ole2=yes \
2024-06-04 23:38:20 +00:00
--scan-pdf=yes \
--scan-xmldocs=yes \
2024-06-05 01:29:13 +00:00
--scan-archive=no \
2024-06-04 23:38:20 +00:00
--scan-swf=no \
2024-06-05 01:55:17 +00:00
--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 \
2024-06-04 23:38:20 +00:00
--scan-html=no \
--scan-hwp3=no \
--alert-macros=yes \
--max-files=10000 \
--max-recursion=12 \
2024-06-05 01:55:17 +00:00
--remove /home/*
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/
2024-06-05 01:42:51 +00:00
2024-06-05 01:55:17 +00:00
echo Scanning /var/tmp....
sudo clamscan -i -r --scan-pe=yes \
2024-06-05 01:42:51 +00:00
--scan-elf=yes \
--scan-ole2=yes \
--scan-pdf=yes \
--scan-xmldocs=yes \
2024-06-05 01:55:17 +00:00
--scan-archive=yes \
2024-06-05 01:42:51 +00:00
--scan-swf=no \
--scan-html=no \
--scan-hwp3=no \
--alert-macros=yes \
--max-files=10000 \
--max-recursion=12 \
2024-06-05 01:55:17 +00:00
--remove /var/tmp/
2024-06-05 01:42:51 +00:00
2024-06-05 01:55:17 +00:00
echo Scanning web servers....
sudo clamscan -i -r --scan-pe=yes \
2024-06-05 01:42:51 +00:00
--scan-elf=yes \
--scan-ole2=yes \
--scan-pdf=yes \
--scan-xmldocs=yes \
2024-06-05 01:55:17 +00:00
--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 \
--scan-hwp3=no \
--alert-macros=yes \
--max-files=10000 \
--max-recursion=12 \
--max-dir-recursion=3 \
--remove /usr/bin
echo Scanning system binaries. (WILL NOT AUTOREMOVE THESE)
clamscan --scan-elf=yes \
--scan-ole2=no \
--scan-pdf=no \
--scan-xmldocs=no \
2024-06-05 01:42:51 +00:00
--scan-archive=no \
--scan-swf=no \
--scan-html=no \
--scan-hwp3=no \
--alert-macros=yes \
--max-files=10000 \
--max-recursion=12 \
--max-dir-recursion=3 \
2024-06-05 01:55:17 +00:00
/bin