mirror of https://github.com/MISP/misp-modules
fix: Removed not valid input type
parent
6bbb5e9a05
commit
1abcf5fcfb
|
@ -22,7 +22,7 @@ moduleinfo = {
|
||||||
moduleconfig = ['apikey']
|
moduleconfig = ['apikey']
|
||||||
misperrors = {'error': 'Error'}
|
misperrors = {'error': 'Error'}
|
||||||
mispattributes = {
|
mispattributes = {
|
||||||
'input': ['hostname', 'domain', 'url', 'hash'],
|
'input': ['hostname', 'domain', 'url'],
|
||||||
'output': ['hostname', 'domain', 'ip-src', 'ip-dst', 'url', 'text', 'link', 'hash']
|
'output': ['hostname', 'domain', 'ip-src', 'ip-dst', 'url', 'text', 'link', 'hash']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,8 +49,6 @@ def handler(q=False):
|
||||||
r['results'] += lookup_indicator(client, request['hostname'])
|
r['results'] += lookup_indicator(client, request['hostname'])
|
||||||
if 'url' in request:
|
if 'url' in request:
|
||||||
r['results'] += lookup_indicator(client, request['url'])
|
r['results'] += lookup_indicator(client, request['url'])
|
||||||
if 'hash' in request:
|
|
||||||
r['results'] += lookup_indicator(client, request['hash'])
|
|
||||||
|
|
||||||
# Return any errors generated from lookup to the UI and remove duplicates
|
# Return any errors generated from lookup to the UI and remove duplicates
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue