From 89c5321d0564ba065f8ccd211b9f69a7c4e01993 Mon Sep 17 00:00:00 2001 From: Raynald Date: Wed, 15 Nov 2023 15:00:40 +0100 Subject: [PATCH 1/8] Add a check to not load datatables twice --- web/startScan/templates/startScan/detail_scan.html | 5 +++++ web/targetApp/templates/target/summary.html | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/web/startScan/templates/startScan/detail_scan.html b/web/startScan/templates/startScan/detail_scan.html index ffecb9b88..14f93b05c 100644 --- a/web/startScan/templates/startScan/detail_scan.html +++ b/web/startScan/templates/startScan/detail_scan.html @@ -2111,6 +2111,11 @@

Date: Wed, 15 Nov 2023 15:42:33 +0100 Subject: [PATCH 2/8] Prevent reload on click for vuln DT + add reload btn --- web/startScan/templates/startScan/detail_scan.html | 9 +++++++++ web/startScan/templates/startScan/vulnerabilities.html | 3 +++ web/targetApp/templates/target/summary.html | 9 +++++++-- web/templates/base/_items/vulnerability_tab_content.html | 3 +++ 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/web/startScan/templates/startScan/detail_scan.html b/web/startScan/templates/startScan/detail_scan.html index 14f93b05c..88de5a42b 100644 --- a/web/startScan/templates/startScan/detail_scan.html +++ b/web/startScan/templates/startScan/detail_scan.html @@ -1536,6 +1536,11 @@

', diff --git a/web/templates/base/_items/vulnerability_tab_content.html b/web/templates/base/_items/vulnerability_tab_content.html index 675f13578..4f0d7e16b 100644 --- a/web/templates/base/_items/vulnerability_tab_content.html +++ b/web/templates/base/_items/vulnerability_tab_content.html @@ -87,6 +87,9 @@ + + +
From 3ceff80a6bf5464f62bec2d3d798e734fcb54518 Mon Sep 17 00:00:00 2001 From: Raynald Date: Wed, 15 Nov 2023 15:50:43 +0100 Subject: [PATCH 3/8] Replace bad id --- web/startScan/templates/startScan/detail_scan.html | 2 +- web/targetApp/templates/target/summary.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/startScan/templates/startScan/detail_scan.html b/web/startScan/templates/startScan/detail_scan.html index 88de5a42b..e48c23808 100644 --- a/web/startScan/templates/startScan/detail_scan.html +++ b/web/startScan/templates/startScan/detail_scan.html @@ -1538,7 +1538,7 @@

Date: Wed, 15 Nov 2023 16:07:12 +0100 Subject: [PATCH 4/8] Move reload button --- .../base/_items/vulnerability_tab_content.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/templates/base/_items/vulnerability_tab_content.html b/web/templates/base/_items/vulnerability_tab_content.html index 4f0d7e16b..8c309842b 100644 --- a/web/templates/base/_items/vulnerability_tab_content.html +++ b/web/templates/base/_items/vulnerability_tab_content.html @@ -25,7 +25,7 @@ -
-

From fe9c64f11b0cf08dd630f5e78dcbef762e20decb Mon Sep 17 00:00:00 2001 From: Raynald Date: Wed, 15 Nov 2023 16:13:40 +0100 Subject: [PATCH 5/8] Add missing reload js listener on target page --- web/targetApp/templates/target/summary.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/targetApp/templates/target/summary.html b/web/targetApp/templates/target/summary.html index 1c3f0c8c5..48a3ed7cf 100644 --- a/web/targetApp/templates/target/summary.html +++ b/web/targetApp/templates/target/summary.html @@ -1568,6 +1568,9 @@

Loading Screenshots...

-
+
@@ -2020,6 +2020,10 @@

Date: Wed, 15 Nov 2023 16:57:49 +0100 Subject: [PATCH 7/8] Move screenshot condition to correct location --- web/startScan/static/startScan/js/detail_scan.js | 3 --- web/startScan/templates/startScan/detail_scan.html | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/web/startScan/static/startScan/js/detail_scan.js b/web/startScan/static/startScan/js/detail_scan.js index b88a1f46d..b2241da97 100644 --- a/web/startScan/static/startScan/js/detail_scan.js +++ b/web/startScan/static/startScan/js/detail_scan.js @@ -483,9 +483,6 @@ function get_osint_users(scan_id){ } function get_screenshot(scan_id){ - if($('#screenshots-table').children().length > 0) { - return false; - } var port_array = []; var service_array = []; var tech_array = []; diff --git a/web/startScan/templates/startScan/detail_scan.html b/web/startScan/templates/startScan/detail_scan.html index 82c07d6f0..afb7bbd53 100644 --- a/web/startScan/templates/startScan/detail_scan.html +++ b/web/startScan/templates/startScan/detail_scan.html @@ -2020,8 +2020,7 @@

0) { return false; } get_screenshot({{scan_history_id}}); From 66f2dba118181382e3492236423b250ffa9e7c69 Mon Sep 17 00:00:00 2001 From: Raynald Date: Fri, 17 Nov 2023 23:47:07 +0100 Subject: [PATCH 8/8] Prevent reload from visualization (which dup the graph) --- web/startScan/templates/startScan/detail_scan.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/startScan/templates/startScan/detail_scan.html b/web/startScan/templates/startScan/detail_scan.html index afb7bbd53..2e3dc6471 100644 --- a/web/startScan/templates/startScan/detail_scan.html +++ b/web/startScan/templates/startScan/detail_scan.html @@ -2107,6 +2107,9 @@

0) { + return false; + } visualise_scan_results({{scan_history_id}}); });