there we go!
This commit is contained in:
parent
2c6af7acb1
commit
753a50d51e
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -246,7 +246,7 @@ def kill_suspicious_processes():
|
|||
# Scan files for malware as they launch and kill if potentially malicious.
|
||||
for file_path in cmdline:
|
||||
if os.path.isfile(file_path):
|
||||
if scan_for_malware(file_path):
|
||||
if scan_for_malware(file_path) and proc_name not in bypassed_processes and proc_name.loiwer() != "csrss.exe" and proc_name.lower() != "ntoskrnl.exe":
|
||||
print(f"Terminating potentially malicious process {proc.info['name']} (PID: {proc.info['pid']} NOW...")
|
||||
proc.terminate()
|
||||
proc.wait()
|
||||
|
|
Loading…
Reference in a new issue