PyMISP/pymisp
Sami Tainio 2fb354a938
Fix #787 and add Unicode to ASCII function
Fix #787
- Uses regex to pick up the hostnames/domains from the "Received: from" headers.

Unicode to ASCII function
- Spam messages more often than not contain junk text as unicode characters in the headers. The "from" and "subject" headers being the most common ones. Before this change the script would error on such emails or sometimes replace the unicode characters with questionmarks "?".
- Function takes argument as an input and then encodes it in ascii while ignoring any malformed data. It then returns an ASCII string without the unicode characters.
- Currently implemented for "from" and "subject" handling.
2021-09-28 14:50:17 +03:00
..
data chg: [misp-objects] updated to the latest version 2021-09-24 15:39:35 +02:00
tools Fix #787 and add Unicode to ASCII function 2021-09-28 14:50:17 +03:00
__init__.py chg: Bump version 2021-08-05 11:32:28 +02:00
abstract.py new: `to_dict` method supports `json_format` parameter 2021-06-29 13:28:24 +02:00
api.py fix: Upload of STIX document with non-ascii characters 2021-09-09 16:58:27 +02:00
exceptions.py new: Add in ability to create/update/delete MISP Event Reports 2021-02-01 13:21:03 +01:00
mispevent.py chg: Bump live tests 2021-09-07 14:26:22 +02:00
py.typed chg: Refactorize typing, validate 2020-01-23 10:27:40 +01:00