fixed
This commit is contained in:
huoji
2022-09-23 15:21:33 +08:00
parent 011496349a
commit d5b88c7a01
8 changed files with 54 additions and 13 deletions

View File

@@ -1,3 +1,4 @@
import process
import sql
g_white_list = []
g_white_dll_load_list = [
@@ -24,6 +25,20 @@ g_white_dll_load_list = [
]
def check_in_while_list(process: process.Process):
parent_process = process.parent_process
is_white = process.is_white or process.chain.root_process.is_white or process.parent_process.is_white
if is_white == False:
while parent_process:
if parent_process is None or parent_process == process.chain.root_process:
break
if parent_process.is_white:
is_white = True
break
parent_process = parent_process.parent_process
return is_white
def add_white_list(path, hash, reason):
global g_white_list
if hash in g_white_list: