crazy stone
crazy stone

Reputation: 13

tcpreplay how to add all pcap files under one directory to let the tcpreplay pcap files

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)

Upvotes: 0

Views: 1134

Answers (1)

Vardaangpt
Vardaangpt

Reputation: 11

You can use regex:

In case there are other files:

tcpreplay -i eth0 *pcap

Or in case only pcaps are there:

tcpreplay -i eth0 *

Upvotes: 1

Related Questions