Files
Borealis-Github-Replica/Assemblies/Scripts/Examples/Write Canary to C Drive.json
2025-10-03 17:11:29 -06:00

26 lines
793 B
JSON

{
"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": []
}