fuzz: some enhancements (#1827)
Load some custom configuration (like in the unit tests) and factorize some (fuzzing) common code. There is no way to pass file paths to the fuzzers as parameters. The safe solution seems to be to load them from the process working dir. Anyway, missing file is not a blocking error. Remove some dead code (found looking at the coverage report)
This commit is contained in:
@@ -51,7 +51,13 @@ fi
|
||||
|
||||
fuzzy_testing() {
|
||||
if [ -f ../fuzz/fuzz_ndpi_reader ]; then
|
||||
cp ../example/protos.txt .
|
||||
cp ../example/categories.txt .
|
||||
cp ../example/risky_domains.txt .
|
||||
cp ../example/ja3_fingerprints.csv .
|
||||
cp ../example/sha1_fingerprints.csv .
|
||||
../fuzz/fuzz_ndpi_reader -max_total_time="${MAX_TOTAL_TIME:-592}" -print_pcs=1 -workers="${FUZZY_WORKERS:-0}" -jobs="${FUZZY_JOBS:-0}" pcap/
|
||||
rm -f protos.txt categories.txt risky_domains.txt ja3_fingerprints.csv sha1_fingerprints.csv
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user