add expand subdomains

pull/208/head
Sebdraven 4 years ago
parent 64847a8a04
commit 0965def6bf
  1. 11
      misp_modules/modules/expansion/dnstrails.py

@ -1,8 +1,9 @@
import json
import logging
import sys
from dnstrails import DnsTrails
from dnstrails import APIError
from dnstrails import DnsTrails
log = logging.getLogger('dnstrails')
log.setLevel(logging.DEBUG)
@ -68,6 +69,14 @@ def handle_domain(api, domain, misperrors):
r, status_ok = expand_domain_info(api, misperrors, domain)
if status_ok:
result_filtered['results'].extend(r)
else:
misperrors['error'] = 'Error dns result'
return misperrors
r, status_ok = expand_subdomains(api, domain)
if status_ok:
result_filtered['results'].extend(r)
else:

Loading…
Cancel
Save