chg: [correlation] correlation graph: filter title objects

pull/594/head
Terrtia 2023-05-26 10:47:58 +02:00
parent 405d097024
commit b4f1a43208
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
3 changed files with 9 additions and 1 deletions

View File

@ -61,7 +61,8 @@ class Crawler(AbstractModule):
self.domain = None self.domain = None
# TODO Replace with warning list ??? # TODO Replace with warning list ???
self.placeholder_screenshots = {'27e14ace10b0f96acd2bd919aaa98a964597532c35b6409dff6cc8eec8214748'} self.placeholder_screenshots = {'27e14ace10b0f96acd2bd919aaa98a964597532c35b6409dff6cc8eec8214748',
'3e66bf4cc250a68c10f8a30643d73e50e68bf1d4a38d4adc5bfc4659ca2974c0'} # 404
# Send module state to logs # Send module state to logs
self.logger.info('Crawler initialized') self.logger.info('Crawler initialized')

View File

@ -95,6 +95,9 @@ def show_correlation():
correl_option = request.form.get('ItemCheck') correl_option = request.form.get('ItemCheck')
if correl_option: if correl_option:
filter_types.append('item') filter_types.append('item')
correl_option = request.form.get('TitleCheck')
if correl_option:
filter_types.append('title')
# list as params # list as params
filter_types = ",".join(filter_types) filter_types = ",".join(filter_types)

View File

@ -206,6 +206,10 @@
<input class="form-check-input" type="checkbox" value="True" id="ScreenshotCheck" name="ScreenshotCheck" {%if "screenshot" in dict_object["filter"]%}checked{%endif%}> <input class="form-check-input" type="checkbox" value="True" id="ScreenshotCheck" name="ScreenshotCheck" {%if "screenshot" in dict_object["filter"]%}checked{%endif%}>
<label class="form-check-label" for="ScreenshotCheck">Screenshot</label> <label class="form-check-label" for="ScreenshotCheck">Screenshot</label>
</div> </div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="True" id="TitleCheck" name="TitleCheck" {%if "title" in dict_object["filter"]%}checked{%endif%}>
<label class="form-check-label" for="TitleCheck">Title</label>
</div>
<div class="form-check"> <div class="form-check">
<input class="form-check-input" type="checkbox" value="True" id="PgpCheck" name="PgpCheck" {%if "pgp" in dict_object["filter"]%}checked{%endif%}> <input class="form-check-input" type="checkbox" value="True" id="PgpCheck" name="PgpCheck" {%if "pgp" in dict_object["filter"]%}checked{%endif%}>
<label class="form-check-label" for="PgpCheck">PGP</label> <label class="form-check-label" for="PgpCheck">PGP</label>