mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-28 21:17:36 +00:00
Pure function: only a single-http, single-path, BaseURL-only GET/POST becomes a candidate. raw/unsafe/multi-step/body-matcher templates are rejected with a reason — sbxwaf matches URL regex, so a non-URL exploit can't become a rule. Co-Authored-By: Gerald KERMA <devel@cybermind.fr>
12 lines
522 B
Python
12 lines
522 B
Python
# SPDX-License-Identifier: LicenseRef-CMSD-1.0
|
|
# Copyright (c) 2026 CyberMind — Gérald Kerma <devel@cybermind.fr>
|
|
# Source-Disclosed License — All rights reserved except as expressly granted.
|
|
# See LICENCE-CMSD-1.0.md for terms.
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# Rend `api` importable en top-level (miroir du layout runtime sous
|
|
# /usr/lib/secubox/cve-triage). Les modules wafgen n'importent pas api.main,
|
|
# donc pas de lecture de config à l'import.
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|