Right now if a command runs forever, zaprus will hang waiting for the command to finish. Instead, it should timeout after 3 seconds, and kill the process if it takes too long to finish.
Adversarial C2 Protocol Implemented in Zig
Timeout executed commands #2
closed
opened by
zambyte.robbyzambito.me
zambyte.robbyzambito.me
(author)
zambyte.robbyzambito.me
(author)
This branch is currently in an invalid state. Not sure why the Writer.drain is not being hit when I stream the stdout std.Io.File of the child process to the Writer. Going to take a different approach to the timeouts for now.
Working on this in connection-writer. Need to use a writer instead of using collectOutput, because collectOutput cannot be cancelled.