Skip to content

Commit

Permalink
Merge pull request #1136 from DominicBreuker/master
Browse files Browse the repository at this point in the history
Unblock execute command if no output is requested
  • Loading branch information
moloch-- authored Mar 8, 2023
2 parents dfcbdf7 + 5ab52bc commit 1f76a3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion implant/sliver/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -607,12 +607,16 @@ func executeHandler(data []byte, resp RPCResponse) {
}
} else {
err = cmd.Start()
cmd.Wait()
if err != nil {
execResp.Response = &commonpb.Response{
Err: fmt.Sprintf("%s", err),
}
}

go func() {
cmd.Wait()
}()

if cmd.Process != nil {
execResp.Pid = uint32(cmd.Process.Pid)
}
Expand Down

0 comments on commit 1f76a3f

Please sign in to comment.