forked from screwloose83/php-malware-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vs.sh
executable file
·37 lines (37 loc) · 967 Bytes
/
vs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
ignore_dir='-i=to_del -i=drush_backups'
l=`php scan.php --hide-ok --list-only --hide-whitelist -e=.php ${ignore_dir} -d ${1}`
for i in ${l}; do
d=true
while ${d}; do
echo "Первые 4 строки"
head -n4 $i
php scan.php -f $i --show-string
echo ""
echo "1: Редактировать"
echo "2: Добавить в белый список"
echo "3: Удалить"
echo "4: Записать для дальнейшего иследования"
read s
case $s in
1)
nano $i
;;
2)
echo `php scan.php -f $i --to-whitelist` >> whitelist.txt
;;
3)
rm -i $i
d=false
;;
4)
echo $i >> FILELIST
;;
*)
echo "Следующий файл"
d=false
;;
esac
echo ""
done
done