diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-07-02 20:15:16 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-07-02 20:22:58 +0200 |
commit | ae89831055afd447217eab9d61e5246ed08144f4 (patch) | |
tree | ae3c8c3880142c52f4420ae301d1f595188dc3a0 /wireshark | |
parent | 08698c65e5922774ad3e2b8fd18848c755145942 (diff) |
added shell script to download wireshark fuzzing traces, can be used in combination with ./tests/do.sh
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'wireshark')
-rwxr-xr-x | wireshark/download-fuzz-traces.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wireshark/download-fuzz-traces.sh b/wireshark/download-fuzz-traces.sh new file mode 100755 index 000000000..4f580a121 --- /dev/null +++ b/wireshark/download-fuzz-traces.sh @@ -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 |