From d6791a46c37ea2071ed776b97047586a8192772e Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Fri, 3 Oct 2025 17:11:29 -0600 Subject: [PATCH] Additional Fixes --- .../Examples/Write Canary to C Drive.json | 26 +++++++++++++++++++ .../WebUI/src/Assemblies/Assembly_Editor.jsx | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 Assemblies/Scripts/Examples/Write Canary to C Drive.json diff --git a/Assemblies/Scripts/Examples/Write Canary to C Drive.json b/Assemblies/Scripts/Examples/Write Canary to C Drive.json new file mode 100644 index 0000000..209396d --- /dev/null +++ b/Assemblies/Scripts/Examples/Write Canary to C Drive.json @@ -0,0 +1,26 @@ +{ + "version": 1, + "name": "Write Canary File to C Drive", + "description": "Writes a simple text file to the C:\\ drive of the computer. Requires SYSTEM level execution context to work.", + "category": "script", + "type": "powershell", + "script": "# Define the file path\n$filePath = \"C:\\Canary.txt\"\n\n# Write some content into the file\n$env:canaryMessage | Out-File -FilePath $filePath -Encoding UTF8\n", + "timeout_seconds": 3600, + "sites": { + "mode": "specific", + "values": [ + "1" + ] + }, + "variables": [ + { + "name": "canaryMessage", + "label": "Canary Message", + "type": "string", + "default": "Hello world!", + "required": true, + "description": "This is the text that will be written into the canary file." + } + ], + "files": [] +} \ No newline at end of file diff --git a/Data/Server/WebUI/src/Assemblies/Assembly_Editor.jsx b/Data/Server/WebUI/src/Assemblies/Assembly_Editor.jsx index e981b77..c6bb50e 100644 --- a/Data/Server/WebUI/src/Assemblies/Assembly_Editor.jsx +++ b/Data/Server/WebUI/src/Assemblies/Assembly_Editor.jsx @@ -1173,4 +1173,4 @@ export default function AssemblyEditor({ /> ); -} +} \ No newline at end of file