forked from p15670423/monkey
Fix bug in telemetry
This commit is contained in:
parent
a76cf7e3f8
commit
74deebb280
|
@ -123,9 +123,11 @@ class Telemetry(flask_restful.Resource):
|
||||||
|
|
||||||
for attempt in telemetry_json['data']['attempts']:
|
for attempt in telemetry_json['data']['attempts']:
|
||||||
if attempt['result']:
|
if attempt['result']:
|
||||||
attempt.pop('result')
|
found_creds = {'user': attempt['user']}
|
||||||
[attempt.pop(field) for field in ['password', 'lm_hash', 'ntlm_hash'] if len(attempt[field]) == 0]
|
for field in ['password', 'lm_hash', 'ntlm_hash']:
|
||||||
NodeService.add_credentials_to_node(edge['to'], attempt)
|
if len(attempt[field]) != 0:
|
||||||
|
found_creds[field] = attempt[field]
|
||||||
|
NodeService.add_credentials_to_node(edge['to'], found_creds)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def process_scan_telemetry(telemetry_json):
|
def process_scan_telemetry(telemetry_json):
|
||||||
|
|
Loading…
Reference in New Issue