mirror of https://github.com/CIRCL/lookyloo
parent
ac919356d7
commit
55ef3ed04d
|
@ -160,7 +160,7 @@ function UnbookmarkAllNodes() {
|
||||||
.on('mouseout', (event, d) => d3.select('#tooltip').style('opacity', 0));
|
.on('mouseout', (event, d) => d3.select('#tooltip').style('opacity', 0));
|
||||||
};
|
};
|
||||||
|
|
||||||
function MarkAsLegitimate(capture_uuid, hostnode_uuid=null, urlnode_uuid=null) {
|
function MarkAsKnown(capture_uuid, hostnode_uuid=null, urlnode_uuid=null) {
|
||||||
let data = {};
|
let data = {};
|
||||||
if (hostnode_uuid != null) { data['hostnode_uuid'] = hostnode_uuid; };
|
if (hostnode_uuid != null) { data['hostnode_uuid'] = hostnode_uuid; };
|
||||||
if (urlnode_uuid != null) { data['urlnode_uuid'] = urlnode_uuid; };
|
if (urlnode_uuid != null) { data['urlnode_uuid'] = urlnode_uuid; };
|
||||||
|
@ -545,7 +545,7 @@ function update(root, computed_node_width=0) {
|
||||||
.style('opacity', 1)
|
.style('opacity', 1)
|
||||||
.style('left', `${event.pageX + 10}px`)
|
.style('left', `${event.pageX + 10}px`)
|
||||||
.style('top', `${event.pageY + 10}px`)
|
.style('top', `${event.pageY + 10}px`)
|
||||||
.text('This node has only legitimate content');
|
.text('This node has only known content');
|
||||||
})
|
})
|
||||||
.on('mouseout', (event, d) => d3.select('#tooltip').style('opacity', 0));
|
.on('mouseout', (event, d) => d3.select('#tooltip').style('opacity', 0));
|
||||||
} else if (d.data.all_empty) {
|
} else if (d.data.all_empty) {
|
||||||
|
|
|
@ -134,7 +134,7 @@
|
||||||
</li>
|
</li>
|
||||||
{% if enable_context_by_users %}
|
{% if enable_context_by_users %}
|
||||||
<li>
|
<li>
|
||||||
<a href="#/" role="button" onclick="MarkAsLegitimate('{{ tree_uuid }}');">Mark capture as legitimate</a>
|
<a href="#/" role="button" onclick="MarkAsKnown('{{ tree_uuid }}');">Mark all the captures' entries as known</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if enable_mail_notification %}
|
{% if enable_mail_notification %}
|
||||||
|
@ -161,7 +161,7 @@
|
||||||
</center>
|
</center>
|
||||||
<hr/>
|
<hr/>
|
||||||
<img src="{{ url_for('static', filename='check.svg') }}"
|
<img src="{{ url_for('static', filename='check.svg') }}"
|
||||||
alt="Legitimate Node" height="20" width="20"> Legit node<br>
|
alt="Known Node" height="20" width="20"> Known node<br>
|
||||||
|
|
||||||
<img src="{{ url_for('static', filename='bomb.svg') }}"
|
<img src="{{ url_for('static', filename='bomb.svg') }}"
|
||||||
alt="Malicious Node" height="20" width="20"> Malicious node<br>
|
alt="Malicious Node" height="20" width="20"> Malicious node<br>
|
||||||
|
|
Loading…
Reference in New Issue