misp-modules/tests
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
..
test_files Added unit tests for UTF emails 2017-01-11 17:53:54 -05:00
EICAR.com Add additional email parsing and tests 2017-01-04 10:21:36 -08:00
EICAR.com.zip Add additional email parsing and tests 2017-01-04 10:21:36 -08:00
__init__.py Proper testcases 2016-06-18 15:09:42 +09:00
body.json dns module test with option added 2016-04-01 08:00:56 +02:00
body_timeout.json Add timeout for the modules, cleanup. 2016-08-25 17:36:28 +02:00
bodycircl_passivedns.json.sample Tests updated to include CIRCL passive dns 2016-03-25 11:01:12 +01:00
bodycircl_passivessl.json.sample Add CIRCL pssl module 2016-03-25 17:38:03 +01:00
bodycve.json cve module tests added 2016-03-18 08:17:17 +01:00
bodypassivetotal.json.sample Test file for passivetotal updated 2016-03-25 09:04:23 +01:00
bodysourcecache.json A minimal caching module added to cache link or url from MISP 2016-03-14 20:40:06 +01:00
bodyvirustotal.json.sample Added virustotal tests 2016-08-17 13:01:11 +01:00
infected.zip Add additional email parsing and tests 2017-01-04 10:21:36 -08:00
longer_password.zip Add additional email parsing and tests 2017-01-04 10:21:36 -08:00
openioc.xml Add OpenIOC import module 2017-02-27 13:32:31 +01:00
query-circl_passivedns.sh Make it a package 2016-06-18 11:04:41 +09:00
query-circl_passivessl.sh Make it a package 2016-06-18 11:04:41 +09:00
query-cve.sh Make it a package 2016-06-18 11:04:41 +09:00
query-dns.sh Make it a package 2016-06-18 11:04:41 +09:00
query-sourcecache.sh Make it a package 2016-06-18 11:04:41 +09:00
search-modules.sh Make it a package 2016-06-18 11:04:41 +09:00
short_password.zip Add additional email parsing and tests 2017-01-04 10:21:36 -08:00
stix.xml added tests, also disregards related_observables. Because they're useless 2016-08-12 12:16:49 +01:00
test.py Added support for malformed internationalized email headers 2017-07-02 18:03:14 -04:00