Module meta added to return version, description and author per module

pull/2/head
Alexandre Dulaunoy 2016-03-09 07:23:32 +01:00
parent 0ad82a688a
commit dfc74cfba8
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ class ListModules(tornado.web.RequestHandler):
x['name'] = module x['name'] = module
x['type'] = mhandlers['type:' + module] x['type'] = mhandlers['type:' + module]
x['mispattributes'] = mhandlers[module].introspection() x['mispattributes'] = mhandlers[module].introspection()
x['version'] = mhandlers[module].version() x['meta'] = mhandlers[module].version()
ret.append(x) ret.append(x)
log.debug('MISP ListModules request') log.debug('MISP ListModules request')
self.write(json.dumps(ret)) self.write(json.dumps(ret))

View File

@ -3,7 +3,7 @@ import dns.resolver
misperrors = {'error' : 'Error'} misperrors = {'error' : 'Error'}
mispattributes = {'input': ['hostname', 'domain'], 'output': ['ip-src', 'ip-dst']} 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): def handler(q=False):

View File

@ -3,7 +3,7 @@ import requests
misperrors = {'error' : 'Error'} misperrors = {'error' : 'Error'}
mispattributes = {'input': ['hostname', 'domain', 'ip-src', 'ip-dst', 'module-username','module-password'], 'output': ['ip-src', 'ip-dst', 'hostname', 'domain']} 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=' passivetotal_url = 'https://api.passivetotal.org/v2/dns/passive?query='
def handler(q=False): def handler(q=False):