]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #1538 in SNORT/snort3 from ~BRASTULT/snort3:rtf_file_magic to...
authorRuss Combs (rucombs) <rucombs@cisco.com>
Mon, 25 Mar 2019 15:06:19 +0000 (11:06 -0400)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Mon, 25 Mar 2019 15:06:19 +0000 (11:06 -0400)
Squashed commit of the following:

commit c12998cc3682442282ae2725a8922603fc16f65e
Author: Brandon Stultz <brastult@cisco.com>
Date:   Thu Mar 7 13:50:48 2019 -0500

    lua: make RTF file magic more generic

lua/file_magic.lua

index 65483f66303b14063c8b9bd5470c1c0e724e0862..8c93cff5e8680f33b46b2bc406e93b04226bf71a 100644 (file)
@@ -17,7 +17,7 @@ file_magic =
     { type = 'FLIC', id = 15, category = 'Multimedia', msg = 'FLIC Animation file', rev = 2, magic = { { content = '|12 AF|', offset = 4, }, { content = '|40 01|', offset = 8, }, { content = '|c8 00|', offset = 10, }, { content = '|00 00|', offset = 20, }, { content = '|00 00 00 00 00 00 00 00|', offset = 42, }, }, },
     { type = 'MSEXE', id = 21, category = 'Executables,Dynamic Analysis Capable,Local Malware Analysis Capable', msg = 'Windows/DOS executable file ', rev = 1, magic = { { content = '| 4D 5A|', offset = 0, }, }, },
     { type = 'PDF', id = 22, category = 'PDF files,Dynamic Analysis Capable,Local Malware Analysis Capable', msg = 'PDF file ', rev = 1, magic = { { content = '| 25 50 44 46|', offset = 0, }, }, },
-    { type = 'RTF', id = 23, category = 'Office Documents,Dynamic Analysis Capable', msg = 'Rich text format word processing file ', rev = 1, magic = { { content = '| 7B 5C 72 74 66 31|', offset = 0, }, }, },
+    { type = 'RTF', id = 23, category = 'Office Documents,Dynamic Analysis Capable', msg = 'Rich text format word processing file ', rev = 2, magic = { { content = '| 7B 5C 72 74|', offset = 0, }, }, },
     { type = 'RIFF', id = 24, category = 'Multimedia', msg = 'Resource Interchange File Format', rev = 1, magic = { { content = '| 52 49 46 46|', offset = 0, }, }, },
     { type = 'MSCHM', id = 25, category = 'Office Documents', msg = 'Microsoft Compiled HTML Help File', rev = 1, magic = { { content = '| 49 54 53 46|', offset = 0, }, }, },
     { type = 'MSCAB', id = 26, category = 'Archive', msg = 'Microsoft Windows CAB', rev = 1, magic = { { content = '| 4D 53 43 46|', offset = 0, }, }, },