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
155155i=0
156156mkdir corpus
157157set +x
158- ls | grep -v corpus | while read t; do
158+ find . -name " *.pcap " -exec dirname " {} " \; | while read t; do
159159cat $t /* .rules > corpus/$i || true ; echo -ne ' \0' >> corpus/$i ; cat $t /* .pcap >> corpus/$i || true ; i=$(( i+ 1 )) ;
160160done
161161set -x
162162zip -q -r $OUT /fuzz_sigpcap_seed_corpus.zip corpus
163163rm -Rf corpus
164164mkdir corpus
165165set +x
166- ls | grep -v corpus | while read t; do
166+ find . -name " *.pcap " -exec dirname " {} " \; | while read t; do
167167grep -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 )) ;
168168echo -ne ' \0' >> corpus/$i ; python3 $SRC /fuzzpcap/tcptofpc.py $t /* .pcap >> corpus/$i || rm corpus/$i ; i=$(( i+ 1 )) ;
169169done
@@ -172,7 +172,7 @@ zip -q -r $OUT/fuzz_sigpcap_aware_seed_corpus.zip corpus
172172rm -Rf corpus
173173mkdir corpus
174174set +x
175- ls | grep -v corpus | while read t; do
175+ find . -name " *.pcap " -exec dirname " {} " \; | while read t; do
176176fpc_bin $t /* .pcap >> corpus/$i || rm corpus/$i ; i=$(( i+ 1 )) ;
177177python3 $SRC /fuzzpcap/tcptofpc.py $t /* .pcap >> corpus/$i || rm corpus/$i ; i=$(( i+ 1 )) ;
178178done
You can’t perform that action at this time.
0 commit comments