get_Target_Details($_REQUEST['ste'], $_REQUEST['tgt'])[0]; $findings = $db->get_Finding($tgt, null, null, true); set_time_limit(0); ?> <?php print $tgt->get_Name(); ?> - Orphan Findings
$finding) { $pdi = $db->get_PDI($finding->get_PDI_ID()); $nessus = null; $cve = null; $iavm = null; $gd = $db->get_GoldDisk_By_PDI($pdi->get_ID()); $stigs = $db->get_STIG_By_PDI($pdi->get_ID()); if (!is_a($stigs, 'stig')) { die("Can't find the STIG for PDI {$pdi->get_ID()}"); } if (count($gd) == 1) { $gd = $gd[0]; } else { $gd = null; } $ia = $db->get_IA_Controls_By_PDI($pdi->get_ID()); print "" . PHP_EOL . "" . PHP_EOL . "" . PHP_EOL . "" . PHP_EOL . "" . PHP_EOL . "" . PHP_EOL; if (preg_match('/\d{5,6}/', $stigs->get_ID())) { $nessus = $db->get_Nessus($stigs->get_ID()); } elseif (preg_match('/CVE\-\d{4}\-\d{4}/', $stigs->get_ID())) { $cve = $db->get_CVE($stigs->get_ID()); } elseif (preg_match('/\d{4}\-[ABT]\-\d{4}/', $stigs->get_ID())) { $iavm = $db->get_IAVM($stigs->get_ID()); } else { } $matches = $db->get_Matching_PDIs($pdi, $nessus, $cve, $iavm); print ""; print "" . PHP_EOL; } ?>
Orphan ID VMS ID Cat IA Controls Short Title Possible Matches
" . $stigs->get_ID() . "" . (!is_null($gd) ? $gd->get_ID() : '') . "" . $pdi->get_Category_Level_String() . "" . "" . $pdi->get_Short_Title() . ""; foreach ($matches as $key => $match) { $short_desc = nl2br(htmlentities(substr($match['desc'], 0, 500))); $short_cont = nl2br(htmlentities(substr($match['check_content'], 0, 1000))); print ""; print "get_ID() . "\");'>" . $match['pdi_id'] . " (" . $match['score'] . ") " . $match['title'] . "
"; } print "