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>
This commit is contained in:
Toni Uhlig
2020-07-02 20:22:58 +02:00
parent 08698c65e5
commit ae89831055
+10
View File
@@ -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