Last active
January 25, 2019 06:16
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##! 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