This commit is contained in:
Sebastian Lenzlinger 2023-06-11 18:24:42 +02:00
parent c8da5e4743
commit 92fc49ac9e
2 changed files with 32 additions and 34 deletions

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python3
import subprocess
import time
import multiprocessing
@ -136,7 +138,6 @@ def detect_logger(module):
#
#==============================================================================================================
def run_kernel_detection():
whitelist = get_whitelist("whitelist.txt")
lsmod_output = list_modules("lsmod");

View File

@ -41,7 +41,7 @@ def print_help():
print(' -w, --add-white-list\t\t\tActivate prompt to add program names to the whitelist') #For some reason this line gets messed up in display
print(' -b, --add-black-list\t\t\tAutomatically add program names chosen to kill to the blacklist')
print(' -d, --debug\t\t\tDebug mode. Print debug statements')
print(' -k, --kernel-detection\t\t\tRun the kernel keylogger detector, too')
print(' -k, --kernel-detection\t\t\tRun the kernel keylogger detector, too. CURRENTLY NOT IMPLEMENTED TO DIRECTLY RUN KERNEL DETECTOR.')
def set_input_options():
"""
@ -294,10 +294,7 @@ def detect_keyloggers():
debug(debug_option, 'Kernel detection option: ' + str(kernel_detection_option))
if kernel_detection_option:
print("[Info] Starting kernel detection")
run_kernel_detection()
;
if __name__ == '__main__':
detect_keyloggers()