executeExecuteAssembly executes a .NET assembly
(ctx context.Context, client *csclient.Client, beaconID string, action Action)
| 340 | |
| 341 | // executeExecuteAssembly executes a .NET assembly |
| 342 | func (e *Executor) executeExecuteAssembly(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
| 343 | assemblyPath, ok := action.Parameters["assembly"].(string) |
| 344 | if !ok { |
| 345 | return "", fmt.Errorf("assembly parameter required for execute_assembly") |
| 346 | } |
| 347 | args, _ := action.Parameters["args"].(string) // optional |
| 348 | |
| 349 | resp, err := client.ExecuteAssembly(ctx, beaconID, assemblyPath, args) |
| 350 | if err != nil { |
| 351 | return "", err |
| 352 | } |
| 353 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 354 | } |
| 355 | |
| 356 | // --- Pass-the-Hash --- |
| 357 |
no test coverage detected