Learn Python & Ethical Hacking From Scratch[arp]

hello everyone,

i am stuck at arpspoof. my code sending 70 packets only then it shows error “list index out of range” and also ip forwarding is not working when we changed ip_forward [0 to 1]

Hi Eagha,

Please run the following commands to flush all IP tables rules:

iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables -P FORWARD ACCEPT

Then enable IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

Then run the program again.