mirror of https://github.com/MISP/misp-modules
add new module dnstrails
parent
70383447a0
commit
60f772b905
|
@ -0,0 +1,25 @@
|
|||
import logging
|
||||
import sys
|
||||
|
||||
log = logging.getLogger('dnstrails')
|
||||
log.setLevel(logging.DEBUG)
|
||||
ch = logging.StreamHandler(sys.stdout)
|
||||
ch.setLevel(logging.DEBUG)
|
||||
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
||||
ch.setFormatter(formatter)
|
||||
log.addHandler(ch)
|
||||
|
||||
misperrors = {'error': 'Error'}
|
||||
mispattributes = {
|
||||
'input': ['hostname', 'domain', 'ip-src', 'ip-dst'],
|
||||
'output': ['hostname', 'domain', 'ip-src', 'ip-dst', 'dns-soa-email']
|
||||
}
|
||||
|
||||
moduleinfo = {'version': '1', 'author': 'Sebastien Larinier @sebdraven',
|
||||
'description': 'Query on securitytrails.com',
|
||||
'module-type': ['expansion', 'hover']}
|
||||
|
||||
# config fields that your code expects from the site admin
|
||||
moduleconfig = ['apikey']
|
||||
|
||||
|
Loading…
Reference in New Issue