base/utils/exec.zeek
- Exec
A module for executing external command line programs.
- Namespace:
Exec
- Imports:
Summary
Types
Functions
Function for running command line programs and getting output. |
Detailed Interface
Types
- Exec::Command
- Type:
- Fields:
-
cmd:
string The command line to execute. Use care to avoid injection attacks (i.e., if the command uses untrusted/variable data, sanitize it with
safe_shell_quote).
-
cmd:
- Exec::Result
- Type:
- Fields:
-
-
files:
table[string] ofstring_vec&optional If additional files were requested to be read in the content of the files will be available here.
-
files:
Functions
- Exec::run
- Type:
function(cmd:Exec::Command) :Exec::Result
Function for running command line programs and getting output. This is an asynchronous function which is meant to be run with the
whenstatement.- Parameters:
cmd – The command to run. Use care to avoid injection attacks!
- Returns:
A record representing the full results from the external program execution.