From a3155b70422eaebdfe91965f53e5d1bd49c7ffd5 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 13 Nov 2024 15:48:03 -0500 Subject: [PATCH] tcpreflect --- scripts/tcpreflect | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/tcpreflect diff --git a/scripts/tcpreflect b/scripts/tcpreflect new file mode 100755 index 0000000..81710bb --- /dev/null +++ b/scripts/tcpreflect @@ -0,0 +1,11 @@ +#! /bin/bash +set -e + +# Require a port +if [ -z "$1" ]; then + echo "Usage: $0 " + exit 1 +fi + +echo "Reflecting all TCP traffic on port $1" +ncat --broker --listen -p "$1" \ No newline at end of file