Skip to content

Commit

Permalink
[Feature] Add cross site scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceGuyIT committed Nov 12, 2023
1 parent 564aaaf commit 1bf8ff7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions api/tacticalrmm/scripts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Check warning on line 196 in api/tacticalrmm/scripts/views.py

View check run for this annotation

Codecov / codecov/patch

api/tacticalrmm/scripts/views.py#L193-L196

Added lines #L193 - L196 were not covered by tests
case _:
ext = ""

Expand Down
2 changes: 2 additions & 0 deletions api/tacticalrmm/tacticalrmm/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1bf8ff7

Please sign in to comment.