From 1bf8ff73f8a48b3bd8c30ff8949cfad5c28e2ffe Mon Sep 17 00:00:00 2001 From: David Randall Date: Sun, 12 Nov 2023 15:10:18 -0500 Subject: [PATCH] [Feature] Add cross site scripting --- README.md | 2 +- api/tacticalrmm/scripts/views.py | 4 ++++ api/tacticalrmm/tacticalrmm/constants.py | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f0e19970..84cc3540 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Demo database resets every hour. A lot of features are disabled for obvious reas - Teamviewer-like remote desktop control - Real-time remote shell - 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 - Services management - Windows patch management diff --git a/api/tacticalrmm/scripts/views.py b/api/tacticalrmm/scripts/views.py index ddd48a0f..8bf30ad9 100644 --- a/api/tacticalrmm/scripts/views.py +++ b/api/tacticalrmm/scripts/views.py @@ -190,6 +190,10 @@ def download(request, pk): ext = ".py" case ScriptShell.SHELL: ext = ".sh" + case ScriptShell.NUSHELL: + ext = ".nu" + case ScriptShell.DENO: + ext = ".ts" case _: ext = "" diff --git a/api/tacticalrmm/tacticalrmm/constants.py b/api/tacticalrmm/tacticalrmm/constants.py index e80cf8b4..119cf7c7 100644 --- a/api/tacticalrmm/tacticalrmm/constants.py +++ b/api/tacticalrmm/tacticalrmm/constants.py @@ -131,6 +131,8 @@ class ScriptShell(models.TextChoices): CMD = "cmd", "Batch (CMD)" PYTHON = "python", "Python" SHELL = "shell", "Shell" + NUSHELL = "nushell", "Nushell" + DENO = "deno", "Deno" class ScriptType(models.TextChoices):