Пример #1
0
        public static void CreateConnection(Soket soket)
        {
            _soket = soket;

            ThreadPool.QueueUserWorkItem(Listener);

            Console.WriteLine("TcpServer: Connection succesfull");
        }
Пример #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Please, input message:");
            var message = Console.ReadLine();
            var client  = new Client("8080");
            var _soket  = new Soket();

            TcpServer.CreateConnection(_soket);

            _soket.SendMessage(TcpServer.Name, client.Name, message);

            var hacker = new Hacker(_soket);

            //hacker.TCPReset();
            // hacker.TCPFlooding();
            hacker.TCPHijacking();

            Console.Read();
            TcpServer.ServerStop();
        }
Пример #3
0
 public Hacker(Soket soket)
 {
     _soket = soket;
 }
Пример #4
0
 public void CreateConnection(Soket soket)
 {
     _soket = soket;
 }