PrintAvailableLists() public method

public PrintAvailableLists ( ) : void
return void
コード例 #1
0
        static void Main(string[] args)
        {
            if (args.Count() < 2)
            {
                Console.WriteLine("Usage: Google.SafeBrowsing.Example.exe google_api_key connection_string");
                return;
            }

            //chunk repository
            IChunkRepository repo = new SqlChunkRepository(args[1]);

            //get API key from the console
            var program = new Program(args[0], repo);


            //only two lists are used for actual operation
            //googpub-phish-shavar: A list of hashed suffix/prefix expressions representing sites 
            //                      that should be blocked because they are hosting phishing pages.
            //goog-malware-shavar: A list of suffix/prefix regular expressions representing sites 
            //                      that should be blocked because they are hosting malware pages.
            program.PrintAvailableLists();


            //get sample chunk of list goog-malware-shavar data
            //assume that we already have some chunks for both white and black lists
            program.GetMalwareDataChunks();


            //...
            program.GetFullLengthHash();


            Console.ReadLine();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            if (args.Count() < 2)
            {
                Console.WriteLine("Usage: Google.SafeBrowsing.Example.exe google_api_key connection_string");
                return;
            }

            //chunk repository
            IChunkRepository repo = new SqlChunkRepository(args[1]);

            //get API key from the console
            var program = new Program(args[0], repo);


            //only two lists are used for actual operation
            //googpub-phish-shavar: A list of hashed suffix/prefix expressions representing sites
            //                      that should be blocked because they are hosting phishing pages.
            //goog-malware-shavar: A list of suffix/prefix regular expressions representing sites
            //                      that should be blocked because they are hosting malware pages.
            program.PrintAvailableLists();


            //get sample chunk of list goog-malware-shavar data
            //assume that we already have some chunks for both white and black lists
            program.GetMalwareDataChunks();


            //...
            program.GetFullLengthHash();


            Console.ReadLine();
        }