2014-08-06 11:43:40 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
<title>Analysis Information Leak framework Dashboard</title>
|
2018-08-02 10:44:47 +02:00
|
|
|
<link rel="icon" href="{{ url_for('static', filename='image/ail-icon.png') }}">
|
2014-08-06 11:43:40 +02:00
|
|
|
|
|
|
|
<!-- Core CSS -->
|
|
|
|
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
|
2014-12-22 21:51:05 +01:00
|
|
|
<link href="{{ url_for('static', filename='font-awesome/css/font-awesome.css') }}" rel="stylesheet">
|
2014-08-06 11:43:40 +02:00
|
|
|
<link href="{{ url_for('static', filename='css/sb-admin-2.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='css/dygraph_gallery.css') }}" rel="stylesheet" type="text/css" />
|
2016-08-17 13:46:01 +02:00
|
|
|
<link href="{{ url_for('static', filename='css/switch_checkbox.css') }}" rel="stylesheet" type="text/css" />
|
2014-08-06 11:43:40 +02:00
|
|
|
<!-- JS -->
|
|
|
|
<script type="text/javascript" src="{{ url_for('static', filename='js/dygraph-combined.js') }}"></script>
|
2016-07-13 15:57:33 +02:00
|
|
|
<script src="{{ url_for('static', filename='js/jquery.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.flot.js') }}"></script>
|
2016-12-26 16:16:44 +01:00
|
|
|
<script src="{{ url_for('static', filename='js/jquery.flot.time.js') }}"></script>
|
2014-08-12 14:00:00 +02:00
|
|
|
<script>
|
2016-07-15 09:47:00 +02:00
|
|
|
window.default_minute = {{ default_minute }};
|
2016-08-02 16:39:57 +02:00
|
|
|
window.glob_tabvar = []; // Avoid undefined
|
2016-11-25 11:54:16 +01:00
|
|
|
window.threshold_stucked_module = {{ threshold_stucked_module }}
|
2014-08-12 14:00:00 +02:00
|
|
|
function update_values() {
|
2018-09-25 14:37:14 +02:00
|
|
|
$.getJSON("{{ url_for('dashboard.stuff') }}",
|
2014-08-12 14:00:00 +02:00
|
|
|
function(data) {
|
|
|
|
window.glob_tabvar = data;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
update_values();
|
|
|
|
</script>
|
2018-07-25 16:48:44 +02:00
|
|
|
<style>
|
|
|
|
.tableQueue tbody tr td,
|
|
|
|
.tableQueue tbody tr th,
|
|
|
|
.tableQueue thead tr td,
|
|
|
|
.tableQueue thead tr th{
|
|
|
|
padding: 1px;
|
|
|
|
}
|
|
|
|
</style>
|
2014-08-12 14:00:00 +02:00
|
|
|
|
2014-08-06 11:43:40 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div id="wrapper">
|
2018-06-11 10:21:11 +02:00
|
|
|
<nav class="navbar navbar-inverse navbar-static-top nav">
|
2016-08-11 10:55:51 +02:00
|
|
|
{% include 'header.html' %}
|
2014-08-06 11:43:40 +02:00
|
|
|
<!-- /.navbar-top-links -->
|
|
|
|
<div class="navbar-default sidebar" role="navigation">
|
|
|
|
<div class="sidebar-collapse">
|
|
|
|
<ul class="nav" id="side-menu">
|
|
|
|
<li class="sidebar-search">
|
2017-04-19 11:02:03 +02:00
|
|
|
<a href="{{ url_for('dashboard.index') }}"><img src="{{ url_for('static', filename='image/AIL.png') }}" /></a>
|
2014-12-24 15:42:20 +01:00
|
|
|
{% include 'searchbox.html' %}
|
2014-08-06 11:43:40 +02:00
|
|
|
<!-- /input-group -->
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<!-- /#side-menu -->
|
|
|
|
</div>
|
|
|
|
<!-- /.sidebar-collapse -->
|
2016-07-13 15:57:33 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2016-12-23 15:44:46 +01:00
|
|
|
<i class="fa fa-dashboard fa-fw"></i> Total pastes since {{ default_minute }} min
|
2016-07-13 15:57:33 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2016-12-23 15:44:46 +01:00
|
|
|
<div id="global" style="height: 90px; padding: 0px; position: relative;"></div>
|
2016-07-13 15:57:33 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <div id="Graph_paste_num" style="height:90px; width:100%;"></div> -->
|
2016-08-17 13:46:01 +02:00
|
|
|
<div class='pull_right'>
|
|
|
|
<label class="switch">
|
|
|
|
<input id="button-toggle-queues" class="switch-input" type="checkbox" checked>
|
|
|
|
<span class="switch-label" data-on="On" data-off="Off"></span>
|
|
|
|
<span class="switch-handle"></span>
|
|
|
|
</label>
|
|
|
|
<strong style="top: 3px; position: relative;">Display queues</strong>
|
|
|
|
<div>
|
2016-08-26 15:59:53 +02:00
|
|
|
<div>
|
|
|
|
<table id="queue-color-legend" class="table">
|
2016-08-26 15:27:37 +02:00
|
|
|
<thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-08-26 15:59:53 +02:00
|
|
|
<tr><td class="legendColorBox" style="vertical-align: ; "><div style="border:1px solid #ccc;padding:1px"><div style="width:100%;height:0;border:5px solid #d0e9c6;overflow:hidden"></div></div></td><td> Working queues</td></tr>
|
|
|
|
<tr><td class="legendColorBox" style="vertical-align: ;"><div style="border:1px solid #ccc;padding:1px"><div style="width:100%;height:0;border:5px solid #faf2cc;overflow:hidden"></div></div></td><td> Idling queues</td></tr>
|
2016-09-21 08:35:20 +02:00
|
|
|
<tr><td class="legendColorBox" style="vertical-align: ;"><div style="border:1px solid #ccc;padding:1px"><div style="width:100%;height:0;border:5px solid #ebcccc;overflow:hidden"></div></div></td><td> Stuck queues</td></tr>
|
2016-08-26 15:27:37 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="table-responsive", id="queueing" style="margin-top:10px; font-size: small;"></div>
|
2017-04-19 11:02:03 +02:00
|
|
|
<a href="{{ url_for('dashboard.index') }}"><img src="{{ url_for('static', filename='image/AIL.png') }}" /></a>
|
2014-08-06 11:43:40 +02:00
|
|
|
</div>
|
|
|
|
<!-- /.navbar-static-side -->
|
|
|
|
</nav>
|
|
|
|
<div id="page-wrapper">
|
2014-08-11 13:41:58 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
</br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-04-15 14:30:28 +02:00
|
|
|
{%if update_in_progress%}
|
|
|
|
<div class="alert alert-warning alert-dismissible fade in">
|
|
|
|
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
|
|
|
|
<strong>Warning!</strong> An Update is running on the background. Some informations like Tags, screenshot can be <strong>missing from the UI</strong>.
|
|
|
|
(<a href="#">Check Update Status</a>)
|
|
|
|
</div>
|
|
|
|
{%endif%}
|
|
|
|
|
2014-08-06 11:43:40 +02:00
|
|
|
<div class="row">
|
2016-12-23 16:15:05 +01:00
|
|
|
<div class="col-lg-6">
|
2016-12-23 15:44:46 +01:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2017-01-09 14:12:26 +01:00
|
|
|
<i class="fa fa-bar-chart-o fa-fw"></i> Feeder(s) Monitor:
|
2016-12-23 15:44:46 +01:00
|
|
|
</div>
|
2016-12-23 16:15:05 +01:00
|
|
|
<div id="panelbody" class="panel-body" style="height:420px;">
|
2016-12-23 15:44:46 +01:00
|
|
|
|
2017-01-09 14:12:26 +01:00
|
|
|
<strong>Processed pastes</strong>
|
2017-01-09 14:44:14 +01:00
|
|
|
<div id="Proc_feeder" style="height: 230px; padding: 0px; position: relative;"></div>
|
|
|
|
<hr style="border-top: 2px solid #eee; margin-top: 7px; margin-bottom: 7px;">
|
2018-07-10 10:49:02 +02:00
|
|
|
<strong>Filtered duplicates</strong>
|
2017-01-09 14:12:26 +01:00
|
|
|
<div id="Dup_feeder" style="height: 100px; padding: 0px; position: relative;"></div>
|
2016-12-26 16:16:44 +01:00
|
|
|
|
2016-12-23 15:44:46 +01:00
|
|
|
</div>
|
|
|
|
<!-- /.panel-body -->
|
|
|
|
</div>
|
|
|
|
<!-- /.panel -->
|
|
|
|
</div>
|
|
|
|
<!-- /.col-lg-6 -->
|
2016-12-23 16:15:05 +01:00
|
|
|
<div class="col-lg-6">
|
2016-12-23 15:44:46 +01:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<i class="fa fa-bar-chart-o fa-fw"></i> Queues Monitor
|
|
|
|
</div>
|
2014-08-06 11:43:40 +02:00
|
|
|
<div class="panel-body">
|
2016-12-23 15:44:46 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-6" id="Graph" style="height:195px; width:88%;"></div>
|
|
|
|
<div style="height:10px;"></div>
|
|
|
|
<div class="col-lg-6" id="Graph2" style="height:195px; width:88%;"></div>
|
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
2014-08-06 11:43:40 +02:00
|
|
|
</div>
|
2016-12-23 15:44:46 +01:00
|
|
|
<!-- /.panel-body -->
|
|
|
|
</div>
|
|
|
|
<!-- /.panel -->
|
|
|
|
</div>
|
|
|
|
<!-- /.col-lg-6 -->
|
2014-08-06 11:43:40 +02:00
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<i class="fa fa-tasks fa-fw"></i> Logs
|
2014-08-11 15:07:55 +02:00
|
|
|
<div class="pull-right">
|
|
|
|
<label style="padding-bottom:2px;">
|
|
|
|
<select class="form-control input-sm" id="log_select">
|
2018-07-26 11:35:54 +02:00
|
|
|
{% for log_selection in log_select %}
|
|
|
|
{% if log_selection == selected %}
|
|
|
|
<option value="{{ log_selection }}" selected>{{ log_selection }}</option>
|
|
|
|
{% else %}
|
|
|
|
<option value="{{ log_selection }}">{{ log_selection }}</option>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2014-08-11 15:07:55 +02:00
|
|
|
</select>
|
|
|
|
</label>
|
2016-08-17 11:25:05 +02:00
|
|
|
<input id="checkbox_log_info" type="checkbox" value="info"> INFO
|
2014-08-11 15:30:44 +02:00
|
|
|
<input id="checkbox_log_warning" type="checkbox" value="warning" checked="true"> WARNING
|
|
|
|
<input id="checkbox_log_critical" type="checkbox" value="critical" checked="true"> CRITICAL
|
2016-07-19 18:07:29 +02:00
|
|
|
|
2014-08-11 15:07:55 +02:00
|
|
|
</div>
|
2014-08-06 11:43:40 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="row">
|
2014-08-13 17:32:24 +02:00
|
|
|
<div class="col-lg-12">
|
|
|
|
<table class="table table-bordered table-hover table-striped" id="table_log">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Time</th>
|
|
|
|
<th>Channel</th>
|
|
|
|
<th>Level</th>
|
|
|
|
<th>Script Name</th>
|
|
|
|
<th>Source</th>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Paste name</th>
|
|
|
|
<th>Message</th>
|
2016-10-27 11:27:26 +02:00
|
|
|
<th>Actions</th>
|
2014-08-13 17:32:24 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="tab_body">
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-08-06 11:43:40 +02:00
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
|
|
|
</div>
|
|
|
|
<!-- /#page-wrapper -->
|
|
|
|
|
|
|
|
</div>
|
2019-04-15 14:30:28 +02:00
|
|
|
|
2017-04-19 11:02:03 +02:00
|
|
|
<script> var url_showSavedPath = "{{ url_for('showsavedpastes.showsavedpaste') }}"; </script>
|
2018-09-25 14:37:14 +02:00
|
|
|
<script type="text/javascript" src="{{ url_for('static', filename='js/indexjavascript.js')}}"
|
|
|
|
data-urlstuff="{{ url_for('dashboard.stuff') }}" data-urllog="{{ url_for('dashboard.logs') }}">
|
|
|
|
</script>
|
2014-08-06 11:43:40 +02:00
|
|
|
|
2016-08-11 10:55:51 +02:00
|
|
|
<script>
|
|
|
|
activePage = "page-index";
|
|
|
|
$("#"+activePage).addClass("active");
|
2018-07-25 16:48:44 +02:00
|
|
|
|
|
|
|
var tableBody = document.getElementById('tab_body')
|
2018-09-25 14:37:14 +02:00
|
|
|
$.getJSON("{{ url_for('dashboard.get_last_logs_json') }}", function(data) {
|
2018-07-25 16:48:44 +02:00
|
|
|
data.forEach(function (d) {
|
|
|
|
var tr = document.createElement('TR')
|
|
|
|
var time = document.createElement('TD')
|
|
|
|
var chan = document.createElement('TD')
|
|
|
|
var level = document.createElement('TD')
|
|
|
|
var scrpt = document.createElement('TD')
|
|
|
|
var src = document.createElement('TD')
|
|
|
|
var pdate = document.createElement('TD')
|
|
|
|
var nam = document.createElement('TD')
|
|
|
|
var msage = document.createElement('TD')
|
|
|
|
var inspect = document.createElement('TD')
|
|
|
|
|
2018-07-26 10:34:43 +02:00
|
|
|
tr.className = "warning";
|
2018-07-25 16:48:44 +02:00
|
|
|
time.appendChild(document.createTextNode(d.time))
|
|
|
|
chan.appendChild(document.createTextNode('Script'))
|
|
|
|
level.appendChild(document.createTextNode('WARNING'))
|
|
|
|
scrpt.appendChild(document.createTextNode(d.script))
|
|
|
|
src.appendChild(document.createTextNode(d.domain))
|
|
|
|
pdate.appendChild(document.createTextNode(d.date_paste))
|
|
|
|
nam.appendChild(document.createTextNode(d.paste))
|
|
|
|
|
|
|
|
var iconspan = document.createElement('SPAN');
|
|
|
|
var message = d.message.split(" ")
|
|
|
|
if (message[0] == "Detected"){
|
|
|
|
iconspan.className = "glyphicon glyphicon-eye-open";
|
|
|
|
}
|
|
|
|
else if (message[0] == "Checked"){
|
|
|
|
iconspan.className = "glyphicon glyphicon-thumbs-up";
|
|
|
|
}
|
|
|
|
iconspan.innerHTML = " ";
|
|
|
|
msage.appendChild(iconspan);
|
|
|
|
msage.appendChild(document.createTextNode(message.join(" ")));
|
|
|
|
|
2018-07-26 10:34:43 +02:00
|
|
|
var action_icon_a = document.createElement("A");
|
|
|
|
action_icon_a.setAttribute("TARGET", "_blank");
|
|
|
|
action_icon_a.setAttribute("HREF", d.path);
|
|
|
|
var action_icon_span = document.createElement('SPAN');
|
|
|
|
action_icon_span.className = "fa fa-search-plus";
|
|
|
|
action_icon_a.appendChild(action_icon_span);
|
|
|
|
inspect.appendChild(action_icon_a)
|
|
|
|
inspect.setAttribute("style", "text-align:center;");
|
|
|
|
|
2018-07-25 16:48:44 +02:00
|
|
|
|
|
|
|
tr.appendChild(time)
|
|
|
|
tr.appendChild(chan);
|
|
|
|
tr.appendChild(level);
|
|
|
|
tr.appendChild(scrpt);
|
|
|
|
tr.appendChild(src);
|
|
|
|
tr.appendChild(pdate);
|
|
|
|
tr.appendChild(nam);
|
|
|
|
tr.appendChild(msage);
|
|
|
|
tr.appendChild(inspect);
|
|
|
|
|
|
|
|
tableBody.appendChild(tr);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
2016-08-11 10:55:51 +02:00
|
|
|
</script>
|
|
|
|
|
2014-08-06 11:43:40 +02:00
|
|
|
<script type="text/javascript">
|
2016-08-11 10:55:51 +02:00
|
|
|
initfunc( "{{ url_for('static', filename='csv/wordstrendingdata.csv') }}", {{ request.script_root|tojson|safe }} );
|
2014-08-06 11:43:40 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|