Example #1
0
        $txt_temp = '';
        $hostname_temp = Host::ip2hostname($conn, $vulnerability_data->get_ip());
        if ($hostname_temp != $vulnerability_data->get_ip()) {
            $txt_temp .= $hostname_temp . ' - ';
        }
        if ($linkedocs = Repository::have_linked_documents($conn, $vulnerability_data->get_ip(), 'host')) {
            $txt_temp .= "<a href=\"javascript:;\" onclick=\"GB_edit('../repository/repository_list.php?keyname=" . urlencode($vulnerability_data->get_ip()) . "&type=host')\" class='blue' target='main'>[" . $linkedocs . "] " . _('Knowledge DB') . "</a>";
        }
        if ($txt_temp != '') {
            $txt_temp = ' (' . $txt_temp . ')';
        }
        echo "<strong>IP:</strong> " . $vulnerability_data->get_ip() . $txt_temp . "<br>";
        echo "<strong>Port:</strong> " . $vulnerability_data->get_port() . "<br/>";
        echo "<strong>Scanner ID:</strong> " . $nessus_id . "<br/>";
        echo "<strong>Risk:</strong> " . $vulnerability_data->get_risk() . "<br/>";
        echo "<strong>Description:</strong> " . Osvdb::sanity($vulnerability_data->get_description()) . "<br/>";
    }
} elseif ($ref == 'Custom') {
    $custom_list = $incident->get_custom($conn);
    echo "<table class='noborder' width='100%' id='custom_table'>";
    foreach ($custom_list as $custom) {
        echo "<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<td class='left noborder' align='middle'><strong>" . $custom[0] . ":</strong></td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<td class='left'>" . Incident::format_custom_field($custom[3], $id, $custom[1], $custom[2]) . "</td>\n\t\t\t\t\t\t\t\t\t\t\t\t  </tr>\n";
    }
    echo "</table>";
}
?>
								
								</td>
							</tr>
						</table>
					</td>
Example #2
0
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
****************************************************************************/
/**
* Class and Function List:
* Function list:
* Classes list:
*/
require_once 'classes/Session.inc';
require_once 'classes/Security.inc';
Session::logcheck("MenuIncidents", "Osvdb");
require_once 'classes/Osvdb.inc';
require_once 'ossim_db.inc';
$db = new ossim_db();
$conn = $db->osvdb_connect();
$osvdb_id = intval(GET("id"));
$osvdb = Osvdb::get_osvdb($conn, $osvdb_id);
?>

<html>
<head>
  <title> <?php 
echo gettext("OSSIM Framework");
?>
 </title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  <link rel="stylesheet" type="text/css" href="../style/style.css"/>
</head>
<body>
<table align="center" width="100%">
	<tr>