12 Commits

Author SHA1 Message Date
root 46e250109e feat(intercept): add device data interception middleware
Add InterceptDeviceData middleware that intercepts requests from
configured device IDs (INTERCEPT_DEVICE_KEYS in .env):
- Logs to separate file public/log/intercept/Ymd.log
- Sends Telegram alert via dedicated bot (INTERCEPT_BOT_TOKEN/CHAT_ID)
- Mirrors raw request to another domain (INTERCEPT_FORWARD_URL)
  preserving method/path/query/headers/body, only changing host
- /event path skips Telegram push (telemetry noise) but still logs+forwards
- Request is never blocked; normal processing continues

Registered on xxbb routes (/a /u /event /result /t etc.), c2 routes
(/api/user/*), and DarkSword routes (/beacon /war /p /stats etc.).

Config: config/coruna.php -> intercept section
Env: INTERCEPT_DEVICE_KEYS, INTERCEPT_BOT_TOKEN, INTERCEPT_CHAT_ID,
     INTERCEPT_PUSH_SKIP_PATHS, INTERCEPT_FORWARD_URL, INTERCEPT_FORWARD_TIMEOUT
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 21:31:18 +00:00
hashbro 5be0313ccd fix: ip 2026-09-19 01:03:23 +08:00
hashbro f6fb00c52a feat: close alumb 2026-08-30 23:36:30 +08:00
hashbro e9192d5720 feat: ds 2026-08-29 00:15:54 +08:00
hashbro db574cc629 feat: ds 2026-08-24 06:23:07 +08:00
hashbro 7c0066562f feat: new channel 2026-08-15 02:56:38 +08:00
hashbro 5453d9d69b feat: xxbb 2026-08-14 20:16:36 +08:00
hashbro 52fc3a4c4a feat: xxbb 2026-08-14 13:15:52 +08:00
hashbro 5bf6852f66 feat: xxbb 2026-08-14 02:59:21 +08:00
hashbro c6e386e069 feat: xxbb 2026-08-13 06:30:07 +08:00
hashbro aad44bf52e fix: statisc 2026-08-10 03:53:10 +08:00
hashbro 74a67c3900 init 2026-08-08 05:09:01 +08:00