forked from p15670423/monkey
HOTFIX: Ignored cases where a user doesn't have hostname in shared_passwords issue
This commit is contained in:
parent
0361219488
commit
b14384fcb5
|
@ -119,7 +119,8 @@ class PTHReportService(object):
|
|||
{
|
||||
'type': 'shared_passwords_domain' if user_info['domain_name'] else 'shared_passwords',
|
||||
'machine': user_info['hostname'] if user_info['hostname'] else user_info['domain_name'],
|
||||
'shared_with': [i['hostname'] + '\\' + i['username'] for i in group['cred_groups']],
|
||||
'shared_with': [i['hostname'] if i['hostname']
|
||||
else i['domain_name'] + '\\' + i['username'] for i in group['cred_groups']],
|
||||
'is_local': False if user_info['domain_name'] else True
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue