static void Main(string[] args)
		{
			XmlConfigurator.Configure();

			var ipAddrs = GenIpAddrs();
			var ports = new[] {21, 25, 80, 443, 3389 };

			var scanner = new SequentialScanner();
			scanner.Scan(ipAddrs, ports).Wait();
		}
Esempio n. 2
0
        static void Main(string[] args)
        {
            Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
            XmlConfigurator.Configure(LogManager.GetRepository(Assembly.GetCallingAssembly()), new FileInfo("log4net.config"));

            var ipAddrs = GenIpAddrs();
            var ports   = new[] { 21, 25, 80, 443, 3389 };

            var scanner = new SequentialScanner();

            scanner.Scan(ipAddrs, ports).Wait();
        }