Adding Docker Container

Este commit está contenido en:
jesler
2020-02-24 08:56:30 -05:00
padre 5493fbb16c
commit 36eb702282
Se han modificado 143 ficheros con 53191 adiciones y 0 borrados

26
docker/tools/fix_checksum Archivo ejecutable
Ver fichero

@@ -0,0 +1,26 @@
#!/usr/bin/env bash
# If you want to randomize the IP SRC/DST use: --seed=423
if test -z "$1"
then
echo "usage: $(basename $0) <pcap> [ random ]"
echo "random is used if you would like to rerwite the src/dst ips to something random"
echo
exit 1
elif test ! -e "$1"
then
echo "ERROR: $1 doesn't exist"
exit 1
fi
if test ! -z "$2"
then
random="--seed=$RANDOM"
else
random=""
fi
cp $1 $1.orig
tcprewrite --fixcsum -i $1 -o $1.tmp $random
mv -v $1.tmp $1