Commit 7c0e205
committed
feat: PhantomKit v1.2.0 - auth, real probe sniffer, unicast deauth, webhooks, NTP, stealth mode and CI
Change 1 - GitHub Actions CI:
- .github/workflows/build.yml: compile firmware on every push/PR
- CI badge in README.md and README.es.md
Change 2 - NTP real timestamps:
- main.cpp: uplink WiFi AP+STA mode, NTP sync on boot
- config.h: UPLINK_SSID/PASSWORD, NTP_SERVER, NTP_OFFSET/DST defines
- credential_store.cpp: formatTimestamp() uses wall-clock time when NTP synced
- main.cpp: getTimestamp() shared helper with same NTP-aware logic
Change 3 - Stealth Mode:
- config.h: STEALTH_MODE define
- ap_manager.h/.cpp: setStealthMode() uses SDK softap_config.ssid_hidden
- web_server.cpp: POST /api/stealth endpoint, Ajustes tab with toggle button
Change 4 - Dashboard Auth:
- config.h: DASHBOARD_PASSWORD define
- web_server.h/.cpp: session token, /login GET/POST, /logout, isAuthenticated()
- All /dashboard and /api/* routes require valid session cookie
- Logout button in header
Change 5 - Real Probe Sniffer:
- probe_sniffer.cpp: IRAM_ATTR callback probePromiscCb() parses 802.11 frames
- Extracts Source MAC (buf[46..51]), SSID tag (buf[60+]), RSSI from RxControl
- wifi_promiscuous_enable(1) on start, disable on stop
- Dashboard shows device table: MAC, sought SSIDs, RSSI
- GET /api/probe/devices returns live device JSON
Change 6 - Deauth unicast:
- deauth.h/.cpp: clientMACs list, parseBSSID(), scanClients()
- scanClients() uses IRAM_ATTR callback to detect associated clients
- update() sends unicast AP->Client and Client->AP deauths + broadcast fallback
- 800ms passive scan window before each attack
Change 7 - Webhooks (notifier):
- notifier.h/.cpp: NotifierModule with HTTP POST to ntfy.sh or generic endpoint
- Config persisted in /notify.cfg on LittleFS
- credential_store.cpp: notifier.notify() called on every capture
- Dashboard Ajustes tab: URL/topic fields, Guardar and Probar buttons
- POST /api/notify with action=save or action=test1 parent 804740d commit 7c0e205
33 files changed
Lines changed: 845 additions & 115 deletions
File tree
- .github/workflows
- .pio/build
- nodemcuv2
- lib3f8
- lib435
- lib46c
- lib549
- lib5e2
- src
- portal
- wifi
- src
- portal
- wifi
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments