-
Notifications
You must be signed in to change notification settings - Fork 6
/
find_b374_traits
executable file
·85 lines (71 loc) · 1.3 KB
/
find_b374_traits
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/bash
FNAMES='
b374k/b374k-2.2.php
b374k/b374k-2.3.php
b374k/b374k-2.4.php
b374k/b374k-2.5.source.php
b374k/b374k-2.6.source.php
b374k/b374k-2.7.source.php
b374k/b374k-2.8.source.php
b374k/b374k-3.2.2.php
'
for NAME in $FNAMES
do
echo -n $(basename $NAME)
# 2.2 - 2.8
if fgrep -a -q "function swd(" $NAME
then
echo -n ',1'
fi
# 2.3, 2.4
if fgrep -a -q 'function rs($rstype,$rstarget,$rscode)' $NAME
then
echo -n ',2'
fi
# 2.4 and up, except 3.2.3
if fgrep -a -q 'function hss(' $NAME
then
echo -n ',3'
fi
# 2.3, 3.2.2
if fgrep -a -q cancelBubble $NAME
then
echo -n ',4'
fi
# 2.4 - 3.2.2
if fgrep -a -q 'function sql_connect' $NAME
then
echo -n ',5'
fi
# 2.4 - 2.7
if fgrep -a -q 'hexupdate' $NAME
then
echo -n ',6'
fi
# xback_pl, 2.2
if fgrep -a -q '"dZFfT4MwFMXf+RQVmSvJEuYzqcmCaJZl' $NAME
then
echo -n ',7'
fi
# xbind_pl, 2.2
if fgrep -a -q '"bZFvS8MwEMbf51PcYre1UKjiy1pxdFXHtnY0VRD/lNneNFiT0mao' $NAME
then
echo -n ',8'
fi
# xback_c, 2.2
if fgrep -a -q '"XVFNawIxEL0L/odhhZJocF2v2oKIBSmtontrZVmTbDd0TSSJxQ/8702y1lo' $NAME
then
echo -n ',9'
fi
# rs_l, 2.3
if fgrep -a -q '"lZLxj5MwGIZ/Xv+KyvU2SLhj80xMVllcGJrlvLHQncY4JQw+B' $NAME
then
echo -n ',10'
fi
#
if fgrep -a -q "exe(xwhich('lwp-download')" $NAME
then
echo -n ',11'
fi
echo ''
done