4924cf53e5
WiFi/firmware: - SSID updated to botnet in both node and ble_node config.h - Stale coordinator comment removed from node/config.h Coordinator fixes: - BLE-only nodes now visible in dashboard sidebar and node detail (build_nodes was querying beacon_events only; BLE nodes have no beacons) - ble_events and heartbeat_events added to pruning cycle - ble_events table added to ensure_schema() in dashboard - confidence column dropped from beacon_events (always 'high', never queried) - Ingestor commits batched per packet instead of per store call - wal_autocheckpoint=500 added to ingestor DB connection (writer was missing it) - python3 -u added to both service ExecStart lines (stdout was buffered, logs not appearing in journalctl) Repo hygiene: - .gitignore added (events.db, __pycache__, build artifacts) - events.db removed from git tracking - README updated: new apartment, node table, active investigations, BLE observations labelled as previous-location data, status checklist Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
2.4 KiB
C
30 lines
2.4 KiB
C
#pragma once
|
||
|
||
// ─── WiFi ────────────────────────────────────────────────────────────────────
|
||
#define WIFI_SSID "botnet"
|
||
#define WIFI_PASSWORD "Jaunsgads11!!"
|
||
|
||
// ─── Coordinator ─────────────────────────────────────────────────────────────
|
||
#define COORDINATOR_IP "192.168.1.133"
|
||
#define COORDINATOR_PORT 5005
|
||
|
||
// ─── Scan ────────────────────────────────────────────────────────────────────
|
||
#define SCAN_INTERVAL_MS 15000 // how often to scan (ms)
|
||
#define HEARTBEAT_INTERVAL_MS 10000 // how often to send a heartbeat (ms)
|
||
|
||
// ─── Probe sniffing ──────────────────────────────────────────────────────────
|
||
#define PROBE_SNIFF 1 // 1 = enabled, 0 = disabled
|
||
#define PROBE_DEDUP_SECS 30 // suppress same MAC+SSID within this window (seconds)
|
||
#define DEDUP_CACHE_SIZE 64 // unique MAC+SSID pairs tracked for dedup
|
||
#define PROBE_QUEUE_SIZE 128 // max probe events buffered between flushes
|
||
#define DEAUTH_QUEUE_SIZE 128 // max deauth/disassoc events buffered between flushes
|
||
|
||
// ─── Association capture ─────────────────────────────────────────────────────
|
||
#define ASSOC_QUEUE_SIZE 32 // max assoc/reassoc events buffered between flushes
|
||
|
||
// ─── RSSI alert threshold ────────────────────────────────────────────────────
|
||
#define RSSI_ALERT_THRESHOLD -60 // flush immediately if attack-strength deauth seen (dBm)
|
||
|
||
// ─── Channel hopping ─────────────────────────────────────────────────────────
|
||
#define HOP_DWELL_MS 300 // ms to dwell on each channel (13 ch × 300ms ≈ 4s/sweep)
|