mirror of https://github.com/MISP/misp-modules
Module meta added to return version, description and author per module
parent
0ad82a688a
commit
dfc74cfba8
|
@ -62,7 +62,7 @@ class ListModules(tornado.web.RequestHandler):
|
|||
x['name'] = module
|
||||
x['type'] = mhandlers['type:' + module]
|
||||
x['mispattributes'] = mhandlers[module].introspection()
|
||||
x['version'] = mhandlers[module].version()
|
||||
x['meta'] = mhandlers[module].version()
|
||||
ret.append(x)
|
||||
log.debug('MISP ListModules request')
|
||||
self.write(json.dumps(ret))
|
||||
|
|
|
@ -3,7 +3,7 @@ import dns.resolver
|
|||
|
||||
misperrors = {'error' : 'Error'}
|
||||
mispattributes = {'input': ['hostname', 'domain'], 'output': ['ip-src', 'ip-dst']}
|
||||
moduleinfo = "0.1"
|
||||
moduleinfo = {'version': '0.1', 'author': 'Alexandre Dulaunoy', 'description': 'Simple DNS expansion service to resolve IP address from MISP attributes'}
|
||||
|
||||
|
||||
def handler(q=False):
|
||||
|
|
|
@ -3,7 +3,7 @@ import requests
|
|||
|
||||
misperrors = {'error' : 'Error'}
|
||||
mispattributes = {'input': ['hostname', 'domain', 'ip-src', 'ip-dst', 'module-username','module-password'], 'output': ['ip-src', 'ip-dst', 'hostname', 'domain']}
|
||||
moduleinfo = "0.1"
|
||||
moduleinfo = {'version': '0.1', 'author': 'Alexandre Dulaunoy', 'description': 'SPassiveTotal expansion service to expand values with multiple Passive DNS sources'}
|
||||
passivetotal_url = 'https://api.passivetotal.org/v2/dns/passive?query='
|
||||
|
||||
def handler(q=False):
|
||||
|
|
Loading…
Reference in New Issue