You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected to create a sacrificial logon session and then run a command without the agent crashing.
Actual Behavior
Agent crashes after creating a sacrificial logon session and then trying to run a command
Steps to Reproduce Behavior
From a Windows agent, create a sacrificial logon sessions with token make ACME\\RAstley password
Run a program with that token by issuing run klist
Agent will crash
Misc Information
The problem is in the commands/exec_windows.go file because error checks are not performed before trying to reference the object:
cmd := exec.Command(application, args...)
cmd.SysProcAttr = attr
out, err := cmd.CombinedOutput()
stdout = fmt.Sprintf("Created %s process with an ID of %d\n", application, cmd.Process.Pid)
The text was updated successfully, but these errors were encountered:
Prerequisite
Environment Data
Expected Behavior
Expected to create a sacrificial logon session and then run a command without the agent crashing.
Actual Behavior
Agent crashes after creating a sacrificial logon session and then trying to run a command
Steps to Reproduce Behavior
token make ACME\\RAstley password
run klist
Misc Information
The problem is in the
commands/exec_windows.go
file because error checks are not performed before trying to reference the object:The text was updated successfully, but these errors were encountered: