checklist.inc - deleted duplicate BIND 9 checklist icon entry
finding.inc - removed ID property to prevent duplicate findings from being added to the table host_list.inc - deleted unused constructor import.inc - formatting db_schema.json - removed sagacity.findings.id field (making tgt_id and pdi_id new primary keys), and updated references Database_Baseline.zip - updated routines for above change background_results.php - fixed bug #19 export-ckl.php - performance adjustments parse_excel_echecklist.php - performance improvements, ensure duplicate findings are not created, make eChecklist true status, update for removing findings.id field parse_nvd_json_cve.php - convert reading json to array instead of object for reading CPEs (which were updated to CPE 2.3 instead of 2.2) parse_* - remove findings.id field database.inc - formatting, and update for removing findings.id field index.php - ensure user can't import a host list without uploading a host list file Fixed: #65, #51, #28, #27, #10
This commit is contained in:
@ -1142,7 +1142,7 @@ class nessus_parser extends scan_xml_parser
|
||||
}
|
||||
}
|
||||
else {
|
||||
$tmp = new finding(null, $this->tgt->get_ID(), $this->plugin->result->stig->get_PDI_ID(), $this->scan->get_ID(), $this->plugin->result->status, "[{$this->tgt->get_Name()}]: {$note}", finding::NC, "Nessus", 1);
|
||||
$tmp = new finding($this->tgt->get_ID(), $this->plugin->result->stig->get_PDI_ID(), $this->scan->get_ID(), $this->plugin->result->status, "[{$this->tgt->get_Name()}]: {$note}", finding::NC, "Nessus", 1);
|
||||
if (!is_null($pdi)) {
|
||||
$tmp->set_Category($pdi->get_Category_Level());
|
||||
}
|
||||
@ -1178,7 +1178,7 @@ class nessus_parser extends scan_xml_parser
|
||||
$stig = new stig($pdi_id, $this->plugin->result->stig, $this->plugin->desc);
|
||||
$this->db->add_Stig($stig);
|
||||
|
||||
$tmp = new finding(null, $this->tgt->get_ID(), $pdi->get_ID(), $this->scan->get_ID(), $this->plugin->result->status, "[" . $this->tgt->get_Name() . "]: " . $note, finding::NC, "Nessus", 1);
|
||||
$tmp = new finding($this->tgt->get_ID(), $pdi->get_ID(), $this->scan->get_ID(), $this->plugin->result->status, "[" . $this->tgt->get_Name() . "]: " . $note, finding::NC, "Nessus", 1);
|
||||
$tmp->set_Category($this->plugin->result->cat);
|
||||
|
||||
if (isset($this->new_findings[$tmp->get_PDI_ID()])) {
|
||||
@ -1215,10 +1215,8 @@ class nessus_parser extends scan_xml_parser
|
||||
}
|
||||
|
||||
if (is_a($finding, 'finding')) {
|
||||
/** @var finding $finding */
|
||||
$this->log->script_log("Updating finding");
|
||||
if (false) {
|
||||
$finding = new finding();
|
||||
}
|
||||
if ($this->debug) {
|
||||
$this->log->script_log("Finding exists: " . print_r($finding, true), E_DEBUG);
|
||||
}
|
||||
@ -1265,7 +1263,7 @@ class nessus_parser extends scan_xml_parser
|
||||
}
|
||||
else {
|
||||
$this->log->script_log("Adding new finding");
|
||||
$tmp = new finding(null, $this->tgt->get_ID(), $this->plugin->db_plugin->get_PDI_ID(), $this->scan->get_ID(), $this->plugin->result->status, $note, finding::NC, "Nessus", 1);
|
||||
$tmp = new finding($this->tgt->get_ID(), $this->plugin->db_plugin->get_PDI_ID(), $this->scan->get_ID(), $this->plugin->result->status, $note, finding::NC, "Nessus", 1);
|
||||
$tmp->set_Category($this->plugin->result->cat);
|
||||
|
||||
$this->new_findings[$tmp->get_PDI_ID()] = $tmp;
|
||||
|
Reference in New Issue
Block a user