示例#1
0
    $arrayData = 'data=' . implode('__', $return) . '&plugin_id=' . $plugin_id . '&plugin_sid=' . $plugin_sid;
    ?>
                                    &nbsp;<a href="<?php 
    echo $osvdb_url_keyword . urlencode(implode(" ", $return));
    ?>
" title="<?php 
    echo _("Info from OSVDB");
    ?>
" target="osvdb"><img src="../pixmaps/cve.gif" border="0" align="abdmiddle"></a>
                                    <?php 
}
echo '                </TD>
                    </TR>
                    <TR>
                        <th>' . _("Product Type") . '</th>
                        <TD>' . GetSourceTypeFromPluginID($plugin_id, $db) . '</TD>
                    </TR>
                    <TR>
                        <th>' . _("Additional Info") . '</th>
                        <TD>' . ($htmlTriggeredSignature[0] ? $htmlTriggeredSignature[0] : $empty) . '</TD>
                    </TR>
                 </TABLE>
            </div>
        </div>
';
/* Summary Bar */
echo '<TABLE class="siem_table">
      <TR>
           <th class="autow">' . _("Priority") . '</th>
           <th class="autow">' . _("Reliability") . '</th>
           <th class="autow">' . _("Risk") . '</th>
 }
 $cell_align['SENSOR'] = "center";
 $e_url = Menu::get_menu_url("base_qry_main.php?new=2&num_result_rows=-1&submit=Query+DB&current_view=-1&ctx={$ctx}", 'analysis', 'security_events', 'security_events');
 $cell_data['ENTITY'] = '<a class="trlnk" href="' . $e_url . '">' . Util::htmlentities(!empty($entities[$ctx]) ? $entities[$ctx] : _("Unknown")) . '</a>';
 $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"];