Adversarial C2 Protocol Implemented in Zig

Timeout executed commands #2

closed opened by zambyte.robbyzambito.me

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.

Working on this in connection-writer. Need to use a writer instead of using collectOutput, because collectOutput cannot be cancelled.

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.

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:r32o5ntbdykfjc5x2djfemzq/sh.tangled.repo.issue/3mdbizsmt5d22