diff --git a/bin/misp-modules.py b/bin/misp-modules.py index b65c0aa..9f30538 100644 --- a/bin/misp-modules.py +++ b/bin/misp-modules.py @@ -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)) diff --git a/modules/expansion/dns.py b/modules/expansion/dns.py index 783114f..136b16c 100755 --- a/modules/expansion/dns.py +++ b/modules/expansion/dns.py @@ -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): diff --git a/modules/expansion/passivetotal.py b/modules/expansion/passivetotal.py index cdabd00..ad6b7b1 100755 --- a/modules/expansion/passivetotal.py +++ b/modules/expansion/passivetotal.py @@ -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):