Esempio n. 1
0
 $cell_data['CID'] = $myrow["cid"];
 $cell_align['CID'] = "center";
 $cell_data['PLUGIN_ID'] = $myrow["plugin_id"];
 $cell_align['PLUGIN_ID'] = "center";
 $cell_data['PLUGIN_SID'] = $myrow["plugin_sid"];
 $cell_align['PLUGIN_SID'] = "center";
 if (in_array("PLUGIN_NAME", $_SESSION['views'][$_SESSION['current_cview']]['cols']) || in_array("PLUGIN_DESC", $_SESSION['views'][$_SESSION['current_cview']]['cols'])) {
     list($cell_data['PLUGIN_NAME'], $cell_data['PLUGIN_DESC']) = GetPluginNameDesc($myrow["plugin_id"], $db);
     $cell_align['PLUGIN_NAME'] = $cell_align['PLUGIN_DESC'] = "left";
 }
 if (in_array("PLUGIN_SOURCE_TYPE", $_SESSION['views'][$_SESSION['current_cview']]['cols'])) {
     $cell_data['PLUGIN_SOURCE_TYPE'] = $opensource ? _("Only in Profesional version") : GetSourceType($myrow["plugin_id"], $db);
     $cell_align['PLUGIN_SOURCE_TYPE'] = "center";
 }
 if (in_array("PLUGIN_SID_CATEGORY", $_SESSION['views'][$_SESSION['current_cview']]['cols']) || in_array("PLUGIN_SID_SUBCATEGORY", $_SESSION['views'][$_SESSION['current_cview']]['cols'])) {
     list($cell_data['PLUGIN_SID_CATEGORY'], $cell_data['PLUGIN_SID_SUBCATEGORY']) = $opensource ? array(_("Only in Profesional version"), _("Only in Profesional version")) : GetCategorySubCategory($myrow["plugin_id"], $myrow["plugin_sid"], $db);
     $cell_align['PLUGIN_SID_CATEGORY'] = $cell_align['PLUGIN_SID_SUBCATEGORY'] = "center";
 }
 //
 $current_sip32 = $myrow["ip_src"];
 $current_sip = baseLong2IP($current_sip32);
 $current_dip32 = $myrow["ip_dst"];
 $current_dip = baseLong2IP($current_dip32);
 $current_proto = $myrow["ip_proto"];
 $current_sport = $current_dport = "";
 if ($myrow["layer4_sport"] != 0) {
     $current_sport = ":" . $myrow["layer4_sport"];
 }
 if ($myrow["layer4_dport"] != 0) {
     $current_dport = ":" . $myrow["layer4_dport"];
 }
Esempio n. 2
0
    echo _('Learn More');
    ?>
</a></li>
            </ul>
        </div>
    </div>
</div>
<?php 
    // In graybox external minimal view (no pagging)
} elseif (!array_key_exists("noback", $_GET)) {
    $back = str_replace(_('Security Events'), _('Back'), $back);
    echo "<div align='center'>{$back}</div><br/>";
}
$txtzone = "<a href=\"javascript:;\" class=\"tzoneimg\" txt=\"<img src='../pixmaps/timezones/" . rawurlencode(Util::timezone($tz)) . ".png' width='400' height='205' border=0>\">" . Util::timezone($tz) . "</a>";
// Taxonomy
list($cat, $subcat) = GetCategorySubCategory($plugin_id, $plugin_sid, $db);
// Risk & Proto
$ossim_risk = $ossim_risk_c < $ossim_risk_a ? $ossim_risk_a : $ossim_risk_c;
$p_name = Protocol::get_protocol_by_number($ip_proto, TRUE);
if (FALSE === $p_name) {
    $p_name = _('UNKNOWN');
}
$otx_link = '<a class="trlnk __CLASS__" href="#" txt="__TOOLTIP__" onclick="GB_show(\'' . _("OTX Details") . '\',\'' . str_replace('__EVENTID__', $eid, $otx_detail_url) . '\',500,\'80%\');return false">__VALUE__</a>';
?>

<script type="text/javascript" src="../js/utils.js"></script>
<script type="text/javascript" src="../js/av_map.js.php"></script>
<script type="text/javascript" src="../js/notification.js"></script>
<?php 
if (array_key_exists("minimal_view", $_GET)) {
    echo '<style type="text/css">body { margin:5px 25px !important } </style>';
 $cell_align['ENTITY'] = "center";
 $cell_data['ENTITY'] = Util::htmlentities(!empty($entities[$ctx]) ? $entities[$ctx] : _("Unknown"));
 $cell_data['PLUGIN_ID'] = $myrow["plugin_id"];
 $cell_align['PLUGIN_ID'] = "center";
 $cell_data['PLUGIN_SID'] = $myrow["plugin_sid"];
 $cell_align['PLUGIN_SID'] = "center";
 if (in_array("PLUGIN_NAME", $_SESSION['views'][$_SESSION['current_cview']]['cols']) || in_array("PLUGIN_DESC", $_SESSION['views'][$_SESSION['current_cview']]['cols'])) {
     list($cell_data['PLUGIN_NAME'], $cell_data['PLUGIN_DESC']) = GetPluginNameDesc($myrow["plugin_id"], $db);
     $cell_align['PLUGIN_NAME'] = $cell_align['PLUGIN_DESC'] = "left";
 }
 if (in_array("PLUGIN_SOURCE_TYPE", $_SESSION['views'][$_SESSION['current_cview']]['cols'])) {
     $cell_data['PLUGIN_SOURCE_TYPE'] = GetSourceTypeFromPluginID($myrow["plugin_id"], $db);
     $cell_align['PLUGIN_SOURCE_TYPE'] = "center";
 }
 if (in_array("PLUGIN_SID_CATEGORY", $_SESSION['views'][$_SESSION['current_cview']]['cols']) || in_array("PLUGIN_SID_SUBCATEGORY", $_SESSION['views'][$_SESSION['current_cview']]['cols'])) {
     list($cell_data['PLUGIN_SID_CATEGORY'], $cell_data['PLUGIN_SID_SUBCATEGORY']) = GetCategorySubCategory($myrow["plugin_id"], $myrow["plugin_sid"], $db);
     $cell_align['PLUGIN_SID_CATEGORY'] = $cell_align['PLUGIN_SID_SUBCATEGORY'] = "center";
 }
 $cell_data['DEVICE'] = $deviceips[$myrow["device_id"]] != "" ? $deviceips[$myrow["device_id"]] : "-";
 $cell_align['DEVICE'] = "center";
 // Source Host
 $current_src_host = $myrow["src_host"];
 $current_sip32 = $myrow["ip_src"];
 $current_sip = inet_ntop($current_sip32);
 // Destination Host
 $current_dst_host = $myrow["dst_host"];
 $current_dip32 = $myrow["ip_dst"];
 $current_dip = inet_ntop($current_dip32);
 // Port / Protocol
 $current_proto = $myrow["ip_proto"];
 $current_sport = $current_dport = "";