added api endpoint to list public malicious ips

This commit is contained in:
carnivuth
2026-01-27 00:09:27 +01:00
parent b253828cd7
commit 04549cc57c
2 changed files with 55 additions and 64 deletions

View File

@@ -40,6 +40,7 @@ class Config:
# Database settings
database_path: str = "data/krawl.db"
database_retention_days: int = 30
exports_path: str = "data/exports"
# Analyzer settings
http_risky_methods_threshold: float = None
@@ -150,6 +151,7 @@ class Config:
canary = data.get("canary", {})
dashboard = data.get("dashboard", {})
api = data.get("api", {})
exports = data.get("exports", {})
database = data.get("database", {})
behavior = data.get("behavior", {})
analyzer = data.get("analyzer") or {}
@@ -185,6 +187,7 @@ class Config:
canary_token_tries=canary.get("token_tries", 10),
dashboard_secret_path=dashboard_path,
probability_error_codes=behavior.get("probability_error_codes", 0),
exports_path = exports.get("path"),
database_path=database.get("path", "data/krawl.db"),
database_retention_days=database.get("retention_days", 30),
http_risky_methods_threshold=analyzer.get(