From 808afbd4530833a427cc35feedb0fd7ad3e36cc9 Mon Sep 17 00:00:00 2001 From: giomba Date: Wed, 26 Jul 2023 10:51:59 +0200 Subject: [PATCH] Add tcpreplay. --- tcpreplay.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tcpreplay.md diff --git a/tcpreplay.md b/tcpreplay.md new file mode 100644 index 0000000..f7afa60 --- /dev/null +++ b/tcpreplay.md @@ -0,0 +1,11 @@ +# Replay trace +``` +tcpreplay -i eth0 capture.pcapng +``` + +# Replace IP address +Replace IP address of endpoint hosts (eg. new destination 10.0.0.2, new source 10.0.0.1): +``` +tcpprep --auto=server --pcap=sbirulo.pcapng --cachefile=stream.cache +tcprewrite --infile=original.pcapng --outfile=modified.pcapng --endpoints=10.0.0.2:10.0.0.1 --cachefile=stream.cache +```