MCPcopy Create free account
hub / github.com/Xenov-X/csbot / executeExecuteAssembly

Method executeExecuteAssembly

workflow/executor_spawn.go:342–354  ·  view source on GitHub ↗

executeExecuteAssembly executes a .NET assembly

(ctx context.Context, client *csclient.Client, beaconID string, action Action)

Source from the content-addressed store, hash-verified

340
341// executeExecuteAssembly executes a .NET assembly
342func (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

Callers 1

executeActionMethod · 0.95

Calls 1

waitForOutputMethod · 0.95

Tested by

no test coverage detected