Update sneedscan.sh
This commit is contained in:
parent
1c0e198a1d
commit
7e63f8fffc
1 changed files with 88 additions and 11 deletions
99
sneedscan.sh
99
sneedscan.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue