2016-07-05 14:53:03 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>Paste information</title>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2016-10-27 10:38:39 +00:00
|
|
|
|
2016-10-27 14:18:49 +00:00
|
|
|
<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="{{ url_for('static', filename='css/dataTables.bootstrap.css') }}" rel="stylesheet" type="text/css" />
|
2018-05-23 14:58:56 +00:00
|
|
|
<link href="{{ url_for('static', filename='css/tags.css') }}" rel="stylesheet" type="text/css" />
|
|
|
|
|
2016-10-27 14:18:49 +00:00
|
|
|
<script language="javascript" src="{{ url_for('static', filename='js/jquery.js')}}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.dataTables.min.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/dataTables.bootstrap.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.flot.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.flot.time.js') }}"></script>
|
2017-12-12 09:48:21 +00:00
|
|
|
<script src="{{ url_for('static', filename='js/jquery.flot.stack.js') }}"></script>
|
2018-05-23 14:58:56 +00:00
|
|
|
<script src="{{ url_for('static', filename='js/tags.js') }}"></script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.scrollable-menu {
|
|
|
|
height: auto;
|
|
|
|
max-height: 200px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
width:100%;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2016-07-05 14:53:03 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2016-10-27 13:53:45 +00:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2016-10-27 14:18:49 +00:00
|
|
|
<h1 class="page-header" >Paste: {{ request.args.get('paste') }}</h1>
|
2018-05-16 12:39:01 +00:00
|
|
|
<h2 class="page-header" >
|
|
|
|
<div>
|
2018-05-23 14:58:56 +00:00
|
|
|
|
|
|
|
<div id="mymodal" class="modal fade" role="dialog">
|
|
|
|
<div class="modal-dialog modal-lg">
|
|
|
|
|
|
|
|
<!-- Modal content-->
|
|
|
|
<div id="mymodalcontent" class="modal-content">
|
|
|
|
<div class="modal-header" style="border-bottom: 4px solid #cccccc; background-color: #cccccc; color: #ffffff;">
|
|
|
|
<p class="heading">Edit this tag</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
2018-05-29 15:17:02 +00:00
|
|
|
<div class="form-group input-group" >
|
|
|
|
<input id="ltags" style="width:850%;" type="text" name="ltags">
|
|
|
|
</div>
|
2018-05-23 14:58:56 +00:00
|
|
|
|
|
|
|
<div class="btn-group btn-block">
|
|
|
|
<button type="button" class="btn btn-primary dropdown-toggle btn-block" data-toggle="dropdown">Taxonomie Selection
|
|
|
|
<i class="fa fa-chevron-down"></i>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu scrollable-menu" role="menu">
|
2018-05-29 15:17:02 +00:00
|
|
|
<li><a href="#" id="all-tags-taxonomies">All Tags <i class="fa fa-tags"></i></a></li>
|
2018-05-23 14:58:56 +00:00
|
|
|
<li role="separator" class="divider"></li>
|
|
|
|
{% for taxo in active_taxonomies %}
|
|
|
|
<li><a href="#" id="{{ taxo }}-id{{ loop.index0 }}">{{ taxo }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2018-05-29 15:17:02 +00:00
|
|
|
<br/><br/>
|
|
|
|
|
|
|
|
<div class="form-group input-group" >
|
|
|
|
<input id="ltagsgalaxies" style="width:850%;" type="text" name="ltagsgalaxies">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="btn-group btn-block">
|
|
|
|
<button type="button" class="btn btn-primary dropdown-toggle btn-block" data-toggle="dropdown">Galaxy Selection
|
|
|
|
<i class="fa fa-chevron-down"></i>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu scrollable-menu" role="menu">
|
|
|
|
<li><a href="#" id="all-tags-galaxies">All Tags <i class="fa fa-tags"></i></a></li>
|
|
|
|
<li role="separator" class="divider"></li>
|
|
|
|
{% for galaxy in active_galaxies %}
|
|
|
|
<li><a href="#" id="{{ galaxy }}-idgalax{{ loop.index0 }}">{{ galaxy }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2018-05-23 14:58:56 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2018-05-29 15:17:02 +00:00
|
|
|
<a class="btn btn-tags pull-left" href="{{ url_for('Tags.taxonomies') }}" target="_blank">
|
|
|
|
<span class="label-icon">Edit Taxonomies List </span>
|
|
|
|
<i class="fa fa-wrench fa-2x"></i>
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-tags pull-left" href="{{ url_for('Tags.galaxies') }}" target="_blank">
|
|
|
|
<span class="label-icon">Edit Galaxies List</span>
|
|
|
|
<i class="fa fa-rocket fa-2x"></i>
|
|
|
|
</a>
|
2018-05-23 14:58:56 +00:00
|
|
|
<button class="btn btn-primary btn-tags" onclick="addTags()">
|
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
|
|
|
<span class="label-icon">Add Tags</span>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal" >Close</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2018-05-16 12:39:01 +00:00
|
|
|
{% for tag in list_tags %}
|
2018-05-29 15:17:02 +00:00
|
|
|
<span class="btn btn-{{ bootstrap_label[loop.index0 % 5] }} btn-lg pull-left" data-toggle="modal" data-target="#myModal_{{ loop.index0 }}">{{ tag[0] }}</span>
|
2018-05-17 13:33:06 +00:00
|
|
|
|
|
|
|
<!-- Modal edit this tag -->
|
|
|
|
<div class="modal fade" id="myModal_{{ loop.index0 }}" role="dialog">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
|
|
|
|
<div class="modal-content text-center">
|
|
|
|
<div class="modal-header" style="border-bottom: 4px solid #cccccc; background-color: #cccccc; color: #ffffff;">
|
|
|
|
<p class="heading">Edit this tag</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2018-05-29 15:17:02 +00:00
|
|
|
<span class="label label-{{ bootstrap_label[loop.index0 % 5] }}" >{{ tag[0] }}</span>
|
2018-05-17 13:33:06 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer center">
|
2018-05-23 14:58:56 +00:00
|
|
|
{% if tag[1] %}
|
|
|
|
<a href="{{ url_for('Tags.confirm_tag') }}?paste={{ request.args.get('paste') }}&tag={{ tag[0] }}" class="btn btn-primary">
|
|
|
|
<span class="glyphicon glyphicon-ok "></span> Confirm this Tag
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ url_for('Tags.remove_tag') }}?paste={{ request.args.get('paste') }}&tag={{ tag[0] }}" class="btn btn-danger">
|
2018-05-17 13:33:06 +00:00
|
|
|
<span class="glyphicon glyphicon-trash "></span> Delete this Tag
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-05-16 12:39:01 +00:00
|
|
|
{% endfor %}
|
2018-05-23 14:58:56 +00:00
|
|
|
<button type="button" class="btn btn-light btn-lg" data-toggle="modal" data-target="#mymodal" data-url="{{ url_for('Tags.taxonomies') }}">
|
2018-05-17 13:33:06 +00:00
|
|
|
<span class="glyphicon glyphicon-plus "></span>
|
2018-05-23 14:58:56 +00:00
|
|
|
</button>
|
2018-05-16 12:39:01 +00:00
|
|
|
</div>
|
|
|
|
</h2>
|
2017-12-12 09:48:21 +00:00
|
|
|
|
2016-10-27 13:53:45 +00:00
|
|
|
<table class="table table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Source</th>
|
|
|
|
<th>Encoding</th>
|
|
|
|
<th>Language</th>
|
|
|
|
<th>Size (Kb)</th>
|
|
|
|
<th>Mime</th>
|
|
|
|
<th>Number of lines</th>
|
|
|
|
<th>Max line length</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>{{ date }}</td>
|
|
|
|
<td>{{ source }}</td>
|
|
|
|
<td>{{ encoding }}</td>
|
|
|
|
<td>{{ language }}</td>
|
|
|
|
<td>{{ size }}</td>
|
|
|
|
<td>{{ mime }}</td>
|
|
|
|
<td>{{ lineinfo.0 }}</td>
|
|
|
|
<td>{{ lineinfo.1 }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-05-17 13:33:06 +00:00
|
|
|
|
2016-10-27 10:38:39 +00:00
|
|
|
</div>
|
2016-10-27 13:53:45 +00:00
|
|
|
<div class="panel-body" id="panel-body">
|
|
|
|
{% if duplicate_list|length == 0 %}
|
|
|
|
<h3> No Duplicate </h3>
|
|
|
|
{% else %}
|
|
|
|
<h3> Duplicate list: </h3>
|
|
|
|
<table id="tableDup" class="table table-striped table-bordered">
|
|
|
|
{% set i = 0 %}
|
|
|
|
<thead>
|
2016-08-04 09:55:38 +00:00
|
|
|
<tr>
|
2016-10-27 13:53:45 +00:00
|
|
|
<th>Hash type</th>
|
|
|
|
<th>Paste info</th>
|
2016-11-24 14:05:29 +00:00
|
|
|
<th>Date</th>
|
2017-12-12 09:48:21 +00:00
|
|
|
<th>Path</th>
|
|
|
|
<th>Action</th>
|
2016-08-04 09:55:38 +00:00
|
|
|
</tr>
|
2016-10-27 13:53:45 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for dup_path in duplicate_list %}
|
|
|
|
<tr>
|
2018-05-02 15:07:10 +00:00
|
|
|
<td>{{ hashtype_list[loop.index - 1] }}</td>
|
|
|
|
<td>Similarity: {{ simil_list[loop.index - 1] }}%</td>
|
|
|
|
<td>{{ date_list[loop.index - 1] }}</td>
|
2017-04-26 09:31:08 +00:00
|
|
|
<td><a target="_blank" href="{{ url_for('showsavedpastes.showsavedpaste') }}?paste={{ dup_path }}" id='dup_path'>{{ dup_path }}</a></td>
|
2017-12-12 09:48:21 +00:00
|
|
|
<td><a target="_blank" href="{{ url_for('showsavedpastes.showDiff') }}?s1={{ request.args.get('paste') }}&s2={{ dup_path }}" class="fa fa-columns" title="Show differences"></a></td>
|
2016-10-27 13:53:45 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
<h3> Content: </h3>
|
2018-05-11 14:07:30 +00:00
|
|
|
<a href="{{ url_for('showsavedpastes.showsavedrawpaste') }}?paste={{ request.args.get('paste') }}" id='raw_paste' > [Raw content] </a>
|
2016-10-27 13:53:45 +00:00
|
|
|
<p data-initsize="{{ initsize }}"> <pre id="paste-holder">{{ content }}</pre></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-12 09:48:21 +00:00
|
|
|
|
2016-07-05 14:53:03 +00:00
|
|
|
</body>
|
2018-05-23 14:58:56 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
var ltags
|
2018-05-29 15:17:02 +00:00
|
|
|
var ltagsgalaxies
|
2018-05-23 14:58:56 +00:00
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
$.getJSON('/Tags/get_all_tags_taxonomies',
|
|
|
|
function(data) {
|
|
|
|
|
|
|
|
ltags = $('#ltags').tagSuggest({
|
|
|
|
data: data,
|
|
|
|
//sortOrder: 'name',
|
|
|
|
maxDropHeight: 200,
|
|
|
|
name: 'ltags'
|
2018-05-29 15:17:02 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$.getJSON('/Tags/get_all_tags_galaxies',
|
|
|
|
function(data) {
|
|
|
|
|
|
|
|
ltagsgalaxies = $('#ltagsgalaxies').tagSuggest({
|
|
|
|
data: data,
|
|
|
|
//sortOrder: 'name',
|
|
|
|
maxDropHeight: 200,
|
|
|
|
name: 'ltagsgalaxies'
|
|
|
|
});
|
2018-05-23 14:58:56 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$('#tableDup').DataTable();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
2018-05-29 15:17:02 +00:00
|
|
|
jQuery("#all-tags-taxonomies").click(function(e){
|
2018-05-23 14:58:56 +00:00
|
|
|
//change input tags list /Tags/get_tags_taxonomie?taxonomie=infoleak
|
|
|
|
$.getJSON('/Tags/get_all_tags_taxonomies',
|
|
|
|
function(data) {
|
|
|
|
ltags.setData(data)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-05-29 15:17:02 +00:00
|
|
|
</script>
|
|
|
|
<script>
|
|
|
|
jQuery("#all-tags-galaxies").click(function(e){
|
|
|
|
$.getJSON('/Tags/get_all_tags_galaxies',
|
|
|
|
function(data) {
|
|
|
|
ltagsgalaxies.setData(data)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-05-23 14:58:56 +00:00
|
|
|
</script>
|
|
|
|
|
2016-10-27 10:38:39 +00:00
|
|
|
<script>
|
2018-05-23 14:58:56 +00:00
|
|
|
function addTags() {
|
2018-05-29 15:17:02 +00:00
|
|
|
var tags = ltags.getValue()
|
|
|
|
var tagsgalaxy = ltagsgalaxies.getValue()
|
2018-05-23 14:58:56 +00:00
|
|
|
var path = '{{ request.args.get('paste') }}'
|
2018-05-29 15:17:02 +00:00
|
|
|
window.location.replace("{{ url_for('Tags.addTags') }}?tags=" + tags + "&tagsgalaxies=" + tagsgalaxy + "&path=" + path);
|
2018-05-23 14:58:56 +00:00
|
|
|
}
|
2018-05-29 15:17:02 +00:00
|
|
|
|
2016-10-27 10:38:39 +00:00
|
|
|
</script>
|
2018-05-23 14:58:56 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
{% for taxo in active_taxonomies %}
|
|
|
|
jQuery("#{{ taxo }}-id{{ loop.index0 }}").click(function(e){
|
|
|
|
$.getJSON('/Tags/get_tags_taxonomie?taxonomie={{ taxo }}',
|
|
|
|
function(data) {
|
|
|
|
ltags.setData(data)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
{% endfor %}
|
|
|
|
</script>
|
2018-05-29 15:17:02 +00:00
|
|
|
<script>
|
|
|
|
{% for galaxy in active_galaxies %}
|
|
|
|
jQuery("#{{ galaxy }}-idgalax{{ loop.index0 }}").click(function(e){
|
|
|
|
$.getJSON('/Tags/get_tags_galaxy?galaxy={{ galaxy }}',
|
|
|
|
function(data) {
|
|
|
|
ltagsgalaxies.setData(data)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
{% endfor %}
|
|
|
|
</script>
|
|
|
|
|
2018-05-23 14:58:56 +00:00
|
|
|
|
2016-07-05 14:53:03 +00:00
|
|
|
</html>
|