diff --git a/startScan/templates/startScan/detail_endpoint_scan.html b/startScan/templates/startScan/detail_endpoint_scan.html new file mode 100644 index 000000000..787818496 --- /dev/null +++ b/startScan/templates/startScan/detail_endpoint_scan.html @@ -0,0 +1,164 @@ +{% extends 'base/base.html' %} +{% load static %} +{% load humanize %} +{% load custom_tags %} +{% block title %} +Scan history - Endpoints +{% endblock title %} + +{% block custom_js_css_link %} + + + + + + + + + + + + + + + +{% endblock custom_js_css_link %} + +{% block breadcrumb_title %} +Detailed Scan for {{history.domain_name}} - Endpoints +{% endblock breadcrumb_title %} + + +{% block main_content %} +
+ {% if history.scan_type.fetch_url %} +
+
+
+
Endpoints
+ {% if endpoint_count %} + Export Endpoints(txt format) + {% endif %} +
+ + + + + + + + + + +
EndpointHTTP StatusContent TypeContent LengthPage Title
+
+
+
+
+ {% endif %} +
+{% endblock main_content %} + + +{% block page_level_script %} + + + + + + + + + + + +{% endblock page_level_script %} diff --git a/startScan/templates/startScan/detail_scan.html b/startScan/templates/startScan/detail_scan.html index 8b77bf523..556411aad 100644 --- a/startScan/templates/startScan/detail_scan.html +++ b/startScan/templates/startScan/detail_scan.html @@ -99,7 +99,7 @@ Detailed Scan for {{history.domain_name}}
Total Alive Endpoints: {{endpoint_alive_count}}
- View all Endpoints + View all Endpoints
@@ -119,7 +119,7 @@ Detailed Scan for {{history.domain_name}}
{{critical_count}} Critical and {{high_count}} High
- View all Vulnerabilities + View all Vulnerabilities
@@ -190,52 +190,6 @@ Detailed Scan for {{history.domain_name}} - {% if history.scan_type.vulnerability_scan %} -
-
-
-
Vulnerability Scan Results
-
- - - - - - - - - -
TitleSeverityVulnerable URLDescription
-
-
-
-
- {% endif %} - {% if history.scan_type.fetch_url %} -
-
-
-
Endpoints
- {% if endpoint_count %} - Export Endpoints(txt format) - {% endif %} -
- - - - - - - - - - -
EndpointHTTP StatusContent TypeContent LengthPage Title
-
-
-
-
- {% endif %} {% endblock main_content %} @@ -446,143 +400,6 @@ $(document).ready(function() { }); + +{% endblock custom_js_css_link %} + +{% block breadcrumb_title %} +Detailed Scan for {{history.domain_name}} - Vulnerabilities +{% endblock breadcrumb_title %} + + +{% block main_content %} +
+ {% if history.scan_type.vulnerability_scan %} +
+
+
+
Vulnerability Scan Results
+
+ + + + + + + + + +
TitleSeverityVulnerable URLDescription
+
+
+
+
+ {% endif %} +
+{% endblock main_content %} + + +{% block page_level_script %} + + + + + + + + + + + +{% endblock page_level_script %} diff --git a/startScan/urls.py b/startScan/urls.py index 9b8d71679..087583e58 100644 --- a/startScan/urls.py +++ b/startScan/urls.py @@ -15,6 +15,14 @@ urlpatterns = [ 'detail/', views.detail_scan, name='detail_scan'), + path( + 'detail/vuln/', + views.detail_vuln_scan, + name='detail_vuln_scan'), + path( + 'detail/endpoint/', + views.detail_endpoint_scan, + name='detail_endpoint_scan'), path( 'start/', views.start_scan_ui, diff --git a/startScan/views.py b/startScan/views.py index 92a9dcfa5..aa36e0a01 100644 --- a/startScan/views.py +++ b/startScan/views.py @@ -67,6 +67,18 @@ def detail_scan(request, id): return render(request, 'startScan/detail_scan.html', context) +def detail_vuln_scan(request, id): + history = get_object_or_404(ScanHistory, id=id) + context = {'scan_history_id': id, 'history': history} + return render(request, 'startScan/detail_vuln_scan.html', context) + + +def detail_endpoint_scan(request, id): + history = get_object_or_404(ScanHistory, id=id) + context = {'scan_history_id': id, 'history': history} + return render(request, 'startScan/detail_endpoint_scan.html', context) + + def start_scan_ui(request, host_id): domain = get_object_or_404(Domain, id=host_id) if request.method == "POST":