Replace monolithic CLI and web server with route-based Flask API. New routes: api_commands, api_build, api_can, api_monitor, api_ota, api_tunnel. Add honeypot security dashboard with real-time SSE, MITRE ATT&CK mapping, kill chain analysis. New TUI with commander/help modules. Add session management, tunnel proxy core, CAN bus data store. Docker support.
18 lines
577 B
JavaScript
18 lines
577 B
JavaScript
/* ESPILON Honeypot Dashboard — Audio Alerts */
|
|
|
|
export function playAlertSound(severity) {
|
|
try {
|
|
const ctx = new (window.AudioContext || window.webkitAudioContext)();
|
|
const osc = ctx.createOscillator();
|
|
const gain = ctx.createGain();
|
|
osc.connect(gain);
|
|
gain.connect(ctx.destination);
|
|
osc.frequency.value = severity === 'CRITICAL' ? 880 : 660;
|
|
gain.gain.value = 0.15;
|
|
osc.start();
|
|
osc.stop(ctx.currentTime + 0.15);
|
|
} catch (e) {
|
|
// Audio context may be blocked by browser policy
|
|
}
|
|
}
|