From beca7e4803a9e7e28a1652dcdeddd1d20e064bf0 Mon Sep 17 00:00:00 2001 From: Sascha Rommelfangen Date: Mon, 29 May 2017 14:09:51 +0200 Subject: [PATCH] fix for defang with urllib2 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 453b973..6c0db56 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,8 @@ You should now be able to send your IoC-containing mails to misp_handler@YOURDOM - Python 3 - urlmarker from https://github.com/rcompton/ryancompton.net/blob/master/assets/praw_drugs/urlmarker.py (contained in this project) - defang from https://bitbucket.org/johannestaas/defang +- Patch defang/defang/__init__.py by commenting out the following line (not used && not compatible with Python 3): +`from urllib2 import urlparse` - Optionally patch defang/defang/__init__.py and add dirty_line = dirty_line.replace('hxxp', 'http') at line 47 ### Thunderbird