Beispiel #1
0
        static void Main(string[] args)
        {
            var origins  = ContentExtractor.CsvReader <IdsTech>(@"E:\data\IDS\242.txt");
            var comparer = new IdsTech.IdsTechCoreCompare();
            var content  = new List <IdsTech>(origins.Distinct(comparer));

            //Console.WriteLine(Statics.Percentile(new double[] { 1,2,5,8,9}, .9));
            //TechAnalyzer.NumberAnalyzer(new List<IdsTech>(content));
            //Console.ReadKey();
            Console.WriteLine(content.Count());
            //TechAnalyzer.NumberAnalyzer(origins);
            Console.ReadKey();
        }
Beispiel #2
0
        public static void Counter()
        {
            var content = ContentExtractor.CsvReader <IdsTech>(@"E:\data\IDS\241.txt");

            var s = content.GroupBy(a => a.TargetIp).ToDictionary(g => g.Key, h => h.Count()).OrderByDescending(d => d.Value);

            int i = 0;

            foreach (var item in s)
            {
                Console.WriteLine(i++ + ":" + item.Value + " " + item.Key);
            }
            Console.WriteLine();

            Console.ReadKey();
        }