Converted Example Scripts into Assemblies

This commit is contained in:
2025-10-03 21:43:20 -06:00
parent fd4f8d7392
commit b635e51565
3 changed files with 36 additions and 10 deletions

View File

@@ -4,7 +4,7 @@
"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",
"script": "IyBEZWZpbmUgdGhlIGZpbGUgcGF0aAokZmlsZVBhdGggPSAiQzpcQ2FuYXJ5LnR4dCIKCiMgV3JpdGUgc29tZSBjb250ZW50IGludG8gdGhlIGZpbGUKJGVudjpjYW5hcnlNZXNzYWdlIHwgT3V0LUZpbGUgLUZpbGVQYXRoICRmaWxlUGF0aCAtRW5jb2RpbmcgVVRGOAo=",
"timeout_seconds": 3600,
"sites": {
"mode": "specific",
@@ -22,5 +22,6 @@
"description": "This is the text that will be written into the canary file."
}
],
"files": []
"files": [],
"script_encoding": "base64"
}