misp-modules/misp_modules/modules/import_mod
seamus tuohy 40c71af637 Added support for malformed internationalized email headers
When an emails contains headers that use Unicode without properly crafing
them to comform to RFC-6323 the email import module would crash.
(See issue #119 & issue #93)

To address this I have added additional layers of encoding/decoding to
any possibly internationalized email headers. This decodes properly
formed and malformed UTF-8, UTF-16, and UTF-32 headers appropriately.
When an unknown encoding is encountered it is returned as an 'encoded-word'
per RFC2047.

This commit also adds unit-tests that tests properly formed and malformed
UTF-8, UTF-16, UTF-32, and CJK encoded strings in all header fields; UTF-8,
UTF-16, and UTF-32 encoded message bodies; and emoji testing for headers
and attachment file names.
2017-07-02 18:03:14 -04:00
..
_vmray Multiple clanges in the vmray modules. 2016-11-15 16:43:11 +01:00
__init__.py Add OpenIOC import module 2017-02-27 13:32:31 +01:00
cuckooimport.py Added cuckooimport.py 2016-12-07 16:36:31 +00:00
email_import.py Added support for malformed internationalized email headers 2017-07-02 18:03:14 -04:00
mispjson.py Updated description to reflect merging use case 2017-01-11 10:08:35 +01:00
ocr.py Remove bin script, use cleaner way. Fix last commit. 2016-08-12 12:35:33 +02:00
openiocimport.py Update travis, fix open ioc import 2017-05-24 07:39:18 +02:00
stiximport.py Make PEP8 happy 2017-01-06 20:10:44 -05:00
testimport.py Remove bin script, use cleaner way. Fix last commit. 2016-08-12 12:35:33 +02:00
vmray_import.py Extra VTI detections 2016-11-27 22:42:43 +01:00