-
Notifications
You must be signed in to change notification settings - Fork 0
/
newsfeed.php
136 lines (127 loc) · 5 KB
/
newsfeed.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php
/*
* Copyright (c) 2017 António 'Tó' Godinho <to@isec.pt>.
* Copyright (c) 2018 JP P
* This program is free software; Distributed under the terms of the GNU GPL v3.
*/
require_once './top.php';
include "./amilogged.php";
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<title>OpenArmor GUI</title>
<?php
include './page_refresh.php';
include './run_his.php';
?>
<link href="./css/style.css" rel="stylesheet" type="text/css"/>
<link href="./css/sticky-footer.css" rel="stylesheet">
</head>
<body>
<?php
$glb_OpenArmordb = 0;
include './header.php';
?>
<div class="row">
<br/>
</div>
<div class="container-fluid" style="padding-top: 80px;">
<div class="row">
<div class="col-lg-6">
<ul class="nav nav-pills" role="tablist" style="width: 100%;">
<li role="presentation" class="active" style="width: 100%;"><a href="#" style="font-weight: 800">Rule
Trend Analysis (~3.5 hours)</a></li>
</ul>
</div>
<div class="col-lg-6">
<ul class="nav nav-pills" role="tablist" style="width: 100%;">
<li role="presentation" class="active" style="width: 100%;"><a href="#" style="font-weight: 800">Rule
Trend Analysis (~28 hours)</a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<?php
# Set vars for this trend analysis
$trend_window = 10000;
$lastfullblock = intval(substr(time(), 0, 6) . "0000");
?>
<small>Comparing Level <?php echo $glb_trendlevel; ?>+ over
Period <?php echo date("Y/m/d G:i:s", $lastfullblock - $trend_window) . " -> " . date("Y/m/d G:i:s", $lastfullblock) . " over the last " . $glb_trendweeks ?>
weeks
</small>
<br/>
<div style="max-height:300px; overflow:auto;">
<?php
include "./php/newsfeed_trend.php";
?>
</div>
</div>
<div class="col-lg-6">
<?php
# Set vars for this trend analysis
$trend_window = 100000;
$lastfullblock = intval(substr(time(), 0, 5) . "00000");
?>
<small>Comparing Level <?php echo $glb_trendlevel; ?></small>+ over
Period <?php echo date("Y/m/d G:i:s", $lastfullblock - $trend_window) . " -> " . date("Y/m/d G:i:s", $lastfullblock) . " over the last " . $glb_trendweeks ?>
weeks
<br/>
<div style="max-height:300px; overflow:auto;">
<?php include "php/newsfeed_trend.php"; ?>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<ul class="nav nav-pills" role="tablist" style="width: 100%;">
<li role="presentation" class="active" style="width: 100%;"><a href="#" style="font-weight: 800">Alert
Threat Feed</a></li>
</ul>
</div>
<div class="col-lg-6">
<ul class="nav nav-pills" role="tablist" style="width: 100%;">
<li role="presentation" class="active" style="width: 100%;"><a href="#" style="font-weight: 800">IPs
Trending</a></li>
</ul>
</div>
<div class="col-lg-6">
<?php
# Set vars for this trend analysis
$trend_window = 1000000;
$lastfullblock = intval(substr(time(), 0, 5) . "000000");
?>
<small>Grouped list of most important alerts over the last <?php echo $glb_threatdays; ?></small> days,
level <?php echo $glb_threatdays; ?>+.
<br/>
<div style="max-height:300px; overflow:auto;">
<?php include './php/newsfeed_threat.php'; ?>
</div>
</div>
<div class="col-lg-6">
<?php
# Set vars for this trend analysis
$trend_window = 10000;
$lastfullblock = intval(substr(time(), 0, 5) . "0000");
?>
<div class="introbody" style='height:25px;padding-bottom:10px;'>Top <span
class='tw'><?php echo $glb_trendip_top; ?></span> IPs appear most in the logs over the last
<span class='tw'><?php echo $glb_threatdays ?></span> days. One alert may span multiple groups<br><br>
</div>
<div style="max-height:300px; overflow:auto;">
<?php include './php/newsfeed_trendip.php'; ?>
</div>
</div>
</div>
<div class='clr'></div>
<?php
include 'footer.php';
?>