Vero trasferimento ottico · senza account
Trasferisci questo file Python dallo schermo al telefono.
Un banco di prova isolato non risponde più. Questo script Python trasforma i log in un rapporto sull’incidente con cronologia, rilevamento delle anomalie e identificativi oscurati. Scansiona 18 codici QR su tre pagine da sei per ricevere il file sorgente verificato di 41.2 KB.
Servono uno schermo di computer e un telefono. Nessun account o installazione.
Apri lo scanner sul telefono
Scansiona questo QR del link con la normale fotocamera del telefono, poi apri il link.
Consenti l’accesso alla fotocamera
Sul telefono tocca Avvia fotocamera e consenti l’accesso. Lascia questa pagina aperta sul computer.
Avvia le tre pagine di QR
Avvia il trasferimento sul computer e punta il telefono verso tutti e sei i codici. Le tre pagine si ripetono; ogni codice va letto una sola volta.
Inizia su un computer, scansiona con questo telefono
Apri l’indirizzo qui sotto su un computer. Lascia lì il flusso di QR e torna qui per aprire lo scanner.
- Apri questo indirizzo su un computer
- Su questo telefono apri lo scanner e consenti l’accesso alla fotocamera
- Sul computer avvia il trasferimento. Punta questo telefono verso i sei codici.
#!/usr/bin/env python3
"""The isolated test bench stopped at 02:17. Your colleague needs the evidence.
AIR-GAP INCIDENT REPORT: turn local logs into a brief you can carry through QR.
A useful example for OT engineers, lab teams and developers on restricted PCs.
No USB, network connection, package installation or equipment access required.
Try the SYNTHETIC acceptance-bench incident (no real plant or customer data):
python airgap_incident_report.py --demo --output bench-brief
# Open bench-brief/report.html locally. No web server is needed.
# A crash, repeated PLC reconnects and rising temperature become a timeline.
For approved exports:
python airgap_incident_report.py --input controller.csv \
--input service.jsonl --output incident-brief
Required fields: timestamp, asset, event. Use --schema for supported values.
Timestamps require Z or an explicit UTC offset. Input: UTF-8 CSV or JSONL.
Output: escaped HTML, JSON summary, source and handoff SHA-256 manifests.
Identifiers are pseudonymised by default. Review free text before sharing;
redaction cannot recognise every secret. --keep-identifiers is local-use only.
Correlation is not causation. This is triage, not safety approval or control.
Python 3.10+; standard library only. The web demo transfers, never runs, this file.
"""
from __future__ import annotations
import argparse
import csv
import hashlib
import io
import ipaddress
import json
import math
import re
import statistics
import sys
from collections import Counter, defaultdict
from dataclasses import dataclass, field
from datetime import datetime, timedelta, timezone
from html import escapePrepara il telefono qui sopra, poi avvia il trasferimento.
Tre pagine da sei codici QR si ripetono fino alla pausa. Inizia con 6 secondi per pagina oppure scegli 2,5 o 4 secondi se la fotocamera riesce a seguirle. Una pagina persa ritorna al giro successivo.
Solo un esempio pubblico (41231 byte). Le immagini della fotocamera e la ricostruzione del file restano nel browser. Il codice Python viene mostrato e scaricato, mai eseguito. Per trasferire i tuoi file serve un account Bouraq.