File size: 475 Bytes
df6cf36 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import os
import shutil
class KillSwitch:
def __init__(self, storage_path="storage/"):
self.storage_path = storage_path
def trigger(self):
"""Wipe all cognitive snapshots and logs."""
print("[!] EMERGENCY: INTEGRITY VIOLATION DETECTED. PURGING...")
if os.path.exists(self.storage_path):
shutil.rmtree(self.storage_path)
os.mkdir(self.storage_path)
print("[!] SYSTEM PURGED. HALTING.")
exit(1)
|