Skip to content

Commit

Permalink
Print No utmpx artifacts if none found
Browse files Browse the repository at this point in the history
  • Loading branch information
ydkhatri committed Aug 21, 2021
1 parent e3092c0 commit 8314be8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/utmpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ def Plugin_Start(mac_info):
utmpx_artifacts = []
utmpx_path = '/private/var/run/utmpx'

if ProcessUtmpx(mac_info, utmpx_artifacts, utmpx_path):
if len(utmpx_artifacts) > 0:
PrintAll(utmpx_artifacts, mac_info.output_params, '')
else:
log.info('No utmpx artifacts were found!')
ProcessUtmpx(mac_info, utmpx_artifacts, utmpx_path)
if len(utmpx_artifacts) > 0:
PrintAll(utmpx_artifacts, mac_info.output_params, '')
else:
log.info('No utmpx artifacts were found!')

def Plugin_Start_Standalone(input_files_list, output_params):
'''Main entry point function when used on single artifacts (mac_apt_singleplugin), not on a full disk image'''
Expand Down

0 comments on commit 8314be8

Please sign in to comment.