mirror of https://github.com/MISP/misp-modules
commit
68b05c5e18
|
@ -4,7 +4,7 @@ import json
|
||||||
from asnhistory import ASNHistory
|
from asnhistory import ASNHistory
|
||||||
|
|
||||||
misperrors = {'error': 'Error'}
|
misperrors = {'error': 'Error'}
|
||||||
mispattributes = {'input': ['asn'], 'output': ['freetext']}
|
mispattributes = {'input': ['AS'], 'output': ['freetext']}
|
||||||
moduleinfo = {'version': '0.1', 'author': 'Raphaël Vinot',
|
moduleinfo = {'version': '0.1', 'author': 'Raphaël Vinot',
|
||||||
'description': 'Query an ASN Description history service (https://github.com/CIRCL/ASN-Description-History.git)',
|
'description': 'Query an ASN Description history service (https://github.com/CIRCL/ASN-Description-History.git)',
|
||||||
'module-type': ['expansion', 'hover']}
|
'module-type': ['expansion', 'hover']}
|
||||||
|
@ -16,8 +16,8 @@ def handler(q=False):
|
||||||
if q is False:
|
if q is False:
|
||||||
return False
|
return False
|
||||||
request = json.loads(q)
|
request = json.loads(q)
|
||||||
if request.get('asn'):
|
if request.get('AS'):
|
||||||
toquery = request['asn']
|
toquery = request['AS']
|
||||||
else:
|
else:
|
||||||
misperrors['error'] = "Unsupported attributes type"
|
misperrors['error'] = "Unsupported attributes type"
|
||||||
return misperrors
|
return misperrors
|
||||||
|
|
Loading…
Reference in New Issue