コード例 #1
0
        public static void Main(string[] args)
        {
            string zapProxy = "http://localhost:8088";

            string baseURL = "http://localhost:5000";

            log.Info("ZapTest!");
            ZapSecurityScanner zss = new ZapSecurityScanner();

            log.Info("Starting ZAP Test");
            zss.SetupSecurityScan(zapProxy, baseURL);

            // access urls .. run browser automation
            // this creates Http traffic flow through ZAP
            GetUrls(zapProxy, baseURL);

            // start scan now that we have URLs and session parameter data captured to test
            zss.StartSecurityScan("True");  // Recurse links found.  False : stay at home

            // get results for Medium or higer severity with Medium or higher confidence
            string result = zss.GetSecurityScanResult("Low", "Low", 10);

            Console.WriteLine(result);
            String report = zss.GetXMLReport();

            Console.WriteLine(report);
            // shutdown scanner
            //Console.Read();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            ZapSecurityScanner zss = new ZapSecurityScanner();

            Console.WriteLine("Starting ZAP Test");
        }