mirror of https://github.com/MISP/misp-modules
add logs
parent
153d8bd340
commit
fe00f099f6
|
@ -22,7 +22,6 @@ moduleconfig = ['apikey']
|
||||||
|
|
||||||
|
|
||||||
def handler(q=False):
|
def handler(q=False):
|
||||||
print(q)
|
|
||||||
if q:
|
if q:
|
||||||
|
|
||||||
request = json.loads(q)
|
request = json.loads(q)
|
||||||
|
@ -83,7 +82,8 @@ def handle_ip(api, ip, misperrors):
|
||||||
if status_ok:
|
if status_ok:
|
||||||
result_filtered['results'].append(r)
|
result_filtered['results'].append(r)
|
||||||
else:
|
else:
|
||||||
return r
|
misperrors['error'] = 'Error datascan result'
|
||||||
|
return misperrors
|
||||||
|
|
||||||
r, status_ok = expand_forward(api, ip, misperrors)
|
r, status_ok = expand_forward(api, ip, misperrors)
|
||||||
|
|
||||||
|
@ -91,8 +91,8 @@ def handle_ip(api, ip, misperrors):
|
||||||
result_filtered['results'].extend(r)
|
result_filtered['results'].extend(r)
|
||||||
else:
|
else:
|
||||||
misperrors['error'] = 'Error forward result'
|
misperrors['error'] = 'Error forward result'
|
||||||
return
|
return misperrors
|
||||||
#
|
|
||||||
r, status_ok = expand_reverse(api, ip, misperrors)
|
r, status_ok = expand_reverse(api, ip, misperrors)
|
||||||
|
|
||||||
if status_ok:
|
if status_ok:
|
||||||
|
|
Loading…
Reference in New Issue