DEBUG
This commit is contained in:
parent
96ffca9097
commit
befe4814cf
@ -131,7 +131,7 @@ def detect_keyloggers():
|
||||
pids = []
|
||||
for device_file in keyboard_device_files:
|
||||
pids.append(get_pids_using_file(device_file))
|
||||
pids = sorted(list(set(pids)))
|
||||
pids = sorted(list(set(int(pid) for pid in pids)))
|
||||
if verbose_option:
|
||||
print('[Verbose] Process IDs using keyboard device files:', pids)
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ def get_keyboard_device_files(names):
|
||||
keyboard_device_files = []
|
||||
for root, dirs, files in os.walk('/dev/input/by-path'):
|
||||
for file in files:
|
||||
if any(name in files for name in names):
|
||||
if any(name in file for name in names):
|
||||
keyboard_device_files.append(get_real_path(os.path.join(root, file)))
|
||||
return keyboard_device_files
|
||||
|
||||
|
||||
Reference in New Issue
Block a user