PyMISP/pymisp/tools
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
..
pdf_fonts@7ff222022e chg: Add i8n for pdfexport, without all the fonts in the main repo 2019-03-04 16:06:38 -08:00
__init__.py fix: Do not fail if extract_msg is missing 2021-01-11 14:57:22 +01:00
abstractgenerator.py Linting/Add missing whitespace 2020-07-28 20:05:42 +02:00
asnobject.py Linting/Add missing whitespace 2020-07-28 20:05:42 +02:00
create_misp_object.py chg: Remove critical warning if lief is not installed 2021-01-26 13:14:03 +01:00
csvloader.py chg: Raise exception on missing template in CSVLoader 2021-03-05 19:33:27 +01:00
domainipobject.py Linting/Add missing whitespace 2020-07-28 20:05:42 +02:00
elfobject.py fix: Skip nameless sections in ELF 2021-03-16 17:56:06 +01:00
emailobject.py Fix #787 and add Unicode to ASCII function 2021-09-28 14:50:17 +03:00
ext_lookups.py chg: Refactorize typing, validate 2020-01-23 10:27:40 +01:00
fail2banobject.py Linting/Add missing whitespace 2020-07-28 20:05:42 +02:00
feed.py chg: Refactorize typing, validate 2020-01-23 10:27:40 +01:00
fileobject.py chg: Disable correlation on malware-sample for FileObject 2021-02-01 12:17:28 +01:00
genericgenerator.py chg: Refactorize typing, validate 2020-01-23 10:27:40 +01:00
geolocationobject.py Linting/Add missing whitespace 2020-07-28 20:05:42 +02:00
git_vuln_finder_object.py Linting/Add missing whitespace 2020-07-28 20:05:42 +02:00
load_warninglists.py chg: Refactorize typing, validate 2020-01-23 10:27:40 +01:00
machoobject.py chg: Add comments to ELF, PE, and MachO object generators. 2020-09-15 12:39:59 +02:00
microblogobject.py chg: Remove standalone default value from MISPObject children c'tor 2020-06-30 12:40:08 +02:00
neo4j.py chg: Refactorize typing, validate 2020-01-23 10:27:40 +01:00
openioc.py chg: Refactorize typing, validate 2020-01-23 10:27:40 +01:00
peobject.py fix: Do not add the serial-number twice. 2021-02-16 18:34:58 +01:00
reportlab_generator.py chg: Bump deps, add pep8 test 2020-01-30 11:44:13 +01:00
sbsignatureobject.py chg: Remove standalone default value from MISPObject children c'tor 2020-06-30 12:40:08 +02:00
sshauthkeyobject.py Linting/Add missing whitespace 2020-07-28 20:05:42 +02:00
stix.py Revert "chg: Remove legacy stix converter." 2021-06-23 12:19:04 +02:00
update_objects.py new: Method to get the new version of the templates 2020-09-10 15:26:34 +02:00
urlobject.py chg: Add controller argument to get_csv script 2021-01-11 11:49:12 +01:00
vehicleobject.py chg: Remove standalone default value from MISPObject children c'tor 2020-06-30 12:40:08 +02:00
vtreportobject.py Linting/Add missing whitespace 2020-07-28 20:05:42 +02:00