From b677cd5fc7ef1a69b938ff8020e15c42142b5dfd Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Tue, 10 Jul 2018 15:16:02 +0200 Subject: [PATCH] change categories --- misp_modules/modules/expansion/dnstrails.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/misp_modules/modules/expansion/dnstrails.py b/misp_modules/modules/expansion/dnstrails.py index 6f52dff..8d17fa5 100644 --- a/misp_modules/modules/expansion/dnstrails.py +++ b/misp_modules/modules/expansion/dnstrails.py @@ -229,15 +229,14 @@ def expand_whois(api, domain): item_registrant['telephone'], item_registrant['name'], results['registrarName'], results['createdDate']] - for t, v in zip(types, values): - r.append({ + + r = [{ 'types': t, 'values': v, - 'categories': ['attribution'], + 'categories': ['Attribution'], 'comment': 'whois information of %s by securitytrails' % domain - } + } for t, v in zip(types, values)] - ) # TODO File "modules/expansion/dnstrails.py", line 230, in expand_whois # 'values': [item_registrant['email'], # TypeError: 'NoneType' object is not subscriptable