Пример #1
0
        /*
         * İlgili Taramanın Raporunu getirir.
         *
         */
        public void GetScanReport(ArachniManager manager, string scanID)
        {
            ScanReportDL scanReportDL = Report.ScanReport(manager, scanID);

            Console.WriteLine("Start Date Time: " + scanReportDL.StartDatetime
                              + "\nFinish Date Time: " + scanReportDL.FinishDatetime);
            foreach (var item in scanReportDL.Issues)
            {
                Console.WriteLine("\nIssue: " + item.Name + " - Severity: " + item.Severity);
            }
        }
Пример #2
0
        /*
         * Tarama raporunu kayıt eder (xml formatında masaüstüne) ve ScanReportDL nesnesini döndürür.
         * Retrieve a scan report
         */
        public ScanReportDL ScanReport(ArachniManager manager, string id)
        {
            id = Scan.GetID(id);
            string report = manager.GetScanReport(id, "xml");

            SaveReport(report);


            report = manager.GetScanReport(id, "json");
            ScanReportDL scanReportDL = JsonConvert.DeserializeObject <ScanReportDL>(report);

            //SaveReport(report);

            return(scanReportDL);
        }