aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2020-07-03 00:45:45 +0200
committerGitHub <noreply@github.com>2020-07-03 00:45:45 +0200
commitf7b91b46fa621529d82158fda0f4343a776b7b86 (patch)
tree4a93d2d63d6b163c37d21a5b28955b23740fe0f0
parent143fcf0b0ef8a9e3b05b0849e3123a51805808ea (diff)
parentae89831055afd447217eab9d61e5246ed08144f4 (diff)
Merge pull request #947 from lnslbrty/add/download-script-wireshark-traces
added shell script to download wireshark traces, can be used in combi…
-rwxr-xr-xwireshark/download-fuzz-traces.sh10
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