https://ettercap.github.io/ettercap/
Ettercap is a comprehensive suite for man in the middle attacks. It features sniffing of live connections, content filtering on the fly and many other interesting tricks. It supports active and passive dissection of many protocols and includes many features for network and host analysis.
Installation
apt-get
1. install ettercap
sudo apt-get install zlib1g zlib1g-devsudo apt-get install build-essentialsudo apt-get install ettercap2. for installing ettercap-graphical, use the command
sudo apt-get install ettercap-graphical3. for installing ettercap-text only, use the command
sudo apt-get install ettercap-text-only4. starting ettercap
For opening ettercap in graphic mode
sudo ettercap -Gsudo ettercap -G -i {interface}For text mode, use
sudo ettercap -Tsudo ettercap -T -i {interface}