2018-06-15 17:25:43 +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</title>
|
|
|
|
|
|
|
|
<!-- Core CSS -->
|
|
|
|
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='font-awesome/css/font-awesome.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='css/sb-admin-2.css') }}" rel="stylesheet">
|
|
|
|
<link href="/static//css/dataTables.bootstrap.css" rel="stylesheet" type="text/css" />
|
|
|
|
<!-- JS -->
|
|
|
|
<script type="text/javascript" src="{{ url_for('static', filename='js/dygraph-combined.js') }}"></script>
|
|
|
|
<script language="javascript" src="{{ url_for('static', filename='js/jquery.js')}}"></script>
|
|
|
|
<script src="/static//js/bootstrap.min.js"></script>
|
|
|
|
<script src="/static//js/jquery.dataTables.min.js"></script>
|
|
|
|
<script src="/static//js/dataTables.bootstrap.js"></script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.tooltip-inner {
|
|
|
|
text-align: left;
|
|
|
|
height: 200%;
|
|
|
|
width: 200%;
|
|
|
|
max-width: 500px;
|
|
|
|
max-height: 500px;
|
|
|
|
font-size: 13px;
|
|
|
|
}
|
|
|
|
xmp {
|
|
|
|
white-space:pre-wrap;
|
|
|
|
word-wrap:break-word;
|
|
|
|
}
|
|
|
|
.test thead{
|
|
|
|
background: #d91f2d;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
{% include 'navbar.html' %}
|
|
|
|
|
|
|
|
<div id="page-wrapper">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
</div>
|
|
|
|
<!-- /.col-lg-12 -->
|
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
|
|
|
<div class="panel panel-primary">
|
|
|
|
<div class="panel-heading"> MISP Auto Event Creation
|
|
|
|
{% if misp_active %}
|
|
|
|
<span class="label label-success pull-right"> Enabled</span>
|
|
|
|
{% endif %}
|
|
|
|
{% if not misp_active %}
|
|
|
|
<span class="label label-danger pull-right"> Disabled</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<img id="misp-logo" src="{{url_for('static', filename='image/misp-logo.png') }}" class="text-center" >
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
{% if misp_active %}
|
|
|
|
<a href="{{ url_for('PasteSubmit.disable_misp_auto_event') }}" class="btn btn-danger pull-right">
|
|
|
|
<i class="fa fa-times fa"></i> Disable Event Creation
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if not misp_active %}
|
|
|
|
<a href="{{ url_for('PasteSubmit.enable_misp_auto_event') }}" class="btn btn-success pull-right">
|
|
|
|
<i class="fa fa-check-square-o fa"></i> Enable Event Creation
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="panel panel-primary" style="min-width: 500px;">
|
|
|
|
<div class="panel-heading">The hive auto export
|
|
|
|
{% if hive_active %}
|
|
|
|
<span class="label label-success pull-right"> Enabled</span>
|
|
|
|
{% endif %}
|
|
|
|
{% if not hive_active %}
|
|
|
|
<span class="label label-danger pull-right"> Disabled</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<img id="misp-logo" src="{{url_for('static', filename='image/thehive-logo.png') }}" width="500">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if hive_active %}
|
|
|
|
<a href="{{ url_for('PasteSubmit.disable_hive_auto_alert') }}" class="btn btn-danger pull-right">
|
|
|
|
<i class="fa fa-times fa"></i> Disable Alert Creation
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if not hive_active %}
|
|
|
|
<a href="{{ url_for('PasteSubmit.enable_hive_auto_alert') }}" class="btn btn-success pull-right">
|
|
|
|
<i class="fa fa-check-square-o fa"></i> Enable Alert Creation
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<form action="/PasteSubmit/tag_export_edited" id="checkboxForm" method='post'>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
|
|
|
<div class="panel panel-info">
|
|
|
|
<div class="panel-heading">
|
2018-06-18 13:58:31 +02:00
|
|
|
Metadata :
|
|
|
|
<span class="pull-right"> </span>
|
|
|
|
<span class="badge pull-right">{{ nb_tags_whitelist_misp }}</span>
|
2018-06-15 17:25:43 +02:00
|
|
|
<ul class="list-group"><li class="list-group-item">
|
|
|
|
<table class="test table table-striped table-bordered table-hover table-responsive " id="myTable_misp">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Whitelist</th>
|
|
|
|
<th>Tag</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
{% for tag in list_export_tags %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{% if status_misp[loop.index0] %}
|
|
|
|
<div style="display:none;">Enabled</div>
|
|
|
|
<input type="checkbox" value="{{ tag }}" name="tag_enabled_misp" checked>
|
|
|
|
{% endif %}
|
|
|
|
{% if not status_misp[loop.index0] %}
|
|
|
|
<div style="display:none;">Disabled</div>
|
|
|
|
<input type="checkbox" value="{{ tag }}" name="tag_enabled_misp" >
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>{{ tag }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</li></ul>
|
|
|
|
</div></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
|
|
|
<div class="panel panel-info">
|
|
|
|
<div class="panel-heading">
|
2018-06-18 13:58:31 +02:00
|
|
|
Metadata :
|
|
|
|
<span class="pull-right"> </span>
|
|
|
|
<span class="badge pull-right">{{ nb_tags_whitelist_hive }}</span>
|
2018-06-15 17:25:43 +02:00
|
|
|
<ul class="list-group"><li class="list-group-item">
|
|
|
|
|
|
|
|
<table class="test table table-striped table-bordered table-hover table-responsive " id="myTable_hive">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Whitelist</th>
|
|
|
|
<th>Tag</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
{% for tag in list_export_tags %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{% if status_hive[loop.index0] %}
|
|
|
|
<div style="display:none;">Enabled</div>
|
|
|
|
<input type="checkbox" value="{{ tag }}" name="tag_enabled_hive" checked>
|
|
|
|
{% endif %}
|
|
|
|
{% if not status_hive[loop.index0] %}
|
|
|
|
<div style="display:none;">Disabled</div>
|
|
|
|
<input type="checkbox" value="{{ tag }}" name="tag_enabled_hive" >
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>{{ tag }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</li></ul>
|
|
|
|
</div></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="input-group-btn text-center">
|
|
|
|
<button class="btn btn-primary btn-lg" onclick="submitActiveTags()">
|
|
|
|
<i class="fa fa-check-square-o fa"></i>
|
|
|
|
Update Tags
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- /#page-wrapper -->
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var table_misp
|
|
|
|
var table_hive
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
table_misp = $('#myTable_misp').DataTable(
|
|
|
|
{
|
|
|
|
"aLengthMenu": [[5, 10, 15, -1], [5, 10, 15, "All"]],
|
|
|
|
"iDisplayLength": 10,
|
|
|
|
"order": [[ 1, "asc" ]]
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
table_hive = $('#myTable_hive').DataTable(
|
|
|
|
{
|
|
|
|
"aLengthMenu": [[5, 10, 15, -1], [5, 10, 15, "All"]],
|
|
|
|
"iDisplayLength": 10,
|
|
|
|
"order": [[ 1, "asc" ]]
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function submitActiveTags(){
|
|
|
|
table_misp.destroy()
|
|
|
|
table_misp = $('#myTable_misp').DataTable(
|
|
|
|
{
|
|
|
|
"iDisplayLength": -1,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
table_hive.destroy()
|
|
|
|
table_hive = $('#myTable_hive').DataTable(
|
|
|
|
{
|
|
|
|
"iDisplayLength": -1,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</html>
|