[Feature] Add cross site scripting

This commit is contained in:
David Randall 2023-11-12 15:10:18 -05:00
parent 564aaaf3df
commit 1bf8ff73f8
3 changed files with 7 additions and 1 deletions

View File

@ -19,7 +19,7 @@ Demo database resets every hour. A lot of features are disabled for obvious reas
- Teamviewer-like remote desktop control - Teamviewer-like remote desktop control
- Real-time remote shell - Real-time remote shell
- Remote file browser (download and upload files) - Remote file browser (download and upload files)
- Remote command and script execution (batch, powershell and python scripts) - Remote command and script execution (batch, powershell, python, nushell and deno scripts)
- Event log viewer - Event log viewer
- Services management - Services management
- Windows patch management - Windows patch management

View File

@ -190,6 +190,10 @@ def download(request, pk):
ext = ".py" ext = ".py"
case ScriptShell.SHELL: case ScriptShell.SHELL:
ext = ".sh" ext = ".sh"
case ScriptShell.NUSHELL:
ext = ".nu"
case ScriptShell.DENO:
ext = ".ts"
case _: case _:
ext = "" ext = ""

View File

@ -131,6 +131,8 @@ class ScriptShell(models.TextChoices):
CMD = "cmd", "Batch (CMD)" CMD = "cmd", "Batch (CMD)"
PYTHON = "python", "Python" PYTHON = "python", "Python"
SHELL = "shell", "Shell" SHELL = "shell", "Shell"
NUSHELL = "nushell", "Nushell"
DENO = "deno", "Deno"
class ScriptType(models.TextChoices): class ScriptType(models.TextChoices):