diff --git a/reNgine/common_func.py b/reNgine/common_func.py index 7a7cadaf..77538a8f 100644 --- a/reNgine/common_func.py +++ b/reNgine/common_func.py @@ -55,9 +55,6 @@ def get_interesting_endpoint(scan_history=None, target=None): url_lookup_query |= Q(http_url__icontains=key) page_title_lookup_query |= Q(page_title__iregex="\\y{}\\y".format(key)) - print(url_lookup_query) - print(page_title_lookup_query) - if target: url_lookup = WayBackEndPoint.objects.filter( target_domain__id=target).filter(url_lookup_query) diff --git a/targetApp/templates/target/summary.html b/targetApp/templates/target/summary.html index bff2c5ed..f130d96f 100644 --- a/targetApp/templates/target/summary.html +++ b/targetApp/templates/target/summary.html @@ -49,7 +49,69 @@ Target Summary for {{target.domain_name}} {{this_week_scan_count}} Scans this week
- View all Scans + View all Scans + diff --git a/targetApp/views.py b/targetApp/views.py index 4034493c..f78df444 100644 --- a/targetApp/views.py +++ b/targetApp/views.py @@ -224,4 +224,6 @@ def target_summary(request, id): "name", "severity").exclude(severity=0).annotate(count=Count('name')).order_by("-count")[:7] context['interesting_subdomain'] = get_interesting_subdomains(target=id) context['interesting_endpoint'] = get_interesting_endpoint(target=id) + context['scan_history'] = ScanHistory.objects.filter( + domain_name=id).order_by('-last_scan_date') return render(request, 'target/summary.html', context)