2016-07-05 16:53:03 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2018-08-02 10:44:47 +02:00
|
|
|
<title>Paste information - AIL</title>
|
|
|
|
<link rel="icon" href="{{ url_for('static', filename='image/ail-icon.png') }}">
|
2016-07-05 16:53:03 +02:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2016-10-27 12:38:39 +02:00
|
|
|
|
2016-10-27 16:18:49 +02: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 16:58:56 +02:00
|
|
|
<link href="{{ url_for('static', filename='css/tags.css') }}" rel="stylesheet" type="text/css" />
|
|
|
|
|
2016-10-27 16:18:49 +02: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 10:48:21 +01:00
|
|
|
<script src="{{ url_for('static', filename='js/jquery.flot.stack.js') }}"></script>
|
2018-05-23 16:58:56 +02:00
|
|
|
<script src="{{ url_for('static', filename='js/tags.js') }}"></script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.scrollable-menu {
|
|
|
|
height: auto;
|
|
|
|
max-height: 200px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
width:100%;
|
|
|
|
}
|
2018-06-29 10:02:29 +02:00
|
|
|
|
|
|
|
.red_table thead{
|
|
|
|
background: #d91f2d;
|
|
|
|
color: #fff;
|
|
|
|
}
|
2018-05-23 16:58:56 +02:00
|
|
|
</style>
|
|
|
|
|
2016-07-05 16:53:03 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2016-10-27 15:53:45 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2016-10-27 16:18:49 +02:00
|
|
|
<h1 class="page-header" >Paste: {{ request.args.get('paste') }}</h1>
|
2018-05-16 14:39:01 +02:00
|
|
|
<h2 class="page-header" >
|
|
|
|
<div>
|
2018-05-23 16:58:56 +02: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 17:17:02 +02:00
|
|
|
<div class="form-group input-group" >
|
|
|
|
<input id="ltags" style="width:850%;" type="text" name="ltags">
|
|
|
|
</div>
|
2018-05-23 16:58:56 +02: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 17:17:02 +02:00
|
|
|
<li><a href="#" id="all-tags-taxonomies">All Tags <i class="fa fa-tags"></i></a></li>
|
2018-05-23 16:58:56 +02: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 17:17:02 +02: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 16:58:56 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2018-05-29 17:17:02 +02: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 16:58:56 +02: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 14:39:01 +02:00
|
|
|
{% for tag in list_tags %}
|
2018-05-29 17:17:02 +02: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 15:33:06 +02: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 17:17:02 +02:00
|
|
|
<span class="label label-{{ bootstrap_label[loop.index0 % 5] }}" >{{ tag[0] }}</span>
|
2018-05-17 15:33:06 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer center">
|
2018-06-19 15:09:26 +02:00
|
|
|
|
|
|
|
{% if not tag[2] %}
|
|
|
|
<a href="{{ url_for('Tags.tag_validation') }}?paste={{ request.args.get('paste') }}&tag={{ tag[0] }}&status=tp" class="btn btn-success pull-left" data-toggle="tooltip" title="Good Detection">
|
|
|
|
<span class="glyphicon glyphicon-thumbs-up "></span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if tag[2] %}
|
|
|
|
<button class="btn btn-success pull-left disabled" data-toggle="tooltip" title="Good Detection">
|
|
|
|
<span class="glyphicon glyphicon-thumbs-up "></span>
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
{% if not tag[3] %}
|
|
|
|
<a href="{{ url_for('Tags.tag_validation') }}?paste={{ request.args.get('paste') }}&tag={{ tag[0] }}&status=fp" class="btn btn-danger pull-left" data-toggle="tooltip" title="Bad Detection">
|
|
|
|
<span class="glyphicon glyphicon-thumbs-down "></span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if tag[3] %}
|
|
|
|
<button class="btn btn-danger pull-left disabled" data-toggle="tooltip" title="Bad Detection">
|
|
|
|
<span class="glyphicon glyphicon-thumbs-down "></span>
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
|
2018-05-23 16:58:56 +02: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 15:33:06 +02:00
|
|
|
<span class="glyphicon glyphicon-trash "></span> Delete this Tag
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-05-16 14:39:01 +02:00
|
|
|
{% endfor %}
|
2018-05-23 16:58:56 +02: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 15:33:06 +02:00
|
|
|
<span class="glyphicon glyphicon-plus "></span>
|
2018-05-23 16:58:56 +02:00
|
|
|
</button>
|
2018-05-16 14:39:01 +02:00
|
|
|
</div>
|
|
|
|
</h2>
|
2017-12-12 10:48:21 +01:00
|
|
|
|
2016-10-27 15:53:45 +02: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 15:33:06 +02:00
|
|
|
|
2018-06-14 16:51:06 +02:00
|
|
|
<div>
|
2020-02-19 16:15:41 +01:00
|
|
|
{% with obj_type='item', obj_id=request.args.get('paste'), obj_lvl=0%}
|
|
|
|
{% include 'import_export/block_add_user_object_to_export.html' %}
|
|
|
|
{% endwith %}
|
2018-06-14 16:51:06 +02:00
|
|
|
|
2018-06-15 17:25:43 +02:00
|
|
|
{% if hive %}
|
2018-06-14 16:51:06 +02:00
|
|
|
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal_hive">
|
|
|
|
Create
|
|
|
|
<img id="thehive-icon" src="{{url_for('static', filename='image/thehive_icon.png') }}">
|
|
|
|
Case
|
|
|
|
</button>
|
|
|
|
<!-- Modal HIVE-->
|
|
|
|
<div class="modal fade" id="myModal_hive" role="dialog">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header text-center">
|
|
|
|
<img id="misp-logo" src="{{url_for('static', filename='image/thehive-logo.png') }}" width="500" >
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
2018-09-26 11:59:51 +02:00
|
|
|
<form method="post" action="{{ url_for('PasteSubmit.create_hive_case') }}" target="_blank">
|
2018-06-14 16:51:06 +02:00
|
|
|
|
|
|
|
<div class="input clear required">
|
|
|
|
<label for="EventThreatLevelId">Threat Level</label>
|
|
|
|
<select name="threat_level_hive" id="EventThreatLevelId" required="required">
|
|
|
|
<option value="1">High</option>
|
|
|
|
<option value="2" selected="selected">Medium</option>
|
|
|
|
<option value="3">Low</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="input select required">
|
|
|
|
<label for="TLP">TLP</label>
|
|
|
|
<select name="hive_tlp" id="hive_tlp" required="required" class="selectpicker">
|
|
|
|
<option value="0">White</option>
|
|
|
|
<option value="1">Green</option>
|
|
|
|
<option value="2" selected="selected">Amber</option>
|
|
|
|
<option value="3">Red</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="clear required">
|
|
|
|
<label for="hive_case_title">Title</label>
|
|
|
|
<input name="hive_case_title" class="form-control span6" placeholder="Title" type="text" id="hive_case_title" required="required"/>
|
|
|
|
</div>
|
|
|
|
<div class="clear required">
|
|
|
|
<label for="hive_description">Description</label>
|
|
|
|
<input name="hive_description" class="form-control span6" placeholder="Quick Case Description" type="text" id="hive_description" required="required"/>
|
|
|
|
</div>
|
|
|
|
<input type="hidden" id="paste" name="paste" value="{{ request.args.get('paste') }}">
|
|
|
|
|
2018-06-18 13:58:31 +02:00
|
|
|
{% if hive_caseid %}
|
|
|
|
<br>
|
|
|
|
<div class="list-group" id="misp_event">
|
|
|
|
<li class="list-group-item active">The Hive Case already Created</li>
|
|
|
|
<a target="_blank" href="{{ hive_url }}" class="list-group-item">{{ hive_url }}</a></div>
|
|
|
|
{% endif %}
|
|
|
|
|
2018-06-14 16:51:06 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer center">
|
|
|
|
<button href="" class="btn btn-primary">
|
|
|
|
<span class="glyphicon glyphicon-ok "></span> Create Case
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal" >Close</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-06-15 17:25:43 +02:00
|
|
|
{% endif %}
|
2018-06-14 16:51:06 +02:00
|
|
|
</div>
|
|
|
|
|
2019-11-18 16:35:40 +01:00
|
|
|
<div>
|
|
|
|
<a href="{{ url_for('correlation.show_correlation')}}?object_type=paste&correlation_id={{ request.args.get('paste') }}&correlation_objects=paste" target="_blank" style="font-size: 15px">
|
|
|
|
<button class="btn btn-info"><i class="fa fa-search"></i> Show Paste Correlation
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2016-10-27 12:38:39 +02:00
|
|
|
</div>
|
2018-06-14 16:51:06 +02:00
|
|
|
|
2016-10-27 15:53:45 +02:00
|
|
|
<div class="panel-body" id="panel-body">
|
2018-06-14 16:51:06 +02:00
|
|
|
|
2016-10-27 15:53:45 +02:00
|
|
|
{% if duplicate_list|length == 0 %}
|
|
|
|
{% else %}
|
|
|
|
<h3> Duplicate list: </h3>
|
|
|
|
<table id="tableDup" class="table table-striped table-bordered">
|
|
|
|
{% set i = 0 %}
|
|
|
|
<thead>
|
2016-08-04 11:55:38 +02:00
|
|
|
<tr>
|
2016-10-27 15:53:45 +02:00
|
|
|
<th>Hash type</th>
|
|
|
|
<th>Paste info</th>
|
2016-11-24 15:05:29 +01:00
|
|
|
<th>Date</th>
|
2017-12-12 10:48:21 +01:00
|
|
|
<th>Path</th>
|
|
|
|
<th>Action</th>
|
2016-08-04 11:55:38 +02:00
|
|
|
</tr>
|
2016-10-27 15:53:45 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for dup_path in duplicate_list %}
|
|
|
|
<tr>
|
2018-05-02 17:07:10 +02: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 11:31:08 +02:00
|
|
|
<td><a target="_blank" href="{{ url_for('showsavedpastes.showsavedpaste') }}?paste={{ dup_path }}" id='dup_path'>{{ dup_path }}</a></td>
|
2017-12-12 10:48:21 +01: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 15:53:45 +02:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
2018-08-16 17:24:39 +02:00
|
|
|
|
2018-06-29 10:02:29 +02:00
|
|
|
{% if l_64|length != 0 %}
|
2018-07-20 10:32:52 +02:00
|
|
|
<h3> Hash files: </h3>
|
2018-06-29 10:02:29 +02:00
|
|
|
<table id="tableb64" class="red_table table table-striped table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>estimated type</th>
|
|
|
|
<th>hash</th>
|
|
|
|
<th>saved_path</th>
|
|
|
|
<th>Virus Total</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for b64 in l_64 %}
|
|
|
|
<tr>
|
|
|
|
<td><i class="fa {{ b64[0] }}"></i> {{ b64[1] }}</td>
|
2019-11-17 15:17:33 +01:00
|
|
|
<td><a target="_blank" href="{{ url_for('correlation.show_correlation') }}?object_type=decoded&correlation_id={{ b64[2] }}&correlation_objects=paste">{{ b64[2] }}</a> ({{ b64[4] }})</td>
|
2018-06-29 10:02:29 +02:00
|
|
|
<td>{{ b64[3] }}</td>
|
|
|
|
<td style="text-align:center;">
|
|
|
|
{% if vt_enabled %}
|
|
|
|
{% if not b64[5] %}
|
2018-07-17 14:23:49 +02:00
|
|
|
<darkbutton_{{ b64[2] }}>
|
|
|
|
<button id="submit_vt_{{ b64[2] }}" class="btn btn-primary" onclick="sendFileToVT('{{ b64[2] }}')">
|
|
|
|
<i class="fa fa-paper-plane"></i> Send this file to VT
|
2018-06-29 10:02:29 +02:00
|
|
|
</button>
|
2018-07-17 14:23:49 +02:00
|
|
|
</darkbutton_{{ b64[2] }}>
|
2018-06-29 10:02:29 +02:00
|
|
|
{% else %}
|
2018-07-17 14:23:49 +02:00
|
|
|
<a class="btn btn-primary" target="_blank" href="{{ b64[6] }}"><i class="fa fa-link"> VT Report</i></a>
|
2018-06-29 10:02:29 +02:00
|
|
|
{% endif %}
|
|
|
|
<button class="btn btn-default" onclick="updateVTReport('{{ b64[2] }}')">
|
|
|
|
<div id="report_vt_{{ b64[2] }}"><span class="glyphicon glyphicon-refresh"></span> {{ b64[7] }}</div>
|
|
|
|
</button>
|
|
|
|
{% else %}
|
|
|
|
Virus Total submission is disabled
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
2018-08-16 17:24:39 +02:00
|
|
|
{% if crawler_metadata['get_metadata'] %}
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-5">
|
|
|
|
<div class="row">
|
2018-09-27 16:47:48 +02:00
|
|
|
<div class="panel panel-info">
|
2018-08-16 17:24:39 +02:00
|
|
|
<div class="panel-heading">
|
2018-09-27 16:47:48 +02:00
|
|
|
<i class="fa fa-eye-slash"></i> Crawled Paste
|
2018-08-16 17:24:39 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table table-hover table-striped">
|
|
|
|
<tbody>
|
2018-09-17 15:35:06 +02:00
|
|
|
<tr>
|
|
|
|
<td>Domain</td>
|
2019-10-31 17:14:23 +01:00
|
|
|
<td><a target="_blank" href="{{ url_for('crawler_splash.showDomain') }}?domain={{ crawler_metadata['domain'] }}" id='domain'>{{ crawler_metadata['domain'] }}</a></td>
|
2018-09-17 15:35:06 +02:00
|
|
|
</tr>
|
2018-08-16 17:24:39 +02:00
|
|
|
<tr>
|
|
|
|
<td>Father</td>
|
2018-09-17 15:35:06 +02:00
|
|
|
<td><a target="_blank" href="{{ url_for('showsavedpastes.showsavedpaste') }}?paste={{ crawler_metadata['paste_father'] }}" id='paste_father'>{{ crawler_metadata['paste_father'] }}</a></td>
|
2018-08-16 17:24:39 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Source link</td>
|
|
|
|
<td>{{ crawler_metadata['real_link'] }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-12-05 10:00:52 +01:00
|
|
|
|
|
|
|
{% if crawler_metadata['har_file'] %}
|
|
|
|
button
|
|
|
|
{% endif %}
|
2018-08-16 17:24:39 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-09-18 11:51:21 +02:00
|
|
|
|
|
|
|
<div class="col-md-7">
|
|
|
|
<div class="panel panel-info" style="text-align:center;">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
2019-11-25 18:11:20 +01:00
|
|
|
<input class="center" id="blocks" type="range" min="1" max="50" value="{%if tags_safe%}13{%else%}0{%endif%}">
|
2018-09-18 11:51:21 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
2019-12-05 10:00:52 +01:00
|
|
|
<button class="btn {%if tags_safe%}btn-primary{%else%}btn-danger{%endif%} btn-tags" onclick="blocks.value=50;pixelate();">
|
2018-09-18 11:51:21 +02:00
|
|
|
<span class="glyphicon glyphicon-zoom-in"></span>
|
|
|
|
<span class="label-icon">Full resolution</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<canvas id="canvas" style="width:100%;"></canvas>
|
|
|
|
</div>
|
2018-08-16 17:24:39 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2016-10-27 15:53:45 +02:00
|
|
|
<h3> Content: </h3>
|
2018-05-11 16:07:30 +02:00
|
|
|
<a href="{{ url_for('showsavedpastes.showsavedrawpaste') }}?paste={{ request.args.get('paste') }}" id='raw_paste' > [Raw content] </a>
|
2016-10-27 15:53:45 +02:00
|
|
|
<p data-initsize="{{ initsize }}"> <pre id="paste-holder">{{ content }}</pre></p>
|
|
|
|
</div>
|
2018-06-14 16:51:06 +02:00
|
|
|
</div>
|
2017-12-12 10:48:21 +01:00
|
|
|
|
2016-07-05 16:53:03 +02:00
|
|
|
</body>
|
2018-05-23 16:58:56 +02:00
|
|
|
|
|
|
|
<script>
|
|
|
|
var ltags
|
2018-05-29 17:17:02 +02:00
|
|
|
var ltagsgalaxies
|
2018-05-23 16:58:56 +02:00
|
|
|
$(document).ready(function(){
|
|
|
|
|
2018-09-25 16:46:06 +02:00
|
|
|
$.getJSON("{{ url_for('Tags.get_all_tags_taxonomies') }}",
|
2018-05-23 16:58:56 +02:00
|
|
|
function(data) {
|
|
|
|
|
|
|
|
ltags = $('#ltags').tagSuggest({
|
|
|
|
data: data,
|
|
|
|
maxDropHeight: 200,
|
|
|
|
name: 'ltags'
|
2018-05-29 17:17:02 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-09-25 16:46:06 +02:00
|
|
|
$.getJSON("{{ url_for('Tags.get_all_tags_galaxy') }}",
|
2018-05-29 17:17:02 +02:00
|
|
|
function(data) {
|
|
|
|
|
|
|
|
ltagsgalaxies = $('#ltagsgalaxies').tagSuggest({
|
|
|
|
data: data,
|
|
|
|
maxDropHeight: 200,
|
|
|
|
name: 'ltagsgalaxies'
|
|
|
|
});
|
2018-05-23 16:58:56 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
$('#tableDup').DataTable();
|
2018-06-29 10:02:29 +02:00
|
|
|
$('#tableb64').DataTable({
|
|
|
|
"aLengthMenu": [[5, 10, 15, -1], [5, 10, 15, "All"]],
|
|
|
|
"iDisplayLength": 5,
|
|
|
|
"order": [[ 1, "asc" ]]
|
|
|
|
});
|
2018-05-23 16:58:56 +02:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2018-06-29 10:02:29 +02:00
|
|
|
<script>
|
2018-07-17 14:23:49 +02:00
|
|
|
function updateVTReport(hash) {
|
|
|
|
//updateReport
|
2018-09-25 16:46:06 +02:00
|
|
|
$.getJSON("{{ url_for('hashDecoded.update_vt_result') }}?hash="+hash,
|
2018-07-17 14:23:49 +02:00
|
|
|
function(data) {
|
|
|
|
content = '<span class="glyphicon glyphicon-refresh"></span> ' +data['report_vt']
|
|
|
|
$( "#report_vt_"+hash ).html(content);
|
2018-05-23 16:58:56 +02:00
|
|
|
});
|
2018-07-17 14:23:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function sendFileToVT(hash) {
|
|
|
|
//send file to vt
|
2018-09-25 16:46:06 +02:00
|
|
|
$.getJSON("{{ url_for('hashDecoded.send_file_to_vt_js') }}?hash="+hash,
|
2018-07-17 14:23:49 +02:00
|
|
|
function(data) {
|
|
|
|
var content = '<a id="submit_vt_'+hash+'" class="btn btn-primary" target="_blank" href="'+ data['vt_link'] +'"><i class="fa fa-link"> '+ ' VT Report' +'</i></a>';
|
|
|
|
$('#submit_vt_'+hash).remove();
|
|
|
|
$('darkbutton_'+hash).append(content);
|
|
|
|
});
|
|
|
|
}
|
2018-06-29 10:02:29 +02:00
|
|
|
|
2018-05-23 16:58:56 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
2018-05-29 17:17:02 +02:00
|
|
|
jQuery("#all-tags-taxonomies").click(function(e){
|
2018-06-01 11:26:45 +02:00
|
|
|
//change input tags list
|
2018-09-25 16:46:06 +02:00
|
|
|
$.getJSON("{{ url_for('Tags.get_all_tags_taxonomies') }}",
|
2018-05-23 16:58:56 +02:00
|
|
|
function(data) {
|
|
|
|
ltags.setData(data)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-05-29 17:17:02 +02:00
|
|
|
</script>
|
|
|
|
<script>
|
|
|
|
jQuery("#all-tags-galaxies").click(function(e){
|
2018-09-25 16:46:06 +02:00
|
|
|
$.getJSON("{{ url_for('Tags.get_all_tags_galaxy') }}",
|
2018-05-29 17:17:02 +02:00
|
|
|
function(data) {
|
|
|
|
ltagsgalaxies.setData(data)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-05-23 16:58:56 +02:00
|
|
|
</script>
|
|
|
|
|
2016-10-27 12:38:39 +02:00
|
|
|
<script>
|
2018-05-23 16:58:56 +02:00
|
|
|
function addTags() {
|
2018-05-29 17:17:02 +02:00
|
|
|
var tags = ltags.getValue()
|
|
|
|
var tagsgalaxy = ltagsgalaxies.getValue()
|
2018-05-23 16:58:56 +02:00
|
|
|
var path = '{{ request.args.get('paste') }}'
|
2020-01-07 16:14:56 +01:00
|
|
|
window.location.replace("{{ url_for('tags_ui.add_tags') }}?tags=" + tags + "&tagsgalaxies=" + tagsgalaxy + "&object_id=" + path + "&object_type=item");
|
2018-05-23 16:58:56 +02:00
|
|
|
}
|
2018-05-29 17:17:02 +02:00
|
|
|
|
2016-10-27 12:38:39 +02:00
|
|
|
</script>
|
2018-05-23 16:58:56 +02:00
|
|
|
|
|
|
|
<script>
|
|
|
|
{% for taxo in active_taxonomies %}
|
|
|
|
jQuery("#{{ taxo }}-id{{ loop.index0 }}").click(function(e){
|
2018-09-25 16:46:06 +02:00
|
|
|
$.getJSON("{{ url_for('Tags.get_tags_taxonomie') }}?taxonomie={{ taxo }}",
|
2018-05-23 16:58:56 +02:00
|
|
|
function(data) {
|
|
|
|
ltags.setData(data)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
{% endfor %}
|
|
|
|
</script>
|
2018-05-29 17:17:02 +02:00
|
|
|
<script>
|
|
|
|
{% for galaxy in active_galaxies %}
|
|
|
|
jQuery("#{{ galaxy }}-idgalax{{ loop.index0 }}").click(function(e){
|
2018-09-25 16:46:06 +02:00
|
|
|
$.getJSON("{{ url_for('Tags.get_tags_galaxy') }}?galaxy={{ galaxy }}",
|
2018-05-29 17:17:02 +02:00
|
|
|
function(data) {
|
|
|
|
ltagsgalaxies.setData(data)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
{% endfor %}
|
|
|
|
</script>
|
|
|
|
|
2018-09-18 11:03:40 +02:00
|
|
|
<script>
|
|
|
|
var ctx = canvas.getContext('2d'), img = new Image();
|
|
|
|
|
|
|
|
/// turn off image smoothing
|
|
|
|
ctx.webkitImageSmoothingEnabled = false;
|
|
|
|
ctx.imageSmoothingEnabled = false;
|
|
|
|
|
|
|
|
img.onload = pixelate;
|
2018-09-18 16:58:49 +02:00
|
|
|
img.addEventListener("error", img_error);
|
2018-09-18 11:03:40 +02:00
|
|
|
var draw_img = false;
|
|
|
|
|
|
|
|
img.src = "{{ url_for('showsavedpastes.screenshot', filename=crawler_metadata['screenshot']) }}";
|
|
|
|
|
|
|
|
function pixelate() {
|
|
|
|
|
|
|
|
/// use slider value
|
|
|
|
if( blocks.value == 50 ){
|
|
|
|
size = 1;
|
|
|
|
} else {
|
|
|
|
var size = (blocks.value) * 0.01;
|
|
|
|
}
|
|
|
|
|
|
|
|
canvas.width = img.width;
|
|
|
|
canvas.height = img.height;
|
|
|
|
|
|
|
|
/// cache scaled width and height
|
|
|
|
w = canvas.width * size;
|
|
|
|
h = canvas.height * size;
|
|
|
|
|
|
|
|
/// draw original image to the scaled size
|
|
|
|
ctx.drawImage(img, 0, 0, w, h);
|
|
|
|
|
2018-09-18 16:58:49 +02:00
|
|
|
/// pixelated
|
2018-09-18 11:03:40 +02:00
|
|
|
ctx.drawImage(canvas, 0, 0, w, h, 0, 0, canvas.width, canvas.height);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-09-18 16:58:49 +02:00
|
|
|
function img_error() {
|
|
|
|
img.onerror=null;
|
|
|
|
img.src="{{ url_for('static', filename='image/AIL.png') }}";
|
|
|
|
blocks.value = 50;
|
|
|
|
pixelate;
|
|
|
|
}
|
|
|
|
|
2018-09-18 11:03:40 +02:00
|
|
|
blocks.addEventListener('change', pixelate, false);
|
|
|
|
</script>
|
2018-05-23 16:58:56 +02:00
|
|
|
|
2016-07-05 16:53:03 +02:00
|
|
|
</html>
|