mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-10-20 23:31:31 +02:00
Rebuild the scan detail view into a tabbed results page: Overview (tech/status/web-server distributions, TLS health, top networks and services), Web assets (rich httpx table with screenshots, status, tech, CDN/WAF/TLS-expired badges + a full per-asset detail drawer), Subdomains (denormalized HTTP summary), Infrastructure (IP-centric cards correlating open ports and the hosts resolving to each IP), and Pipeline. Assets correlate by value within the scan (subdomain.name / http_asset.host / ip), so one IP card surfaces every co-located host. API: add per-scan http-assets, ports and ips list+summary endpoints plus services mirroring the subdomains pattern, and serve screenshots through an authenticated /media/screenshot route; mount scan_media into the api container so it can read worker-written captures. Fix two serializers that silently dropped fields: ScanRead omitted http_assets_found (scan detail and list 500'd), and the subdomain serializer never emitted the denormalized HTTP summary it stores. Drop leftover docstrings and banner comments from the httpx client, parser and field-map.
66 lines
1.7 KiB
Python
66 lines
1.7 KiB
Python
from fastapi import APIRouter
|
|
|
|
from app.api.v1 import (
|
|
activity_logs,
|
|
api_keys,
|
|
auth,
|
|
celery_health,
|
|
dashboard,
|
|
events,
|
|
http_assets,
|
|
instance_settings,
|
|
ip_addresses,
|
|
media,
|
|
notification_channels,
|
|
notifications,
|
|
onboarding,
|
|
organizations,
|
|
ports,
|
|
projects,
|
|
proxies,
|
|
ripestat,
|
|
scan_contexts,
|
|
scan_engines,
|
|
scan_schedules,
|
|
scans,
|
|
subdomains,
|
|
tags,
|
|
targets,
|
|
totp,
|
|
users,
|
|
viewdns,
|
|
whois,
|
|
)
|
|
|
|
router = APIRouter()
|
|
|
|
router.include_router(auth.router)
|
|
router.include_router(users.router)
|
|
router.include_router(events.router)
|
|
router.include_router(projects.router)
|
|
router.include_router(organizations.router)
|
|
router.include_router(targets.router)
|
|
router.include_router(tags.router)
|
|
router.include_router(activity_logs.router)
|
|
router.include_router(notifications.router)
|
|
router.include_router(api_keys.router)
|
|
router.include_router(whois.router)
|
|
router.include_router(viewdns.router)
|
|
router.include_router(ripestat.router)
|
|
router.include_router(scan_engines.router)
|
|
router.include_router(scan_contexts.router)
|
|
router.include_router(scan_schedules.router)
|
|
router.include_router(scans.router)
|
|
router.include_router(subdomains.router)
|
|
router.include_router(http_assets.router)
|
|
router.include_router(ports.router)
|
|
router.include_router(ip_addresses.router)
|
|
router.include_router(media.router)
|
|
router.include_router(dashboard.router)
|
|
router.include_router(celery_health.router)
|
|
router.include_router(instance_settings.router)
|
|
router.include_router(proxies.router)
|
|
router.include_router(notification_channels.router)
|
|
router.include_router(onboarding.router)
|
|
router.include_router(totp.router)
|