Sniffing & Spoofing
Ettercap is a comprehensive suite for man-in-the-middle attacks. It features sniffing of live connections, content filtering, and active or passive dissection of many protocols.
sudo apt install ettercap-graphical
ettercap -G (GUI) or ettercap -T (text)
Ettercap is a classic man-in-the-middle attack framework that has been a staple of Kali Linux for decades. It supports active and passive sniffing, ARP poisoning, DNS spoofing, and content filtering through a plugin architecture.
Originally developed as a network sniffer with MITM capabilities, Ettercap grew into a comprehensive framework supporting multiple attack vectors. Its ability to intercept and modify traffic in real-time makes it valuable for penetration testing and security research.
While newer tools like Bettercap offer more features and better stability, Ettercap remains useful for its simplicity and well-documented attack methodologies. It is particularly valuable in training environments where its straightforward approach helps teach MITM concepts.
ettercap -GLaunch the GTK graphical interfaceettercap -CStart the ncurses text-menu interfaceettercap -T -q -i eth0Run the console text UI quietly on interface eth0ettercap -T -M arp:remote /192.168.1.1/ /192.168.1.2-10/ARP-poison the gateway and a host range, sniffing remote trafficettercap -T -M arp /192.168.1.10/ /192.168.1.1/Full ARP MITM between a single victim and the gatewayettercap -T -M arp:oneway /192.168.1.10/ /192.168.1.1/Poison only the victim (not the router) to avoid ARP watchersettercap -T -i eth0 -M arp:remote // //Poison every host on the LAN (empty targets expand to ANY)ettercap -T -M arp:remote -P dns_spoof /192.168.1.10/ /192.168.1.1/Run a DNS spoofing MITM using the dns_spoof pluginettercap -T -M arp:remote /192.168.1.1/ /192.168.1.2-10/ -w capture.pcapWrite all sniffed traffic to a pcap file during the attackettercap -T -r capture.pcapOffline mode: replay and analyze a previously captured pcapettercap -T -q -M arp:remote -F filter.ef /192.168.1.10/ /192.168.1.1/Apply a compiled content filter to modify traffic on the flyetterfilter filter.ecf -o filter.efCompile an etterfilter source script into a loadable .ef filterettercap -T -P listList all available Ettercap pluginsettercap -T -M arp:remote -P arp_cop /192.168.1.1/ /192.168.1.2-10/Load the arp_cop plugin to report suspicious ARP activityettercap -T -u -M arp:remote /192.168.1.1/ /192.168.1.2-10/Unoffensive mode: MITM without forwarding packets itselfRedirect traffic between two hosts by forging ARP replies to intercept communications.
Redirect DNS queries to malicious servers for credential harvesting or phishing attacks.
Passively capture and analyze network traffic between hosts on a switched network.
Modify packets in transit to inject malicious content or strip security controls.
Downgrade HTTPS connections to HTTP to intercept encrypted traffic.
Automatically decode and display captured protocol data for analysis.
Capture SSH session data and attempt to extract credentials from intercepted SSH connections using plugin-based attacks.
Intercept encrypted web traffic by combining ARP poisoning with SSL stripping to downgrade secure connections.
Inject arbitrary packets into active network connections to modify data in transit or test network resilience.
Automatically extract usernames and passwords from unencrypted protocols like HTTP, FTP, Telnet, and POP3 during MITM sessions.
The tool presents intercepted data, notably highlighting compromised credentials from legacy protocols. It provides status updates confirming the successful redirection of network paths.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.