diff --git a/web/api/views.py b/web/api/views.py index 89242fa5..e52a1e7b 100644 --- a/web/api/views.py +++ b/web/api/views.py @@ -23,8 +23,11 @@ class ListTodoNotes(APIView): req = self.request notes = TodoNote.objects.all().order_by('-id') scan_id = req.query_params.get('scan_id') + todo_id = req.query_params.get('todo_id') if scan_id: notes = notes.filter(scan_history__id=scan_id) + if todo_id: + notes = notes.filter(id=todo_id) notes = ReconNoteSerializer(notes, many=True) return Response({'notes': notes.data}) diff --git a/web/startScan/static/startScan/js/detail_scan.js b/web/startScan/static/startScan/js/detail_scan.js index e65e34d5..162451fa 100644 --- a/web/startScan/static/startScan/js/detail_scan.js +++ b/web/startScan/static/startScan/js/detail_scan.js @@ -1227,21 +1227,32 @@ function get_recon_notes(scan_id){ $('#tasks-count').empty(); $('#recon-task-list').empty(); rand_id = get_randid(); + $('#recon-task-list').append(`
`); for (var val in data['notes']){ note = data['notes'][val]; - $('#recon-task-list').append(`${truncate(note['description'], 100)}
+${note['description']}
`); + }); +} diff --git a/web/startScan/templates/startScan/detail_scan.html b/web/startScan/templates/startScan/detail_scan.html index 6e2f71ff..0796528e 100644 --- a/web/startScan/templates/startScan/detail_scan.html +++ b/web/startScan/templates/startScan/detail_scan.html @@ -23,12 +23,14 @@ Detailed Scan - + + + {% endblock custom_js_css_link %} @@ -374,121 +376,70 @@ Detailed Scan Results for {{history.domain.name}}Vulnerability |
- Severity |
- Vulnerable URL |
-
|---|---|---|
| {{vulnerability.name}} | -{% if vulnerability.severity == 0 %} - Info - {% elif vulnerability.severity == 1 %} - Low - {% elif vulnerability.severity == 2 %} - Medium - {% elif vulnerability.severity == 3 %} - High - {% elif vulnerability.severity == 4 %} - Critical - {% endif %} | -{{vulnerability.http_url|truncatechars:50}} | -
Comparing against the scan performed on {{last_scan.start_scan_date}}
-During this scan - - -
+Subdomain |
- Page Title |
- Status |
- Content Length |
- Change |
-
|---|
Comparing against the scan performed on {{last_scan.start_scan_date}}
-During this scan - - -
-URL |
- Page Title |
- Status |
- Content Length |
- Change |
-
|---|
| Status | -Subdomain | -Endpoints | -Vulnerabilities | -Status | -Title | -IP Address | -Ports | -Content Length | -Screenshot | -Response Time | -Technology | -Checked | -HTTP URL | -CNAME | -is_interesting | -Info | -Low | -Medium | -High | -Critical | -
|---|
Vulnerability |
+ Severity |
+ Vulnerable URL |
+
|---|---|---|
| {{vulnerability.name}} | +{% if vulnerability.severity == 0 %} + Info + {% elif vulnerability.severity == 1 %} + Low + {% elif vulnerability.severity == 2 %} + Medium + {% elif vulnerability.severity == 3 %} + High + {% elif vulnerability.severity == 4 %} + Critical + {% endif %} | +{{vulnerability.http_url|truncatechars:50}} | +
HTTP Status
- -IP Address
- -Running Services
- -Ports
- -Technology
- -| Status | -Subdomain | -Status | -Page Title | -Directories | -HTTP URL | -Is Intereting | -Checked | -
|---|
| HTTP URL | -Status | -Page Title | -Tags | -Content Type | -Content Length | -Technology | -Webserver | -Response time | -Default URL | -
|---|
| Status | -Title | -Severity | -Vulnerable URL | -Detail | -Status | -Matcher Name | -Tags | -Reference | -
|---|
Comparing against the scan performed on {{last_scan.start_scan_date}}
+During this scan + + +
+Employee Name |
- Designation |
+ Subdomain |
+ Page Title |
+ Status |
+ Content Length |
+ Change |
|---|
Comparing against the scan performed on {{last_scan.start_scan_date}}
+During this scan + + +
+Email Address |
- Esposed Credentials |
-
|---|
Document |
- User |
- Metadata |
-
|---|
Dork Type |
- Description |
URL |
+ Page Title |
+ Status |
+ Content Length |
+ Change |
|---|
| Status | +Subdomain | +Endpoints | +Vulnerabilities | +Status | +Title | +IP Address | +Ports | +Content Length | +Screenshot | +Response Time | +Technology | +Checked | +HTTP URL | +CNAME | +is_interesting | +Info | +Low | +Medium | +High | +Critical | +
|---|
HTTP Status
+ +IP Address
+ +Running Services
+ +Ports
+ +Technology
+ +| Status | +Subdomain | +Status | +Page Title | +Directories | +HTTP URL | +Is Intereting | +Checked | +
|---|
| HTTP URL | +Status | +Page Title | +Tags | +Content Type | +Content Length | +Technology | +Webserver | +Response time | +Default URL | +
|---|
| Status | +Title | +Severity | +Vulnerable URL | +Detail | +Status | +Matcher Name | +Tags | +Reference | +
|---|
Employee Name |
+ Designation |
+
|---|
Email Address |
+ Esposed Credentials |
+
|---|
Document |
+ User |
+ Metadata |
+
|---|
Dork Type |
+ Description |
+ URL |
+
|---|