示例#1
0
      </TR>
      <TR>
           <TD class="center">' . $ossim_priority . '</TD>
           <TD class="center">' . $ossim_reliability . '</TD>
           <TD class="center">' . $ossim_risk . '</TD>
           <TD class="center">' . ($otxiocs ? str_replace('__CLASS__', '', str_replace('__VALUE__', $otxiocs, $otx_link)) : $otxiocs) . '</TD>
      </TR>
     </TABLE>';
/* SRC & DST */
$result4->baseFreeRows();
$result2->baseFreeRows();
/* MongoDB Inventory data */
require_once "classes/inventory.inc";
$idb = new Idmdb();
$src_host = $dst_host = false;
if ($_SESSION['_idm'] && $idb->available() == "") {
    $src_host = $idb->get_properties($myrow2['src_host'], $myrow2['timestamp']);
    $dst_host = $idb->get_properties($myrow2['dst_host'], $myrow2['timestamp']);
}
echo '<div class="siem_detail_table">
          <div class="siem_detail_column_left">
                <div class="siem_detail_section">
                    <div class="siem_left">' . _("Source") . '</div>
                    <div class="siem_right">
                        <div id="' . $current_sip . ';' . $sip_aux . ';' . $myrow2["src_host"] . '" ctx="' . $ctx . '" class="HostReportMenu siem_cell">' . $ip_src_data . '</a></div>
                        <div class="siem_cell"></div>
                    </div>
                </div>
                <div class="siem_detail_content">';
echo '<div class="content_c">
                             <div class="content_l">' . _("Hostname") . ': ' . $idm_data["src_hostname"] . '</div>
                  <TR><TD CLASS="iptitle" ALIGN=CENTER ROWSPAN=2>FQDN</TD>
                       <TD class="header">' . gettext("Sensor") . ' ' . gettext("Name") . '</TD>
                  </TR>
                  <TR><TD class="plfield">' . (baseGetHostByAddr(inet_ntop($myrow4["ip"]), $db, $dns_cache_lifetime)) . '</TD>
                  </TR>
                 </TABLE>
            </TR>';
}*/
$result4->baseFreeRows();
echo '   </div></div>';
$result2->baseFreeRows();
// IDM => Host Inventory
require_once "classes/inventory.inc";
$idb = new Idmdb();
$src_host = $dst_host = false;
if ($_SESSION['_idm'] && $idb->available() == "") {
    $src_host = $idb->get_properties($myrow2['src_host'], $myrow2['timestamp']);
    $dst_host = $idb->get_properties($myrow2['dst_host'], $myrow2['timestamp']);
}
if ($src_host || $dst_host) {
    echo '<br><div class="siem_detail_table">
              <div class="siem_detail_section">' . _("Context") . '</div>
              <div class="siem_detail_content">
                  <table class="transparent w100 context_table">
                      <tr>
                         <td class="left_context_td">
                              <div class="siem_detail_subsection_h">' . gettext("Source") . '</div>
                              <TABLE class="table_list">
                                <TR>
                                    <th>' . _("Hostname") . '</th>
                                    <th>' . _("IP") . '</th>