INNER CODE UNIT · Python
artifact_file
Nour833/StegoForge · web/app.py:241
def artifact_file():
p = request.args.get("path", "")
if not p:
return jsonify({"error": "Missing path"}), 400
artifact = Path(p)
if not _artifact_allowed(artifact):
return jsonify({"error": "Artifact not found"}), 404
return send_file(str(artifact), as_attachment=False)
@app.route("/api/platform-profiles", methods=["GET"])
def api_platform_profiles():
from detect.survival import PROFILES
out = {}
for key, profile in PROFILES.items():
out[key] = {
"name": profile.name,
"preferred_method": profile.preferred_method,