0

the latest tcpreplay still only support to replay a file(files).

for example the command is tcpreplay -i eth0 sample.pcap sample1.pcap

I have over 100 pcaps that need to replay. they r all under folder is there a way to let tcpreplay plays all files under one directory ( including files from all sub-directories)

crazy stone
  • 13
  • 1
  • 3

1 Answers1

0

You can use regex:

In case there are other files:

tcpreplay -i eth0 *pcap

Or in case only pcaps are there:

tcpreplay -i eth0 *
user16217248
  • 3,119
  • 19
  • 19
  • 37