fix(ransomware-live): keyless — drop optional API key, no auth required
Ransomware.live's v2 API is free and needs no authentication. Remove the optional api_key config field and the X-API-KEY header logic from all commands so instance creation requires no credentials. Only an optional base_url override remains. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,9 +14,6 @@ def _inputs():
|
||||
def _get(cfg, path):
|
||||
base = (cfg.get("base_url") or DEFAULT_BASE).rstrip("/")
|
||||
headers = {"User-Agent": "Riposte-SOAR", "Accept": "application/json"}
|
||||
key = str(cfg.get("api_key") or "").strip()
|
||||
if key:
|
||||
headers["X-API-KEY"] = key
|
||||
req = urllib.request.Request(base + path, headers=headers)
|
||||
with urllib.request.urlopen(req, timeout=60) as r:
|
||||
raw = r.read()
|
||||
|
||||
Reference in New Issue
Block a user