init commit

This commit is contained in:
2026-07-29 16:50:22 +03:00
commit 0d10a278bf
24 changed files with 3564 additions and 0 deletions

9
lab2/securely_load.py Normal file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env python3
import torch
print("\nAttempting to load with weights_only=True...")
try:
loaded_data = torch.load("compromised_model.pt", weights_only=True)
print("Model loaded safely.")
except Exception as e:
print(f"\n[SAFE] PyTorch blocked the exploit! Error: {e}")