CitrixPot: NetScaler / Citrix ADC Gateway honeypot (initial public release)

This commit is contained in:
CitrixPot committed 2026-09-28 19:44:37 +02:00
commit 4491b42714
54 files changed
+4532

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
"""Minimal .env loader so local runs match the systemd EnvironmentFile. Never overwrites
variables already set in the environment."""
import os
import pathlib
def load(path='.env'):
file = pathlib.Path(path)
if not file.is_file():
return
for line in file.read_text().splitlines():
line = line.strip()
if not line or line.startswith('#') or '=' not in line:
continue
key, _, value = line.partition('=')
os.environ.setdefault(key.strip(), value.strip().strip('\'"'))
def env_int(name, default):
try:
return int(os.environ.get(name, default))
except (TypeError, ValueError):
return default