コード例 #1
0
                    <TR>
                        <th>' . _("Triggered Signature") . '</th>
                        <th>' . _("Event Type ID") . '</th>
                        <th>' . _("Category") . '</th>
                        <th>' . _("Sub-Category") . '</th>
					</TR>
                    <TR>
                        <TD><a href="javascript:;" class="trlnka" id="' . $plugin_id . ';' . $plugin_sid . '">';
$htmlTriggeredSignature = str_replace("##", "", BuildSigByPlugin($plugin_id, $plugin_sid, $db));
// Extradata translation adding
$myrow2['filename'] = $myrow6['filename'];
$myrow2['username'] = $myrow6['username'];
for ($k = 1; $k <= 9; $k++) {
    $myrow2['userdata' . $k] = $myrow6['userdata' . $k];
}
echo TranslateSignature($htmlTriggeredSignature, $myrow2) . '</a></TD>
                        <TD>' . $plugin_sid . '</TD>
                        <TD>' . $cat . '</TD>
                        <TD>' . $subcat . '</TD>
                    </TR>
                  </TABLE>
                  <br/>
                  <TABLE class="table_list">
                    <TR>
                        <th>' . _("Data Source Name") . '</th>
                        <th>' . _("Product Type") . '</th>
                        <th>' . _("Data Source ID") . '</th>
					</TR>
                    <TR>
                        <TD>' . $plugin_name . '</TD>
                        <TD>' . GetSourceTypeFromPluginID($plugin_id, $db) . '</TD>
コード例 #2
0
ファイル: base_qry_alert.php プロジェクト: alienfault/ossim
    }
    if (empty($dst_loc) && $record->country_name != '') {
        $dst_loc = '<img src="../pixmaps/flags/' . strtolower($record->country_code) . '.png"/> <a target="_blank" href="' . $gmaps_url . '">' . $record->country_name . '</a>';
    }
}
$dst_loc = str_replace('__LAT__', $src_latitude, str_replace('__LONG__', $src_longitude, $dst_loc));
$dbo->close($_conn);
// Signature
$htmlTriggeredSignature = explode("##", BuildSigByPlugin($plugin_id, $plugin_sid, $db));
// Extradata translation adding
$myrow2['filename'] = $myrow6['filename'];
$myrow2['username'] = $myrow6['username'];
for ($k = 1; $k <= 9; $k++) {
    $myrow2['userdata' . $k] = $myrow6['userdata' . $k];
}
$signature = TranslateSignature($htmlTriggeredSignature[1], $myrow2);
// VIEW
$back = "<a href=\"base_qry_main.php?num_result_rows=-1&submit=Query+DB&caller=&pag={$pag}&current_view={$pag}\">" . _('Security Events') . "</a>";
if (!array_key_exists("minimal_view", $_GET)) {
    PrintPacketLookupBrowseButtons2($seq, $tmp_sql, $sort_sql[0] . $from . $where, $db, $previous, $next);
    ?>
<!-- Breadcrum -->
<div id="bread_crumb" class="av_breadcrumb">
    <div class="av_breadcrumb_item av_link"><?php 
    echo $back;
    ?>
</div>
    <div class="av_breadcrumb_separator"></div>
    <div class="av_breadcrumb_item last"><?php 
    echo $htmlTriggeredSignature[1];
    ?>
コード例 #3
0
ファイル: base_qry_sqlcalls.php プロジェクト: jhbsz/ossimTest
 $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"];
 }
 if ($debug_mode > 1) {
     SQLTraceLog("\n\n");
     SQLTraceLog(__FILE__ . ":" . __LINE__ . ":\n############## <calls to BuildSigByID> ##################");
 }
 // SIGNATURE
 $current_sig = TranslateSignature($current_sig, $myrow);
 $current_sig_txt = trim(html_entity_decode(strip_tags($current_sig)));
 //$current_sig_txt = BuildSigByID($myrow[2], $myrow["sid"], $myrow["cid"], $db, 2);
 if ($debug_mode > 1) {
     SQLTraceLog(__FILE__ . ":" . __LINE__ . ":\n################ </calls to BuildSigByID> ###############");
     SQLTraceLog("\n\n");
 }
 $current_otype = $myrow["ossim_type"];
 $current_oprio = $myrow["ossim_priority"];
 $current_oreli = $myrow["ossim_reliability"];
 $current_oasset_s = $myrow["ossim_asset_src"];
 $current_oasset_d = $myrow["ossim_asset_dst"];
 $current_oriskc = $myrow["ossim_risk_c"];
 $current_oriska = $myrow["ossim_risk_a"];
 if ($portscan_payload_in_signature == 1) {
     /* fetch from payload portscan open port number */