From 0be188644453e983dafa8894e30492b4a7f52e98 Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Tue, 16 Jan 2018 15:13:17 +0100 Subject: [PATCH] fix farsight_passivedns - rdata 404 not found --- misp_modules/modules/expansion/farsight_passivedns.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misp_modules/modules/expansion/farsight_passivedns.py b/misp_modules/modules/expansion/farsight_passivedns.py index 7c0ad23..c76c752 100755 --- a/misp_modules/modules/expansion/farsight_passivedns.py +++ b/misp_modules/modules/expansion/farsight_passivedns.py @@ -50,10 +50,10 @@ def lookup_name(client, name): for i in item.get('rdata'): # grab email field and replace first dot by @ to convert to an email address yield(i.split(' ')[1].rstrip('.').replace('.', '@', 1)) - res = client.query_rdata_name(name) # RDATA = entries on the right-hand side of the domain name related labels - for item in res: - if item.get('rrtype') in ['A', 'AAAA', 'CNAME']: - yield(item.get('rrname').rstrip('.')) + # res = client.query_rdata_name(name) # RDATA = entries on the right-hand side of the domain name related labels + # for item in res: + # if item.get('rrtype') in ['A', 'AAAA', 'CNAME']: + # yield(item.get('rrname').rstrip('.')) def lookup_ip(client, ip):