Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            XmlConfigurator.Configure();

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

            var scanner = new AsyncScanner();

            scanner.Scan(ipAddrs, ports).Wait();
        }
Ejemplo 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 AsyncScanner();

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