mirror of https://github.com/MISP/misp-modules
parent
bf617807df
commit
33bba708bf
|
@ -8,7 +8,8 @@ except ImportError:
|
||||||
misperrors = {'error': 'Error'}
|
misperrors = {'error': 'Error'}
|
||||||
|
|
||||||
mispattributes = {'input': ['ip-src', 'ip-dst', 'hostname', 'domain'],
|
mispattributes = {'input': ['ip-src', 'ip-dst', 'hostname', 'domain'],
|
||||||
'output': ['hostname', 'domain', 'ip-src', 'ip-dst', 'url']}
|
'format': 'misp_standard'
|
||||||
|
}
|
||||||
# possible module-types: 'expansion', 'hover' or both
|
# possible module-types: 'expansion', 'hover' or both
|
||||||
moduleinfo = {'version': '1', 'author': 'Sebastien Larinier @sebdraven',
|
moduleinfo = {'version': '1', 'author': 'Sebastien Larinier @sebdraven',
|
||||||
'description': 'Query on yeti',
|
'description': 'Query on yeti',
|
||||||
|
@ -69,7 +70,7 @@ def handler(q=False):
|
||||||
yeti_client = None
|
yeti_client = None
|
||||||
|
|
||||||
request = json.loads(q)
|
request = json.loads(q)
|
||||||
|
print(request)
|
||||||
if 'config' in request and 'url' in request['config']:
|
if 'config' in request and 'url' in request['config']:
|
||||||
yeti_url = request['config']['url']
|
yeti_url = request['config']['url']
|
||||||
if 'config' in request and 'apikey' in request['config']:
|
if 'config' in request and 'apikey' in request['config']:
|
||||||
|
|
Loading…
Reference in New Issue