File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -155,15 +155,15 @@ cd $SRC/suricata-verify/tests
155
155
i=0
156
156
mkdir corpus
157
157
set +x
158
- ls | grep -v corpus | while read t; do
158
+ find . -name " *.pcap " -exec dirname " {} " \; | while read t; do
159
159
cat $t /* .rules > corpus/$i || true ; echo -ne ' \0' >> corpus/$i ; cat $t /* .pcap >> corpus/$i || true ; i=$(( i+ 1 )) ;
160
160
done
161
161
set -x
162
162
zip -q -r $OUT /fuzz_sigpcap_seed_corpus.zip corpus
163
163
rm -Rf corpus
164
164
mkdir corpus
165
165
set +x
166
- ls | grep -v corpus | while read t; do
166
+ find . -name " *.pcap " -exec dirname " {} " \; | while read t; do
167
167
grep -v " #" $t /* .rules | head -1 | cut -d " (" -f2 | cut -d " )" -f1 > corpus/$i || true ; echo -ne ' \0' >> corpus/$i ; fpc_bin $t /* .pcap >> corpus/$i || rm corpus/$i ; i=$(( i+ 1 )) ;
168
168
echo -ne ' \0' >> corpus/$i ; python3 $SRC /fuzzpcap/tcptofpc.py $t /* .pcap >> corpus/$i || rm corpus/$i ; i=$(( i+ 1 )) ;
169
169
done
@@ -172,7 +172,7 @@ zip -q -r $OUT/fuzz_sigpcap_aware_seed_corpus.zip corpus
172
172
rm -Rf corpus
173
173
mkdir corpus
174
174
set +x
175
- ls | grep -v corpus | while read t; do
175
+ find . -name " *.pcap " -exec dirname " {} " \; | while read t; do
176
176
fpc_bin $t /* .pcap >> corpus/$i || rm corpus/$i ; i=$(( i+ 1 )) ;
177
177
python3 $SRC /fuzzpcap/tcptofpc.py $t /* .pcap >> corpus/$i || rm corpus/$i ; i=$(( i+ 1 )) ;
178
178
done
You can’t perform that action at this time.
0 commit comments