Skip to content

Commit

Permalink
added shell script to download wireshark fuzzing traces, can be used …
Browse files Browse the repository at this point in the history
…in combination with ./tests/do.sh

Signed-off-by: Toni Uhlig <[email protected]>
  • Loading branch information
utoni committed Jul 2, 2020
1 parent 08698c6 commit ae89831
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wireshark/download-fuzz-traces.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

URL_PREFIX='https://www.wireshark.org/download/automated/captures/'
TRACES="$(wget --no-verbose -O - "${URL_PREFIX}" | sed -n 's|^.*<a href="\([^"]\+\).pcap">.*$|\1.pcap|gp')"
CURDIR="$(dirname ${0})/../tests/pcap"

for trace in ${TRACES}; do
destfile="${CURDIR}/${trace}"
test -r "${destfile}" || wget --no-verbose "${URL_PREFIX}${trace}" -O "${destfile}"
done

0 comments on commit ae89831

Please sign in to comment.