Created
June 25, 2019 15:06
-
-
Save sooshie/c782817bc84fec995cae307a447f870a to your computer and use it in GitHub Desktop.
Extract PE files in Bro/Zeek 2.6.1
This file contains 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
event file_sniff(f: fa_file, meta: fa_metadata) | |
{ | |
if ( ! meta?$mime_type ) return; | |
if ( meta$mime_type == "application/x-dosexec" ) | |
{ | |
local fname = fmt("%s-%s.%s", f$source, f$id, "._xe"); | |
Files::add_analyzer(f, Files::ANALYZER_EXTRACT, [$extract_filename=fname]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment