-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentrypoint.sh
executable file
·122 lines (99 loc) · 2.52 KB
/
entrypoint.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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#!/bin/bash
if [ $(nproc) -lt 4 ]; then
echo "nproc < 4"
exit 1
fi
export AFL_TESTCACHE_SIZE=500
tmux new -d -s afl-laf-intel -- afl-fuzz -i in -o /fuzz/mnt/ \
-M laf-intel \
./dnsmasq-fuzz-laf-intel
tmux new -d -s afl-asan -- afl-fuzz -i in -o /fuzz/mnt/ \
-S asan \
-L 0 \
-p lin \
./dnsmasq-fuzz-asan
#not worky
# tmux new -d -s afl-ubsan -- afl-fuzz -i in -o /fuzz/mnt/$(hostname)/out \
# -S ubsan \
# -L 0 \
# -p exploit \
# ./dnsmasq-fuzz-ubsan
# cmpog
tmux new -d -s afl-cmplog -- afl-fuzz -i in -o /fuzz/mnt/ \
-S cmplog \
-c ./dnsmasq-fuzz-cmplog \
./dnsmasq-fuzz-normal
# split-window
tmux split-window -h -t afl-cmplog: afl-fuzz -i in -o /fuzz/mnt/ \
-S cmplog-follow-trans \
-c ./dnsmasq-fuzz-cmplog \
-l 2AT \
./dnsmasq-fuzz-normal
if [ $(nproc) -lt 8 ]; then
echo "started 4 fuzzers"
sleep infinity
fi
export AFL_DISABLE_TRIM=1
tmux split-window -h -t afl-laf-intel: afl-fuzz -i in -o /fuzz/mnt/ \
-S laf-intel-2 \
-P explore \
-p coe \
./dnsmasq-fuzz-laf-intel
tmux new -d -s afl-normal -- afl-fuzz -i in -o /fuzz/mnt/ \
-S afl-normal \
-Z \
-P exploit \
-p explore \
./dnsmasq-fuzz-normal
tmux split-window -h -t afl-normal: afl-fuzz -i in -o /fuzz/mnt/ \
-S afl-normal-2 \
-L 0 \
./dnsmasq-fuzz-normal
tmux split-window -v -t afl-normal: afl-fuzz -i in -o /fuzz/mnt/ \
-S afl-normal-5 \
-L 0 \
./dnsmasq-fuzz-normal
if [ $(nproc) -lt 9 ]; then
echo "started 8 fuzzers"
sleep infinity
fi
tmux new -d -s afl-msan -- afl-fuzz -i in -o /fuzz/mnt/ \
-S msan \
-L 0 \
-p quad \
./dnsmasq-fuzz-msan
if [ $(nproc) -lt 10 ]; then
echo "started 9 fuzzers"
sleep infinity
fi
# no worky
# tmux new -d -s afl-cfisan -- afl-fuzz -i in -o /fuzz/mnt/$(hostname)/out \
# -S cfisan \
# -P explore \
# -p rare \
# ./dnsmasq-fuzz-cfisan
tmux new -d -s afl-cmplog-2 -- afl-fuzz -i in -o /fuzz/mnt/ \
-S cmplog-2 \
-c ./dnsmasq-fuzz-cmplog \
./dnsmasq-fuzz-normal
if [ $(nproc) -lt 11 ]; then
echo "started 10 fuzzers"
sleep infinity
fi
tmux split-window -h -t afl-normal: afl-fuzz -i in -o /fuzz/mnt/ \
-S afl-normal-3 \
-L 0 \
-P exploit \
./dnsmasq-fuzz-normal
if [ $(nproc) -lt 12 ]; then
echo "started 11 fuzzers"
sleep infinity
fi
tmux split-window -h -t afl-normal: afl-fuzz -i in -o /fuzz/mnt/ \
-S afl-normal-4 \
-L 0 \
-Z \
-a binary \
./dnsmasq-fuzz-normal
echo "started 12 fuzzers"
sleep infinity