Real-time network monitor + outbound firewall — see & block every connection. Privacy-first, local-first, Rust fleet agent, SIEM exports, 8 languages. / Moniteur réseau temps réel + pare-feu sortant, agent de flotte Rust, exports SIEM. 100 % local.
Python cybersecurityd3jsebpfedrelectronfastapifirewallfleet-managementlinuxlittle-snitch-alternativemacosnetwork-monitornetwork-securitypacket-captureprivacyreactrustself-hostedsiemwindows
Import fcntl lazily so perfprobe loads on Windows
MoneyLisa2396641d8a3a
diff --git a/backend/detection/perfprobe.py b/backend/detection/perfprobe.pyindex 9fe97c7..d9918d5 100644--- a/backend/detection/perfprobe.py+++ b/backend/detection/perfprobe.py@@ -31,12 +31,22 @@ FR: Compteurs matériels — la tranche user-mode sans dépendance de lafrom __future__ import annotationsimport ctypes-import fcntlimport osimport platformimport structimport time+# EN: fcntl exists on Unix only — import lazily so this module stays+# importable on Windows (available() already gates to Linux; sample()+# never reaches fcntl elsewhere).+# FR: fcntl n'existe que sous Unix — import paresseux pour que le module+# reste importable sous Windows (available() restreint à Linux de+# toute façon).+if platform.system().lower() == "linux":+ import fcntl+else:+ fcntl = None+_SYS_PERF_EVENT_OPEN = 298 # EN: x86_64/aarch64 number / FR: numéro x86_64/aarch64_IOC_ENABLE = 0x2400 # EN: PERF_EVENT_IOC_ENABLE / FR: idem_IOC_DISABLE = 0x2401 # EN: PERF_EVENT_IOC_DISABLE / FR: idem