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.
52 lines
1.5 KiB
JavaScript
52 lines
1.5 KiB
JavaScript
/* ESPILON Honeypot Dashboard — State */
|
|
|
|
export const SERVICES = {
|
|
ssh:{port:22}, telnet:{port:23}, http:{port:80}, mqtt:{port:1883}, ftp:{port:21},
|
|
dns:{port:53}, snmp:{port:161}, tftp:{port:69}, coap:{port:5683}, redis:{port:6379},
|
|
rtsp:{port:554}, mysql:{port:3306}, modbus:{port:502}, upnp:{port:1900}, sip:{port:5060},
|
|
telnet_alt:{port:2323}
|
|
};
|
|
|
|
export const MONITORS = ['wifi', 'net'];
|
|
|
|
export const KC_PHASES = [
|
|
{id:'recon', order:1, score:10, label:'Reconnaissance'},
|
|
{id:'weaponize', order:2, score:15, label:'Weaponization'},
|
|
{id:'delivery', order:3, score:20, label:'Delivery'},
|
|
{id:'exploitation', order:4, score:30, label:'Exploitation'},
|
|
{id:'installation', order:5, score:40, label:'Installation'},
|
|
{id:'c2', order:6, score:50, label:'Command & Control'},
|
|
{id:'actions', order:7, score:60, label:'Actions on Objectives'}
|
|
];
|
|
|
|
export const S = {
|
|
tab: 'overview',
|
|
events: [],
|
|
stats: {},
|
|
attackers: [],
|
|
timeline: [],
|
|
devices: [],
|
|
services: {},
|
|
definitions: {},
|
|
history: [],
|
|
alerts: [],
|
|
sessions: null,
|
|
credentials: null,
|
|
killchain: null,
|
|
lastId: 0,
|
|
selectedDevice: '',
|
|
sseConnected: false,
|
|
soundEnabled: false,
|
|
notifEnabled: false,
|
|
minSeverity: 'MEDIUM',
|
|
eventRate: 0,
|
|
_eventTimes: [],
|
|
_refreshTimer: null,
|
|
_sseRetry: 0,
|
|
_eventSource: null,
|
|
_replayEvents: [],
|
|
_replayIdx: 0,
|
|
_replayPlaying: false,
|
|
_replayInterval: null
|
|
};
|