Skip to content

Instantly share code, notes, and snippets.

@okofish
Last active January 25, 2019 06:16
Show Gist options
  • Save okofish/6510b5da02b547e63966 to your computer and use it in GitHub Desktop.
Save okofish/6510b5da02b547e63966 to your computer and use it in GitHub Desktop.
i had some trouble finding info on running shell commands in bro, so i thought i'd share what i found
##! cmd.bro
##! runs shell commands with bro
## just replace ls with your command
## the script runs fine alone, or you can wrap it in a notice
local cmd = fmt("ls");
piped_exec(cmd, fmt(""));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment