From 11741c4cde3d552211fbb04eddd719b3dc3bd472 Mon Sep 17 00:00:00 2001 From: Bryan McNulty Date: Mon, 10 Mar 2025 16:04:08 -0500 Subject: Added basic dcom execution module --- internal/exec/scmr/exec.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'internal/exec/scmr/exec.go') diff --git a/internal/exec/scmr/exec.go b/internal/exec/scmr/exec.go index 7134df0..656b212 100644 --- a/internal/exec/scmr/exec.go +++ b/internal/exec/scmr/exec.go @@ -27,7 +27,6 @@ func (mod *Module) Connect(ctx context.Context, creds *adauth.Credential, target if cfg, ok := ccfg.ConnectionMethodConfig.(dce.ConnectionMethodDCEConfig); !ok { return fmt.Errorf("invalid configuration for DCE connection method") } else { - // Fetch target hostname - for opening SCM handle if mod.hostname, err = target.Hostname(ctx); err != nil { log.Debug().Err(err).Msg("Failed to get target hostname") @@ -157,7 +156,6 @@ func (mod *Module) Cleanup(ctx context.Context, ccfg *exec.CleanupConfig) (err e func (mod *Module) Exec(ctx context.Context, ecfg *exec.ExecutionConfig) (err error) { - //vctx := context.WithoutCancel(ctx) log := zerolog.Ctx(ctx).With(). Str("method", ecfg.ExecutionMethod). Str("func", "Exec").Logger() -- cgit v1.2.3