[Bro] File name from fa_file
Hosom, Stephen M
hosom at battelle.org
Tue Sep 29 10:26:57 PDT 2015
Filename does not always exist. That field is only created under circumstances where the protocol has a portion that would tell the server or client receiving the file what the name should be-most commonly that applies to HTTP. What is it that you're trying to do with filenames, or what information are you attempting to derive from them? Generally it isn't wise to trust filenames that you see on the wire for a whole lot.
From: bro-bounces at bro.org [mailto:bro-bounces at bro.org] On Behalf Of Pigott, Nathan
Sent: Tuesday, September 29, 2015 1:08 PM
To: bro at bro.org
Subject: [Bro] File name from fa_file
I'm having problems getting file names from fa_file - the field f$info$filename is showing up uninitialized on every single fa_file in all my tests. Is there a known reason why this would be happening? I'm using Bro 2.3, but I tested on 2.4 as well and got the same results.
Are there any alternative ways to get file names? For now I'm parsing the URL returned by Files::describe(f), but this does not work if the URL doesn't contain the file name, or if the file was transferred with a protocol other than HTTP.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Bro