2026-03-05 00:04:26 -06:00
|
|
|
<!doctype html>
|
|
|
|
|
<html lang="en" class="dark">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2026-05-08 15:36:24 -05:00
|
|
|
<script src="/assets/nav-prelude.js"></script>
|
|
|
|
|
<link rel="modulepreload" href="/assets/nav.js" />
|
|
|
|
|
<link rel="stylesheet" href="/vendor/inter/400.css" />
|
|
|
|
|
<link rel="stylesheet" href="/vendor/inter/600.css" />
|
|
|
|
|
<link rel="stylesheet" href="/vendor/inter/700.css" />
|
2026-03-05 00:04:26 -06:00
|
|
|
<title>Script Execution - Overlord</title>
|
2026-03-05 15:25:52 -06:00
|
|
|
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico" />
|
2026-03-05 00:04:26 -06:00
|
|
|
<link rel="stylesheet" href="/assets/tailwind.css" />
|
2026-04-18 21:16:29 -05:00
|
|
|
<link rel="stylesheet" href="/vendor/fontawesome/css/all.min.css" />
|
|
|
|
|
<link rel="stylesheet" href="/vendor/codemirror/lib/codemirror.css" />
|
|
|
|
|
<link rel="stylesheet" href="/vendor/codemirror/theme/material-darker.css" />
|
2026-03-05 00:04:26 -06:00
|
|
|
<style>
|
|
|
|
|
.CodeMirror {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<link rel="stylesheet" href="/assets/main.css" />
|
2026-04-01 13:49:41 -05:00
|
|
|
<link rel="stylesheet" href="/assets/custom.css" />
|
2026-04-08 14:37:03 -05:00
|
|
|
<script defer src="/assets/toast.js"></script>
|
|
|
|
|
<script defer src="/assets/ripple.js"></script>
|
2026-03-05 00:04:26 -06:00
|
|
|
</head>
|
|
|
|
|
<body class="min-h-screen bg-slate-950 text-slate-100">
|
|
|
|
|
<header id="top-nav"></header>
|
|
|
|
|
|
|
|
|
|
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
|
|
|
|
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
|
|
|
|
<!-- Client Selector -->
|
|
|
|
|
<div class="lg:col-span-3">
|
|
|
|
|
<div class="bg-slate-900/70 rounded-xl border border-slate-800 p-6">
|
|
|
|
|
<div class="flex items-center justify-between mb-4">
|
|
|
|
|
<h2 class="text-xl font-semibold">Select Target Clients</h2>
|
|
|
|
|
<div class="flex items-center gap-2 text-sm text-slate-400">
|
|
|
|
|
<span id="selected-count">0 selected</span>
|
|
|
|
|
<button id="clear-selection-btn" class="px-3 py-1 rounded-lg border border-slate-700 bg-slate-800/50 hover:bg-slate-700 transition-colors">
|
|
|
|
|
<i class="fa-solid fa-xmark"></i> Clear
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Search and Filters -->
|
|
|
|
|
<div class="flex gap-3 mb-4">
|
|
|
|
|
<div class="flex-1 relative">
|
|
|
|
|
<i class="fa-solid fa-search absolute left-3 top-1/2 -translate-y-1/2 text-slate-500"></i>
|
|
|
|
|
<input
|
|
|
|
|
id="client-search"
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="Search by hostname, ID, or OS..."
|
|
|
|
|
class="w-full pl-10 pr-4 py-2 rounded-lg border border-slate-700 bg-slate-800 text-slate-100 placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-emerald-500"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<select
|
|
|
|
|
id="os-filter"
|
|
|
|
|
class="px-4 py-2 rounded-lg border border-slate-700 bg-slate-800 text-slate-100"
|
|
|
|
|
>
|
|
|
|
|
<option value="all">All OS</option>
|
|
|
|
|
</select>
|
|
|
|
|
<button
|
|
|
|
|
id="select-all-btn"
|
|
|
|
|
class="px-4 py-2 rounded-lg border border-slate-700 bg-slate-800/50 hover:bg-slate-700 transition-colors whitespace-nowrap"
|
|
|
|
|
>
|
|
|
|
|
<i class="fa-solid fa-check-double"></i> Select All
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Client List -->
|
|
|
|
|
<div id="client-list" class="max-h-64 overflow-y-auto border border-slate-700 rounded-lg bg-slate-950">
|
|
|
|
|
<div class="p-4 text-center text-slate-500">Loading clients...</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-03-16 15:52:31 +01:00
|
|
|
<!-- Mode Toggle -->
|
|
|
|
|
<div class="lg:col-span-3">
|
|
|
|
|
<div class="flex items-center gap-2 bg-slate-900/70 rounded-xl border border-slate-800 p-3">
|
|
|
|
|
<button id="mode-toggle-code" class="flex-1 flex items-center justify-center gap-2 px-4 py-2 rounded-lg font-semibold text-sm transition-colors bg-emerald-600 text-white">
|
|
|
|
|
<i class="fa-solid fa-code"></i> Code Editor
|
|
|
|
|
</button>
|
|
|
|
|
<button id="mode-toggle-visual" class="flex-1 flex items-center justify-center gap-2 px-4 py-2 rounded-lg font-semibold text-sm transition-colors bg-slate-800 text-slate-300 hover:bg-slate-700">
|
|
|
|
|
<i class="fa-solid fa-puzzle-piece"></i> Visual Builder
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Visual Builder (hidden by default) -->
|
|
|
|
|
<div id="visual-builder-section" class="lg:col-span-3 hidden">
|
|
|
|
|
<div class="bg-slate-900/70 rounded-xl border border-slate-800 p-6">
|
|
|
|
|
<div id="visual-builder-container"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-03-05 00:04:26 -06:00
|
|
|
<!-- Script Editor -->
|
2026-05-18 09:55:05 -05:00
|
|
|
<div id="code-editor-section" class="lg:col-span-2 min-h-0">
|
|
|
|
|
<div class="bg-slate-900/70 rounded-xl border border-slate-800 p-6 h-full flex flex-col overflow-hidden">
|
2026-03-05 00:04:26 -06:00
|
|
|
<div class="flex items-center justify-between mb-4">
|
|
|
|
|
<h2 class="text-xl font-semibold">Script Editor</h2>
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
<select
|
|
|
|
|
id="script-type"
|
|
|
|
|
class="px-4 py-2 rounded-lg border border-slate-700 bg-slate-800 text-slate-100"
|
|
|
|
|
>
|
|
|
|
|
<option value="powershell">PowerShell</option>
|
|
|
|
|
<option value="bash">Bash</option>
|
|
|
|
|
<option value="cmd">CMD</option>
|
|
|
|
|
<option value="python">Python</option>
|
|
|
|
|
<option value="sh">Shell (sh)</option>
|
|
|
|
|
</select>
|
|
|
|
|
<button
|
|
|
|
|
id="execute-btn"
|
|
|
|
|
class="px-6 py-2 rounded-lg bg-emerald-600 hover:bg-emerald-700 text-white font-semibold disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2"
|
|
|
|
|
>
|
|
|
|
|
<i class="fa-solid fa-play"></i> Execute
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<textarea
|
|
|
|
|
id="script-editor"
|
2026-05-18 09:55:05 -05:00
|
|
|
class="w-full flex-1 min-h-[24rem] px-4 py-3 rounded-lg border border-slate-700 bg-slate-950 text-slate-100 font-mono text-sm resize-none overflow-auto focus:outline-none focus:ring-2 focus:ring-emerald-500"
|
2026-03-05 00:04:26 -06:00
|
|
|
placeholder="Enter your script here..."
|
|
|
|
|
></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Saved Scripts + Templates (right column) -->
|
2026-05-18 09:55:05 -05:00
|
|
|
<div class="lg:col-span-1 self-start">
|
2026-03-05 00:04:26 -06:00
|
|
|
<div class="bg-slate-900/70 rounded-xl border border-slate-800 p-6 mb-6">
|
|
|
|
|
<h2 class="text-xl font-semibold mb-4">Saved Scripts</h2>
|
|
|
|
|
<div class="flex gap-2 mb-3">
|
|
|
|
|
<input
|
|
|
|
|
id="script-save-name"
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="Name this script"
|
|
|
|
|
class="flex-1 px-3 py-2 rounded-lg border border-slate-700 bg-slate-800 text-slate-100 placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-emerald-500"
|
|
|
|
|
/>
|
|
|
|
|
<button
|
|
|
|
|
id="save-script-btn"
|
|
|
|
|
class="px-3 py-2 rounded-lg bg-emerald-600 hover:bg-emerald-700 text-white text-sm font-semibold"
|
|
|
|
|
>
|
|
|
|
|
<i class="fa-solid fa-save"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="saved-scripts-list" class="space-y-2 max-h-64 overflow-auto">
|
|
|
|
|
<div class="text-slate-500 text-sm">No saved scripts yet.</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="bg-slate-900/70 rounded-xl border border-slate-800 p-6 mb-6">
|
|
|
|
|
<h2 class="text-xl font-semibold mb-2">Auto Tasks</h2>
|
|
|
|
|
<p class="text-sm text-slate-400 mb-4">
|
|
|
|
|
Automatically execute the current editor script when clients connect. Use with care.
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div class="space-y-3">
|
|
|
|
|
<input
|
|
|
|
|
id="auto-task-name"
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="Task name"
|
|
|
|
|
class="w-full px-3 py-2 rounded-lg border border-slate-700 bg-slate-800 text-slate-100 placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-emerald-500"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<select
|
|
|
|
|
id="auto-task-trigger"
|
|
|
|
|
class="w-full px-3 py-2 rounded-lg border border-slate-700 bg-slate-800 text-slate-100"
|
|
|
|
|
>
|
|
|
|
|
<option value="on_connect">On connect (every session)</option>
|
|
|
|
|
<option value="on_connect_once">On connect (only once per client)</option>
|
|
|
|
|
<option value="on_first_connect">On first connect (new clients only)</option>
|
|
|
|
|
</select>
|
|
|
|
|
|
2026-03-17 13:27:44 -05:00
|
|
|
<div>
|
|
|
|
|
<div class="text-sm text-slate-400 mb-1.5">
|
|
|
|
|
Run on OS <span class="text-slate-500">(unchecked = any OS)</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex flex-wrap gap-x-4 gap-y-1.5">
|
|
|
|
|
<label class="flex items-center gap-1.5 text-sm text-slate-300 cursor-pointer">
|
|
|
|
|
<input type="checkbox" id="auto-task-os-windows" name="auto-task-os" value="windows" class="w-4 h-4 rounded accent-emerald-500"> Windows
|
|
|
|
|
</label>
|
|
|
|
|
<label class="flex items-center gap-1.5 text-sm text-slate-300 cursor-pointer">
|
|
|
|
|
<input type="checkbox" id="auto-task-os-linux" name="auto-task-os" value="linux" class="w-4 h-4 rounded accent-emerald-500"> Linux
|
|
|
|
|
</label>
|
|
|
|
|
<label class="flex items-center gap-1.5 text-sm text-slate-300 cursor-pointer">
|
|
|
|
|
<input type="checkbox" id="auto-task-os-darwin" name="auto-task-os" value="darwin" class="w-4 h-4 rounded accent-emerald-500"> macOS
|
|
|
|
|
</label>
|
|
|
|
|
<label class="flex items-center gap-1.5 text-sm text-slate-300 cursor-pointer">
|
|
|
|
|
<input type="checkbox" id="auto-task-os-android" name="auto-task-os" value="android" class="w-4 h-4 rounded accent-emerald-500"> Android
|
|
|
|
|
</label>
|
|
|
|
|
<label class="flex items-center gap-1.5 text-sm text-slate-300 cursor-pointer">
|
|
|
|
|
<input type="checkbox" id="auto-task-os-freebsd" name="auto-task-os" value="freebsd" class="w-4 h-4 rounded accent-emerald-500"> FreeBSD
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-03-05 00:04:26 -06:00
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
<button
|
|
|
|
|
id="auto-task-save-btn"
|
|
|
|
|
class="px-3 py-2 rounded-lg bg-emerald-600 hover:bg-emerald-700 text-white text-sm font-semibold"
|
|
|
|
|
>
|
|
|
|
|
<i class="fa-solid fa-bolt"></i> Save Auto Task
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
id="auto-task-cancel-btn"
|
|
|
|
|
class="px-3 py-2 rounded-lg bg-slate-700 hover:bg-slate-600 text-white text-sm font-semibold hidden"
|
|
|
|
|
>
|
|
|
|
|
Cancel
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="mt-4">
|
|
|
|
|
<div class="text-sm text-slate-400 mb-2">Active Auto Tasks</div>
|
|
|
|
|
<div id="auto-task-list" class="space-y-2 max-h-64 overflow-auto">
|
|
|
|
|
<div class="text-slate-500 text-sm">Loading auto tasks...</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="bg-slate-900/70 rounded-xl border border-slate-800 p-6">
|
2026-03-17 13:27:44 -05:00
|
|
|
<div class="flex items-center gap-2 mb-3">
|
|
|
|
|
<h2 class="text-xl font-semibold flex-1">Script Templates</h2>
|
|
|
|
|
<input
|
|
|
|
|
id="template-search"
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="Search..."
|
|
|
|
|
class="px-2 py-1.5 text-xs rounded-lg border border-slate-700 bg-slate-800 text-slate-100 placeholder-slate-500 focus:outline-none focus:ring-1 focus:ring-emerald-500 w-32"
|
|
|
|
|
/>
|
2026-03-05 00:04:26 -06:00
|
|
|
</div>
|
2026-03-17 13:27:44 -05:00
|
|
|
<div id="template-palette" class="space-y-1.5 max-h-[32rem] overflow-y-auto pr-0.5"></div>
|
2026-03-05 00:04:26 -06:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Output -->
|
|
|
|
|
<div class="lg:col-span-3">
|
|
|
|
|
<div class="bg-slate-900/70 rounded-xl border border-slate-800 p-6">
|
|
|
|
|
<div class="flex items-center justify-between mb-4">
|
|
|
|
|
<h2 class="text-xl font-semibold">Output</h2>
|
|
|
|
|
<button
|
|
|
|
|
id="clear-output-btn"
|
|
|
|
|
class="px-4 py-2 rounded-lg border border-slate-700 bg-slate-800/50 hover:bg-slate-700 text-sm"
|
|
|
|
|
>
|
|
|
|
|
<i class="fa-solid fa-trash"></i> Clear
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
id="output-container"
|
|
|
|
|
class="min-h-64 max-h-96 overflow-auto px-4 py-3 rounded-lg border border-slate-700 bg-slate-950 text-slate-100 font-mono text-sm whitespace-pre-wrap"
|
|
|
|
|
>
|
|
|
|
|
<div class="text-slate-500">
|
|
|
|
|
No output yet. Execute a script to see results.
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
<script type="module" src="/assets/nav.js"></script>
|
2026-04-18 21:16:29 -05:00
|
|
|
<script defer src="/vendor/codemirror/lib/codemirror.js"></script>
|
|
|
|
|
<script defer src="/vendor/codemirror/mode/powershell/powershell.js"></script>
|
|
|
|
|
<script defer src="/vendor/codemirror/mode/shell/shell.js"></script>
|
|
|
|
|
<script defer src="/vendor/codemirror/mode/python/python.js"></script>
|
2026-03-05 00:04:26 -06:00
|
|
|
<script type="module" src="/assets/scripts.js"></script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|