mirror of https://github.com/MISP/misp-modules
add expand subdomains
parent
64847a8a04
commit
0965def6bf
|
@ -1,8 +1,9 @@
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
from dnstrails import DnsTrails
|
|
||||||
from dnstrails import APIError
|
from dnstrails import APIError
|
||||||
|
from dnstrails import DnsTrails
|
||||||
|
|
||||||
log = logging.getLogger('dnstrails')
|
log = logging.getLogger('dnstrails')
|
||||||
log.setLevel(logging.DEBUG)
|
log.setLevel(logging.DEBUG)
|
||||||
|
@ -68,6 +69,14 @@ def handle_domain(api, domain, misperrors):
|
||||||
|
|
||||||
r, status_ok = expand_domain_info(api, misperrors, domain)
|
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:
|
if status_ok:
|
||||||
result_filtered['results'].extend(r)
|
result_filtered['results'].extend(r)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue