[Bro] Getting the Output From system()
seth at icir.org
Tue Dec 11 13:47:08 PST 2012
On Dec 11, 2012, at 4:26 PM, Chris Crawford <christopher.p.crawford at gmail.com> wrote:
> Is there anything like system() that returns the output of an external command?
I hate that I'm even pointing this out on the mailing list, but here it goes…
You can do it with the input framework and system command together. I have a minimal example that I wrote for the SecurityOnion guys for their Bro installation. This script runs the hostname command and collects the output.
Have fun. :)
International Computer Science Institute
(Bro) because everyone has a network
More information about the Bro