tcprewrite command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
tcprewrite: command not found
or when using sudo you get the following error message
sudo: tcprewrite: command not found
Solutions to tcprewrite: command not found
How To Fix tcprewrite: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu tcprewrite is provided by tcpreplay package.
tcpreplay is:
Tcpreplay is aimed at testing the performance of a NIDS by replaying real background network traffic in which to hide attacks. Tcpreplay allows you to control the speed at which the traffic is replayed, and can replay arbitrary tcpdump traces. Unlike programmatically-generated artificial traffic which doesn’t exercise the application/protocol inspection that a NIDS performs, and doesn’t reproduce the real-world anomalies that appear on production networks (asymmetric routes, traffic bursts/lulls, fragmentation, retransmissions, etc.), tcpreplay allows for exact replication of real traffic seen on real networks. It included the following executables tcpprep, tcprewrite, tcpreplay-edit, tcpbridge and pcap based captures are possible.
To fix this problem, we can install more using the command below.
sudo apt-get -y install tcpreplay
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install tcpreplay.
sudo apt -y install tcpreplay
Or if you have aptitude installed you can use the following command.
sudo aptitude install tcpreplay
Summary
In this tutorial we learn how to fix tcprewrite command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.