tcpreplay

Replay captured packets onto a network.

KaliParrotLinuxmedium

pkg: tcpreplay

tcpreplay re-sends pcap traffic at chosen speeds — for testing IDS/IPS, firewalls and network tooling.

Syntax

tcpreplay -i {iface} {cap.pcap}

Example

tcpreplay -i eth0 -t cap.pcap

Replays a capture at top speed onto eth0.

Advantages
  • Reproduce traffic for testing
  • Speed control
Disadvantages
  • Can disrupt live networks
  • Lab use recommended
Tags
#pcap#testing

Official docs: tcpreplay

Related commands

Frequently asked questions

What is tcpreplay used for?
tcpreplay re-sends pcap traffic at chosen speeds — for testing IDS/IPS, firewalls and network tooling.
What is an example tcpreplay command?
A common example is: tcpreplay -i eth0 -t cap.pcap — Replays a capture at top speed onto eth0.
Is tcpreplay part of Kali Linux?
Yes. tcpreplay ships with Kali Linux (and Parrot OS). If missing, install it with: sudo apt install tcpreplay.
What category of security tool is tcpreplay?
tcpreplay is a Sniffing & Spoofing tool with a medium-risk profile when run against a live target.

Try recon tools live

Run real scans against a domain you control, stage by stage.

Open the lab →