misp-modules/misp_modules/modules
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
..
expansion fix: Use the proper formatting method and not the horrible % one 2017-03-08 16:35:03 +00:00
export_mod Add indent field for export 2017-04-21 15:53:48 +02:00
import_mod Added support for malformed internationalized email headers 2017-07-02 18:03:14 -04:00
__init__.py Remove bin script, use cleaner way. Fix last commit. 2016-08-12 12:35:33 +02:00