Tiny perl script for UDP flooding

Sometimes it is necessary to perform UDP flood towards some network device(s) in order to test its behavior in stress… Actually I am sure that every system administrator might use this small perl script for this purpose. Certainly there are many special programs for this but believe me that it is much more easier to do the following:

1. #touch > /tmp/flood.pl
2. #chmod +x /tmp/flood.pl
3. Copy the this code to /tmp/flood.pl:

4. Then /tmp/flood.pl 192.168.0.1 0 0 0, where 192.168.0.1 is IP you would like to flood with huge amount of UDP datagrams.

Thanks to Ivan Pepelnjak from http://ioshints.blogspot.com/.

 
 
» You might also be interested in the following articles:
CGI Perl scripts debugging (solve 500 Internal Server Error)
Tiny bash scripts: check Internet connection availability
Access to sqlite3 database through perl (script example)
Web server oneliner with bash
Automatic "zombie" processes killing (shell script)



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!

5 Responses to “Tiny perl script for UDP flooding”


  1. 1 Colby

    hey i dont get this i did it to my friends ip he said it was okay on xbox and i lag my self out nothing happened to him email me i dont get it

  2. 2 Liam

    That’s because you’re maxing out your upload. Obviously it’s not going to affect him in anyway. You shouldn’t be trying to do this to other, this is an illegal form of DoS. Anyways, if you try using a server instead of you connection, you’ll see it will take people offline.

    This shouldn’t be used for malicious intent. You need a good connection to handle the packets being sent and recieved.

  3. 3 Liam

    Also, you should limit the amount of packets being sent. This can be used for illegal purposes. Also, other scripts are easier to use because it doesn’t just flood it directly. This is a very poorly made script and whoever the author is should try rewriting it properly with the proper modules.

  4. 4 CX crew

    Hey im luke I was wondering how to use this script, do you use it in mIRC, i asked my friend dabba and he said that its not for mIRC he said its for xchat or msn addon.

    Thanks for any help.

  5. 5 kelsey

    you need a perl interpreter or upload it to a hosting provider that supports perl scripts and sockets (they usually dont).. it’s allot more powerful when run from a server than your own little computer.

Leave a Reply




Friendly Sites:Who is behind Linux Screw?
GeekyBits³ | Bash Cures Cancer | OMG! Ubuntu!
My SysAd Blog | Web Upd8
ZEPY | Linux config Wiki | Planet Sysadmin
a non-geek's linux notes | Linux Today
Linux HOWTOs, Tutorials & Projects with Adam Palmer | LinuxAlt.Com
My name is Artem N. (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››