espilon-source/tools/C3PO/hp_dashboard/static/hp/js/audio.js
Eun0us 79c2a4d4bf c3po: full server rewrite with modular routes and honeypot dashboard
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.
2026-02-28 20:12:27 +01:00

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
}
}