Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions reconscript/static/js/consent.js

This file was deleted.

7 changes: 0 additions & 7 deletions reconscript/templates/consent_modal.html

This file was deleted.

18 changes: 4 additions & 14 deletions reconscript/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
{% block content %}
<div class="card">
<h2>Launch Scoped Scan</h2>
<p>All scans are read-only and respect signed consent manifests. Targets outside localhost require a validated manifest before scanning.</p>
<form method="post" enctype="multipart/form-data" id="scan-form">
<p>All scans are read-only. Provide a target host and optional parameters, then launch the scan.</p>
<form method="post" id="scan-form">
<label for="target">Target IP or hostname</label>
<input type="text" id="target" name="target" required placeholder="127.0.0.1" />

Expand All @@ -20,20 +20,10 @@ <h2>Launch Scoped Scan</h2>
<select id="evidence_level" name="evidence_level">
<option value="low">Low - headers and metadata only</option>
<option value="medium">Medium - headers and artefacts</option>
<option value="high">High - full request/response logs (requires manifest)</option>
<option value="high">High - full request/response logs</option>
</select>

<label for="consent_file">Signed consent manifest (.json)</label>
<input type="file" id="consent_file" name="consent_file" accept="application/json" aria-describedby="consent-help" />
<div style="margin-top:0.5rem;">
<input type="checkbox" id="consent_confirm" aria-describedby="consent-help" />
<label for="consent_confirm" style="display:inline; font-weight:400;">I confirm this manifest authorises the requested scope.</label>
</div>

<button type="submit" id="submit-btn" disabled>Run Scan</button>
<button type="submit" id="submit-btn">Run Scan</button>
</form>
<p id="consent-help" style="margin-top:1rem; font-size:0.9rem;">
Need a manifest? Use <code>scripts/generate_scope_manifest.py</code> and have the asset owner sign it.
</p>
</div>
{% endblock %}
2 changes: 0 additions & 2 deletions reconscript/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
outline-offset: 2px;
}
</style>
<script defer src="{{ url_for('static', filename='js/consent.js') }}"></script>
</head>
<body>
<a class="skip-link" href="#main-content">Skip to main content</a>
Expand All @@ -65,6 +64,5 @@
{% endwith %}
{% block content %}{% endblock %}
</main>
{% include 'consent_modal.html' %}
</body>
</html>
3 changes: 0 additions & 3 deletions reconscript/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import os
import uuid
from pathlib import Path
from typing import Optional

from flask import (
Flask,
Expand All @@ -21,7 +20,6 @@
url_for,
)

from .consent import ConsentError, load_manifest, validate_manifest
from .core import ReconError, run_recon
from .logging import configure_logging
from .metrics import metrics_payload
Expand Down Expand Up @@ -166,7 +164,6 @@ def index():
ports=ports,
expected_ip=expected_ip,
evidence_level=evidence_level,
consent_manifest=consent_manifest,
)
except ReconError as exc:
flash(str(exc), "error")
Expand Down
Loading