mirror of https://github.com/CIRCL/lookyloo
new: toggle select in subsequent URLs capture
parent
954121a363
commit
f17f6f1a37
|
@ -15,6 +15,8 @@ if __name__ == '__main__':
|
|||
to_save: Dict = {'static': {}}
|
||||
|
||||
for resource in (dest_dir / 'static').glob('*'):
|
||||
if resource.name[0] == '.':
|
||||
continue
|
||||
with resource.open('rb') as f:
|
||||
to_save['static'][resource.name] = base64.b64encode(hashlib.sha512(f.read()).digest()).decode('utf-8')
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"favicon.ico": "KOmrfwRbOQqhhwSeBkNpMRAxSVMmmLg+2kRMg9iSv7OWjE9spJc7x4MKB4AE/hi0knaV7UBVctAU6XZ7AC72ZA==",
|
||||
"font.png": "RwoQkj9dT9SLUL2F7cAA16Nat9t2hDb58eQlHF9ThUar829p0INUXG+5XuDaFOC8SsmCZK5vw2f+YAQ6mLC1Qw==",
|
||||
"generic.css": "6pYUMp7DzXI/O531PJ2PIB0/ce0TdIWEOEC4RfpcbMK2SRgKkZfGn12aixsTJEzAkF8Ao0/Bz405v3Bl0f7RUQ==",
|
||||
"generic.js": "c/p+6Dk2kcwd9T9kf/IfoCX/ZU+VbtlUGYBo3qNSzwoUYC1soWwdIwM5rFxwxz9a1tORc/Wu0EFCPRw4ZwbqkQ==",
|
||||
"generic.js": "UmFl4fHmB/UjMdUuYdFy9BfzQlJTyeImNHCFyBO4SdLxBCwCGxkF3NQvel1PKqW8JTnoPlPpq/n9d+vCfPeegA==",
|
||||
"html.png": "T7pZrb8MMDsA/JV/51hu+TOglTqlxySuEVY0rpDjTuAEyhzk2v+W4kYrj7vX+Tp3n2d2lvVD08PwhCG62Yfbzg==",
|
||||
"ifr.png": "rI5YJypmz1QcULRf9UaOYSqV4tPUSxUdLAycoYzCwywt4Pw4eWzBg9SUr769VyIimoiIyJR+aNuoIA4p5WO2fQ==",
|
||||
"img.png": "bknBlmIfSb9qv9/lSaJ2idn2a8bDyvJ2pATj4oOpehRlCdXlWYOyb2jN3wV1QGHFoqyxNqOv5MfCpI0tbqkicg==",
|
||||
|
|
|
@ -17,3 +17,10 @@ let copyToClipboard = (text, el) => {
|
|||
document.body.removeChild(copyTextArea);
|
||||
el.attr('data-original-title', elOriginalText);
|
||||
}
|
||||
|
||||
function checkAllBoxes(name) {
|
||||
let checkboxs = document.getElementsByName(name);
|
||||
for(let i = 0; i < checkboxs.length ; i++) {
|
||||
checkboxs[i].checked = !checkboxs[i].checked;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,9 +13,6 @@
|
|||
|
||||
{% block scripts %}
|
||||
{{ super() }}
|
||||
<script src='{{ url_for('static', filename='generic.js') }}'
|
||||
integrity="{{get_sri('static', 'generic.js')}}"
|
||||
crossorigin="anonymous"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(() => {
|
||||
$('table.table').DataTable( {
|
||||
|
|
|
@ -41,6 +41,9 @@
|
|||
<script src='{{ url_for('static', filename='datatables.min.js') }}'
|
||||
integrity="{{get_sri('static', 'datatables.min.js')}}"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src='{{ url_for('static', filename='generic.js') }}'
|
||||
integrity="{{get_sri('static', 'generic.js')}}"
|
||||
crossorigin="anonymous"></script>
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,8 +1,15 @@
|
|||
<div>
|
||||
<h4>Select below the URLs you want to capture.</h4>
|
||||
<div class="dropdown-divider"></div>
|
||||
<button type="button" class="btn btn-secondary" id="toggleSelection"
|
||||
onclick="checkAllBoxes('url')"
|
||||
title="(un)select all URLs">
|
||||
Toggle selection
|
||||
</button>
|
||||
<div class="dropdown-divider"></div>
|
||||
<form role="form" action="{{ url_for('bulk_captures', base_tree_uuid=base_tree_uuid) }}" method=post enctype=multipart/form-data>
|
||||
{% for url in urls %}
|
||||
<div class="form-check form-check">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="url" id="url_{{loop.index}}" value="{{loop.index}}">
|
||||
<label class="form-check-label" for="url_{{loop.index}}">{{url}}</label>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue