2020-10-13 14:02:30 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>Show Item Object - AIL</title>
|
|
|
|
<link rel="icon" href="{{ url_for('static', filename='image/ail-icon.png') }}">
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
|
|
|
<link href="{{ url_for('static', filename='css/bootstrap4.min.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='css/font-awesome.min.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='css/dataTables.bootstrap.min.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='css/tags.css') }}" rel="stylesheet" type="text/css" />
|
2022-12-19 15:38:20 +00:00
|
|
|
<link href="{{ url_for('static', filename='css/ail-project.css') }}" rel="stylesheet">
|
2020-10-13 14:02:30 +00:00
|
|
|
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.js')}}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/popper.min.js')}}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/bootstrap4.min.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.dataTables.min.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/dataTables.bootstrap.min.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/tags.js') }}"></script>
|
|
|
|
|
|
|
|
<style>
|
2023-02-23 15:25:15 +00:00
|
|
|
.popover{
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2020-10-13 14:02:30 +00:00
|
|
|
.rotate{
|
|
|
|
-moz-transition: all 0.1s linear;
|
|
|
|
-webkit-transition: all 0.1s linear;
|
|
|
|
transition: all 0.1s linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rotate.down{
|
|
|
|
-moz-transform:rotate(180deg);
|
|
|
|
-webkit-transform:rotate(180deg);
|
|
|
|
transform:rotate(180deg);
|
|
|
|
}
|
2024-09-24 12:42:47 +00:00
|
|
|
.text_wrap{
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2020-10-13 14:02:30 +00:00
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{% include 'nav_bar.html' %}
|
|
|
|
|
|
|
|
<div class="card my-2 mx-2">
|
|
|
|
<div class="card-header bg-dark">
|
2022-07-13 13:10:27 +00:00
|
|
|
<h3 class="text-white text-center" >{{ meta['name'] }}</h3>
|
2020-10-13 14:02:30 +00:00
|
|
|
</div>
|
|
|
|
<div class="card-body pb-1">
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<thead class="">
|
|
|
|
<tr>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Source</th>
|
2022-07-13 13:10:27 +00:00
|
|
|
<!-- <th>Encoding</th> -->
|
2020-10-13 14:02:30 +00:00
|
|
|
<th>Size (Kb)</th>
|
|
|
|
<th>Number of lines</th>
|
|
|
|
<th>Max line length</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2022-07-13 13:10:27 +00:00
|
|
|
<td>{{ meta['date'] }}</td>
|
|
|
|
<td>{{ meta['source'] }}</td>
|
|
|
|
<!-- <td>{{ meta['encoding'] }}</td> -->
|
|
|
|
<td>{{ meta['size'] }}</td>
|
|
|
|
<td>{{ meta['lines']['nb'] }}</td>
|
|
|
|
<td>{{ meta['lines']['max_length'] }}</td>
|
2020-10-13 14:02:30 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<h5>
|
2022-11-22 09:47:15 +00:00
|
|
|
<span>
|
2020-10-13 14:02:30 +00:00
|
|
|
{% include 'modals/edit_tag.html' %}
|
2022-07-13 13:10:27 +00:00
|
|
|
{% for tag in meta['tags'] %}
|
2020-10-13 14:02:30 +00:00
|
|
|
<button class="btn btn-{{ bootstrap_label[loop.index0 % 5] }}" data-toggle="modal" data-target="#edit_tags_modal"
|
2022-11-22 09:47:15 +00:00
|
|
|
data-tagid="{{ tag }}" data-objtype="item" data-objsubtype="" data-objid="{{ meta['id'] }}">
|
2020-10-13 14:02:30 +00:00
|
|
|
{{ tag }}
|
|
|
|
</button>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
<br>
|
|
|
|
{% include 'modals/add_tags.html' %}
|
|
|
|
<button type="button" class="btn btn-light" data-toggle="modal" data-target="#add_tags_modal">
|
|
|
|
<i class="far fa-plus-square"></i>
|
|
|
|
</button>
|
2022-11-22 09:47:15 +00:00
|
|
|
</span>
|
2020-10-13 14:02:30 +00:00
|
|
|
</h5>
|
|
|
|
</div>
|
|
|
|
|
2022-07-13 13:10:27 +00:00
|
|
|
{% if meta['father'] %}
|
2020-10-13 14:02:30 +00:00
|
|
|
<div class="mt-3">
|
2022-07-13 13:10:27 +00:00
|
|
|
Father: <a href="{{ url_for('objects_item.showItem')}}?id={{meta['father']}}" target="_blank">{{meta['father']}}</a>
|
2020-10-13 14:02:30 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="d-flex flex-row-reverse bd-highlight">
|
|
|
|
<div>
|
2022-10-25 14:25:19 +00:00
|
|
|
<a href="{{ url_for('correlation.show_correlation')}}?type=item&id={{ meta['id'] }}" target="_blank">
|
2020-10-13 14:02:30 +00:00
|
|
|
<button class="btn btn-lg btn-info"><i class="fas fa-project-diagram"></i> Correlations Graph
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-03-07 14:12:01 +00:00
|
|
|
<div>
|
2022-07-13 13:10:27 +00:00
|
|
|
{% with obj_type='item', obj_id=meta['id'], obj_subtype=''%}
|
2022-03-07 14:12:01 +00:00
|
|
|
{% include 'modals/investigations_register_obj.html' %}
|
|
|
|
{% endwith %}
|
|
|
|
<div class="mr-2">
|
|
|
|
<button type="button" class="btn btn-lg btn-primary" data-toggle="modal" data-target="#investigations_register_obj_modal">
|
|
|
|
<i class="fas fa-microscope"></i> Investigations
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-10-13 14:02:30 +00:00
|
|
|
<div class="mx-2">
|
2022-07-13 13:10:27 +00:00
|
|
|
{% with obj_type='item', obj_id=meta['id'], obj_lvl=0%}
|
2020-10-13 14:02:30 +00:00
|
|
|
{% include 'import_export/block_add_user_object_to_export.html' %}
|
|
|
|
{% endwith %}
|
|
|
|
</div>
|
|
|
|
{% if is_hive_connected %}
|
|
|
|
<div>
|
|
|
|
{% include 'modals/create_hive_case.html' %}
|
|
|
|
<button type="button" class="btn btn-lg btn-outline-dark mx-1" data-toggle="modal" data-target="#create_hive_case_modal">
|
|
|
|
Create
|
|
|
|
<img id="thehive-icon" src="{{url_for('static', filename='image/thehive_icon.png') }}">
|
|
|
|
Case
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if misp_eventid %}
|
|
|
|
<div class="list-group" id="misp_event">
|
|
|
|
<li class="list-group-item active">MISP Events already Created</li>
|
|
|
|
<a target="_blank" href="{{ misp_url }}" class="list-group-item">{{ misp_url }}</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-07-13 13:10:27 +00:00
|
|
|
{% if meta['hive_case'] %}
|
2020-10-13 14:02:30 +00:00
|
|
|
<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 %}
|
|
|
|
|
2023-06-07 12:17:06 +00:00
|
|
|
{% if meta['investigations'] %}
|
|
|
|
<div id="accordionInvestigation" class="mb-2 mx-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header py-1" id="headingInvestigation">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-11">
|
|
|
|
<div class="mt-2">
|
|
|
|
<i class="fas fa-microscope"></i> Investigations
|
|
|
|
<div class="badge badge-warning">{{meta['investigations']|length}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-1">
|
|
|
|
<button class="btn btn-link btn-lg py-2 float-right rotate" data-toggle="collapse" data-target="#collapseInvestigation" aria-expanded="true" aria-controls="collapseInvestigation">
|
|
|
|
<i class="fas fa-chevron-circle-down"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="collapseInvestigation" class="collapse" aria-labelledby="headingInvestigation" data-parent="#accordionInvestigation">
|
|
|
|
<div class="card-body">
|
|
|
|
|
|
|
|
<table id="table_investigation" class="table table-striped border-primary">
|
|
|
|
<thead class="bg-dark text-white">
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>last modified</th>
|
|
|
|
<td>Info</td>
|
|
|
|
<th>Nb Objects</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody style="font-size: 15px;">
|
|
|
|
{% for dict_investigation in meta['investigations'] %}
|
|
|
|
<tr class="border-color: blue;">
|
|
|
|
<td>
|
|
|
|
<a href="{{ url_for('investigations_b.show_investigation') }}?uuid={{ dict_investigation['uuid'] }}">
|
|
|
|
{{ dict_investigation['info']}}
|
|
|
|
<div>
|
|
|
|
{% for tag in dict_investigation['tags'] %}
|
|
|
|
<span class="badge badge-{{ bootstrap_label[loop.index0 % 5] }} pull-left">{{ tag }}</span>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>{{ dict_investigation['date']}}</td>
|
|
|
|
<td>{{ dict_investigation['last_change']}}</td>
|
|
|
|
<td>{{ dict_investigation['info']}}</td>
|
|
|
|
<td>{{ dict_investigation['nb_objects']}}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if l_64|length != 0 %}
|
|
|
|
<div id="accordionDecoded" class="mb-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header py-1" id="headingDecoded">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-11">
|
|
|
|
<div class="mt-2">
|
|
|
|
<i class="fas fa-lock-open"></i> Decoded Files
|
|
|
|
<div class="badge badge-warning">{{l_64|length}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-1">
|
|
|
|
<button class="btn btn-link py-2 float-right rotate" data-toggle="collapse" data-target="#collapseDecoded" aria-expanded="true" aria-controls="collapseDecoded">
|
|
|
|
<i class="fas fa-chevron-circle-down"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="collapseDecoded" class="collapse show" aria-labelledby="headingDecoded" data-parent="#accordionDecoded">
|
|
|
|
<div class="card-body">
|
|
|
|
|
|
|
|
<table id="tableb64" class="red_table table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>estimated type</th>
|
|
|
|
<th>hash</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for b64 in l_64 %}
|
|
|
|
<tr>
|
|
|
|
<td><i class="fas {{ b64[0] }}"></i> {{ b64[1] }}</td>
|
|
|
|
<td><a target="_blank" href="{{ url_for('correlation.show_correlation') }}?type=decoded&id={{ b64[2] }}"> {{b64[2]}} ({{ b64[4] }})</a></td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
2024-09-24 12:42:47 +00:00
|
|
|
{# {% if meta['duplicates'] %}#}
|
|
|
|
{# <div id="accordionDuplicate" class="mb-2 mx-3">#}
|
|
|
|
{# <div class="card">#}
|
|
|
|
{# <div class="card-header py-1" id="headingDuplicate">#}
|
|
|
|
{# <div class="row">#}
|
|
|
|
{# <div class="col-11">#}
|
|
|
|
{# <div class="mt-2">#}
|
|
|
|
{# <i class="far fa-clone"></i> duplicates #}
|
|
|
|
{# <div class="badge badge-warning">{{meta['duplicates']|length}}</div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{# <div class="col-1">#}
|
|
|
|
{# <button class="btn btn-link btn-lg py-2 float-right rotate" data-toggle="collapse" data-target="#collapseDuplicate" aria-expanded="true" aria-controls="collapseDuplicate">#}
|
|
|
|
{# <i class="fas fa-chevron-circle-down"></i>#}
|
|
|
|
{# </button>#}
|
|
|
|
{# </div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{##}
|
|
|
|
{# <div id="collapseDuplicate" class="collapse" aria-labelledby="headingDuplicate" data-parent="#accordionDuplicate">#}
|
|
|
|
{# <div class="card-body">#}
|
|
|
|
{##}
|
|
|
|
{# <table class="table" id="tableDup">#}
|
|
|
|
{# <thead class="thead-dark">#}
|
|
|
|
{# <tr>#}
|
|
|
|
{# <th>Date</th>#}
|
|
|
|
{# <th>Similarity</th>#}
|
|
|
|
{# <th>Item</th>#}
|
|
|
|
{# <th>Diff</th>#}
|
|
|
|
{# </tr>#}
|
|
|
|
{# </thead>#}
|
|
|
|
{# <tbody>#}
|
|
|
|
{# {% for duplicate_id in meta['duplicates'] %}#}
|
|
|
|
{# <tr>#}
|
|
|
|
{# <td>{{meta['duplicates'][duplicate_id]['date']}}</td>#}
|
|
|
|
{# <td class="py-0">#}
|
|
|
|
{# <table class="table table-borderless table-sm my-0">#}
|
|
|
|
{# <tbody>#}
|
|
|
|
{# {%for dict_algo in meta['duplicates'][duplicate_id]|sort(attribute='algo')%}#}
|
|
|
|
{# <tr>#}
|
|
|
|
{# <td class="py-0">{{dict_algo['algo']}}</td>#}
|
|
|
|
{# <td class="w-100 py-0">#}
|
|
|
|
{# <div class="progress mt-1">#}
|
|
|
|
{# <div class="progress-bar progress-bar-striped {%if dict_algo['algo']=='tlsh'%}bg-secondary{%endif%}" role="progressbar" style="width: {{dict_algo['similarity']}}%;" aria-valuenow="{{dict_algo['similarity']}}" aria-valuemin="0" aria-valuemax="100">#}
|
|
|
|
{# {{dict_algo['similarity']}}%#}
|
|
|
|
{# </div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{# </td>#}
|
|
|
|
{# </tr>#}
|
|
|
|
{# {%endfor%}#}
|
|
|
|
{# </tbody>#}
|
|
|
|
{# </table>#}
|
|
|
|
{# </td>#}
|
|
|
|
{# <td>#}
|
|
|
|
{# <a href="{{ url_for('objects_item.showItem')}}?id={{duplicate_id}}" target="_blank">#}
|
|
|
|
{# {{duplicate_id}}#}
|
|
|
|
{# </a>#}
|
|
|
|
{# </td>#}
|
|
|
|
{# <td>#}
|
|
|
|
{# <a target="_blank" href="{{ url_for('objects_item.object_item_diff') }}?id1={{meta['id']}}&id2={{duplicate_id}}" class="fa fa-columns" title="Show diff"></a>#}
|
|
|
|
{# </td>#}
|
|
|
|
{# </tr>#}
|
|
|
|
{# {% endfor %}#}
|
|
|
|
{# </tbody>#}
|
|
|
|
{# </table>#}
|
|
|
|
{##}
|
|
|
|
{# </div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{##}
|
|
|
|
{# </div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{# {% endif %}#}
|
2020-10-13 14:02:30 +00:00
|
|
|
|
|
|
|
|
2023-06-07 12:17:06 +00:00
|
|
|
{# {% if l_64|length != 0 %}#}
|
|
|
|
{# <div id="accordionDecoded" class="mb-3">#}
|
|
|
|
{# <div class="card">#}
|
|
|
|
{# <div class="card-header py-1" id="headingDecoded">#}
|
|
|
|
{# <div class="row">#}
|
|
|
|
{# <div class="col-11">#}
|
|
|
|
{# <div class="mt-2">#}
|
|
|
|
{# <i class="fas fa-lock-open"></i> Decoded Files #}
|
|
|
|
{# <div class="badge badge-warning">{{l_64|length}}</div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{# <div class="col-1">#}
|
|
|
|
{# <button class="btn btn-link py-2 float-right rotate" data-toggle="collapse" data-target="#collapseDecoded" aria-expanded="true" aria-controls="collapseDecoded">#}
|
|
|
|
{# <i class="fas fa-chevron-circle-down"></i>#}
|
|
|
|
{# </button>#}
|
|
|
|
{# </div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{##}
|
|
|
|
{# <div id="collapseDecoded" class="collapse show" aria-labelledby="headingDecoded" data-parent="#accordionDecoded">#}
|
|
|
|
{# <div class="card-body">#}
|
|
|
|
{##}
|
|
|
|
{# <table id="tableb64" class="red_table table table-striped">#}
|
|
|
|
{# <thead>#}
|
|
|
|
{# <tr>#}
|
|
|
|
{# <th>estimated type</th>#}
|
|
|
|
{# <th>hash</th>#}
|
|
|
|
{# </tr>#}
|
|
|
|
{# </thead>#}
|
|
|
|
{# <tbody>#}
|
|
|
|
{# {% for b64 in l_64 %}#}
|
|
|
|
{# <tr>#}
|
|
|
|
{# <td><i class="fas {{ b64[0] }}"></i> {{ b64[1] }}</td>#}
|
|
|
|
{# <td><a target="_blank" href="{{ url_for('correlation.show_correlation') }}?type=decoded&id={{ b64[2] }}"> {{b64[2]}} ({{ b64[4] }})</a></td>#}
|
|
|
|
{# </tr>#}
|
|
|
|
{# {% endfor %}#}
|
|
|
|
{# </tbody>#}
|
|
|
|
{# </table>#}
|
|
|
|
{##}
|
|
|
|
{# </div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{##}
|
|
|
|
{##}
|
|
|
|
{# </div>#}
|
|
|
|
{# </div>#}
|
|
|
|
{# {% endif %}#}
|
2020-10-13 14:02:30 +00:00
|
|
|
|
|
|
|
|
2022-07-13 13:10:27 +00:00
|
|
|
{% if meta['crawler'] %}
|
2020-10-13 14:02:30 +00:00
|
|
|
<div id="accordionCrawler" class="mb-3 mx-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header py-1" id="headingCrawler">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-11">
|
|
|
|
<div class="mt-2">
|
|
|
|
<i class="fas fa-spider"></i> Crawler
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-1">
|
|
|
|
<button class="btn btn-link btn-lg py-2 float-right rotate down" data-toggle="collapse" data-target="#collapseCrawler" aria-expanded="true" aria-controls="collapseCrawler">
|
|
|
|
<i class="fas fa-chevron-circle-down"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="collapseCrawler" class="collapse show" aria-labelledby="headingCrawler" data-parent="#accordionCrawler">
|
|
|
|
|
|
|
|
<div class="row mx-0">
|
|
|
|
|
|
|
|
<div class="col-md-5">
|
|
|
|
<div class="my-2">
|
|
|
|
<table class="table table-sm">
|
|
|
|
<thead>
|
2022-10-25 14:25:19 +00:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td>Last Origin:</td>
|
|
|
|
</tr>
|
2020-10-13 14:02:30 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td><i class="far fa-file"></i></td>
|
|
|
|
<td>
|
2024-10-08 08:36:11 +00:00
|
|
|
<a class="badge" target="_blank" href="{{ url_for('objects_item.showItem', id=meta['father']) }}">{{ meta['father'] }}</a>
|
2020-10-13 14:02:30 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2022-10-25 14:25:19 +00:00
|
|
|
<tr>
|
2020-10-13 14:02:30 +00:00
|
|
|
<td><i class="fab fa-html5"></i></td>
|
|
|
|
<td>
|
2022-10-25 14:25:19 +00:00
|
|
|
<a class="badge" target="_blank" href="{{ url_for('crawler_splash.showDomain', domain=meta['crawler']['domain']) }}">{{ meta['crawler']['domain'] }}</a>
|
2020-10-13 14:02:30 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>url</td>
|
|
|
|
<td>
|
2022-07-13 13:10:27 +00:00
|
|
|
{{ meta['crawler']['url'] }}
|
2020-10-13 14:02:30 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-7">
|
2024-09-24 12:42:47 +00:00
|
|
|
|
|
|
|
<div class="mt-2">
|
|
|
|
{% include 'objects/image/block_blur_img_slider.html' %}
|
2020-10-13 14:02:30 +00:00
|
|
|
</div>
|
2024-09-24 12:42:47 +00:00
|
|
|
<span><img class="object_image mb-1" src="{% if meta['crawler']['screenshot'] %}{{ url_for('objects_item.screenshot', filename=meta['crawler']['screenshot']) }}{% endif %}" style="width: 100%;" alt=""></span>
|
2020-10-13 14:02:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2023-02-23 15:25:15 +00:00
|
|
|
{% if extracted_matches %}
|
|
|
|
<div id="accordion_extracted" class="mb-3 mx-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header py-1" id="heading_extracted">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-11">
|
|
|
|
<div class="mt-2">
|
|
|
|
<img id="misp-logo" src="{{ url_for('static', filename='image/ail-icon.png')}}" height="32"> Extracted
|
|
|
|
<div class="badge badge-warning">{{extracted_matches|length}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-1">
|
|
|
|
<button class="btn btn-link btn-lg py-2 float-right rotate down" data-toggle="collapse" data-target="#collapse_extracted" aria-expanded="true" aria-controls="collapseDecoded">
|
|
|
|
<i class="fas fa-chevron-circle-down"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="collapse_extracted" class="collapse show" aria-labelledby="heading_extracted" data-parent="#accordion_extracted">
|
|
|
|
<div class="card-body">
|
|
|
|
<table id="table_extracted" class="table table-striped">
|
|
|
|
<thead class="thead-dark">
|
|
|
|
<tr>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Extracted</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for match in extracted_matches %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<svg height="26" width="26">
|
|
|
|
<g class="nodes">
|
|
|
|
<circle cx="13" cy="13" r="13" fill="{{ extracted_matches[match]['icon']['color'] }}"></circle>
|
|
|
|
<text x="13" y="13" text-anchor="middle" dominant-baseline="central" class="graph_node_icon {{ extracted_matches[match]['icon']['style'] }}" font-size="16px">{{ extracted_matches[match]['icon']['icon'] }}</text>
|
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
{{ extracted_matches[match]['subtype'] }}
|
|
|
|
</td>
|
|
|
|
<td>{{ extracted_matches[match]['id'] }}</td>
|
|
|
|
<td>
|
|
|
|
{% for row in extracted_matches[match]['matches'] %}
|
|
|
|
<a href="#{{ row[0] }}:{{row[1] }}">{{ row[2] }}</a><br>
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-19 15:38:20 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2020-10-13 14:02:30 +00:00
|
|
|
<!-- nav-pills nav-justified nav-tabs-->
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body pt-0 py-1 px-2">
|
|
|
|
|
|
|
|
<ul class="nav nav-pills" id="pills-tab" role="tablist">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link active" id="pills-content-tab" data-toggle="pill" href="#pills-content" role="tab" aria-controls="pills-content" aria-selected="true">Content</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" id="pills-html2text-tab" data-toggle="pill" href="#pills-html2text" role="tab" aria-controls="pills-html2text" aria-selected="false">html2text</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#">Others</a>
|
|
|
|
<div class="dropdown-menu">
|
2022-07-13 13:10:27 +00:00
|
|
|
<a class="dropdown-item" href="{{ url_for('objects_item.item_raw_content', id=meta['id']) }}"><i class="far fa-file"></i> Raw Content</a>
|
2022-11-22 09:47:15 +00:00
|
|
|
<a class="dropdown-item" href="{{ url_for('objects_item.item_download', id=meta['id']) }}"><i class="fas fa-download"></i> Download</a>
|
2020-10-13 14:02:30 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
2024-09-24 12:42:47 +00:00
|
|
|
<li class="nav-item">
|
|
|
|
<button class="btn btn-info" onclick="wrap_content()"><span id="btn_wrap_text">Wrap Text</span></button>
|
|
|
|
</li>
|
2020-10-13 14:02:30 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content" id="pills-tabContent">
|
|
|
|
<div class="tab-pane fade show active" id="pills-content" role="tabpanel" aria-labelledby="pills-content-tab">
|
2022-12-19 15:38:20 +00:00
|
|
|
{% if not extracted %}
|
2024-09-24 12:42:47 +00:00
|
|
|
<p class="my-0"> <pre class="border" id="obj_content">{{ meta['content'] }}</pre></p>
|
2022-12-19 15:38:20 +00:00
|
|
|
{% else %}
|
2024-09-24 12:42:47 +00:00
|
|
|
<p class="my-0"> <pre class="border" id="obj_content">{{ meta['content'][:extracted[0][0]] }}{% for row in extracted %}<span class="hg-text" data-toggle="popover" data-trigger="hover" data-html="true" title="Extracted:" data-content="<ul class="list-group">{% for r in row[3] %}<li class="list-group-item"><div><svg height="26" width="26"><g class="nodes"><circle cx="13" cy="13" r="13" fill="{{ extracted_matches[r[0]]['icon']['color'] }}"></circle><text x="13" y="13" text-anchor="middle" dominant-baseline="central" class="{{ extracted_matches[r[0]]['icon']['style'] }}" font-size="16px">{{ extracted_matches[r[0]]['icon']['icon'] }}</text></g></svg> {{ extracted_matches[r[0]]['subtype'] }}</div>{{ extracted_matches[r[0]]['id'] }} <div><b>{{ r[1] }}</b></div></li>{% endfor %}</ul>" id="{{ row[0] }}:{{ row[1] }}">{{ meta['content'][row[0]:row[1]] }}</span>{% if loop.index + 1 > extracted|length %}{{ meta['content'][extracted[-1][1]:] }}{% else %}{{ meta['content'][row[1]:extracted[loop.index][0]] }}{% endif %}{% endfor %}</pre></p>
|
2022-12-19 15:38:20 +00:00
|
|
|
{% endif %}
|
2020-10-13 14:02:30 +00:00
|
|
|
</div>
|
|
|
|
<div class="tab-pane fade" id="pills-html2text" role="tabpanel" aria-labelledby="pills-html2text-tab">
|
|
|
|
<p class="my-0"> <pre id="html2text-container" class="border"></pre></p>
|
|
|
|
</div>
|
2024-09-24 12:42:47 +00:00
|
|
|
<div class="tab-pane fade" id="pills-html2text" role="tabpanel" aria-labelledby="pills-html2text-tab">
|
|
|
|
<p class="my-0"> <pre id="html2text-container" class="border"></pre></p>
|
|
|
|
</div>
|
2020-10-13 14:02:30 +00:00
|
|
|
</div>
|
2022-12-19 15:38:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-13 14:02:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-02-23 15:25:15 +00:00
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
2024-09-24 12:42:47 +00:00
|
|
|
{% if meta['crawler'] %}
|
|
|
|
{% if not meta['crawler']['is_tags_safe'] %}
|
|
|
|
blur_unsafe();
|
|
|
|
{% else %}
|
|
|
|
blur_images();
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2023-02-23 15:25:15 +00:00
|
|
|
{% if extracted %}
|
|
|
|
$('#table_extracted').DataTable();
|
|
|
|
{% endif %}
|
|
|
|
$(".rotate").click(function(){
|
|
|
|
$(this).toggleClass("down");
|
2024-09-24 12:42:47 +00:00
|
|
|
});
|
2024-03-27 15:30:29 +00:00
|
|
|
$('[data-toggle="popover"]').popover({
|
|
|
|
boundary:'window',
|
2024-09-24 12:42:47 +00:00
|
|
|
});
|
2024-03-27 15:30:29 +00:00
|
|
|
});
|
2020-10-13 14:02:30 +00:00
|
|
|
|
2024-09-24 12:42:47 +00:00
|
|
|
let text_wrapped = false;
|
|
|
|
function wrap_content() {
|
|
|
|
if (text_wrapped) {
|
|
|
|
$('#obj_content').removeClass("text_wrap");
|
|
|
|
$('#btn_wrap_text').text("Wrap Text");
|
|
|
|
text_wrapped = false;
|
|
|
|
} else {
|
|
|
|
$('#obj_content').addClass("text_wrap");
|
|
|
|
$('#btn_wrap_text').text("UnWrap Text");
|
|
|
|
text_wrapped = true;
|
2020-10-13 14:02:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-24 12:42:47 +00:00
|
|
|
$('#pills-html2text-tab').on('shown.bs.tab', function (e) {
|
|
|
|
if ($('#html2text-container').is(':empty')){
|
|
|
|
$.get("{{ url_for('objects_item.html2text') }}?id={{ meta['id'] }}").done(function(data){
|
|
|
|
$('#html2text-container').text(data);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
// $('[data-toggle="popover"]').popover();
|
|
|
|
</script>
|
2020-10-13 14:02:30 +00:00
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
|
|
</html>
|