|
|
@ -52,6 +52,7 @@ class BaseTask(object): |
|
|
|
comp_list = task_info["comp_list"] |
|
|
|
comp_list = task_info["comp_list"] |
|
|
|
packagename = task_info["packagename"] |
|
|
|
packagename = task_info["packagename"] |
|
|
|
file_identifier = task_info["file_identifier"] |
|
|
|
file_identifier = task_info["file_identifier"] |
|
|
|
|
|
|
|
permissions = task_info["permissions"] |
|
|
|
|
|
|
|
|
|
|
|
if shell_flag: |
|
|
|
if shell_flag: |
|
|
|
print('[-] \033[3;31m Error: This application has shell, the retrieval results may not be accurate, Please remove the shell and try again!') |
|
|
|
print('[-] \033[3;31m Error: This application has shell, the retrieval results may not be accurate, Please remove the shell and try again!') |
|
|
@ -66,7 +67,7 @@ class BaseTask(object): |
|
|
|
thread.join() |
|
|
|
thread.join() |
|
|
|
|
|
|
|
|
|
|
|
# 结果输出中心 |
|
|
|
# 结果输出中心 |
|
|
|
self.__print_control__(packagename,comp_list,file_identifier) |
|
|
|
self.__print_control__(packagename,comp_list,file_identifier,permissions) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def __tast_control__(self): |
|
|
|
def __tast_control__(self): |
|
|
@ -98,7 +99,7 @@ class BaseTask(object): |
|
|
|
thread.start() |
|
|
|
thread.start() |
|
|
|
self.thread_list.append(thread) |
|
|
|
self.thread_list.append(thread) |
|
|
|
|
|
|
|
|
|
|
|
def __print_control__(self,packagename,comp_list,file_identifier): |
|
|
|
def __print_control__(self,packagename,comp_list,file_identifier,permissions): |
|
|
|
txt_result_path = cores.txt_result_path |
|
|
|
txt_result_path = cores.txt_result_path |
|
|
|
xls_result_path = cores.xls_result_path |
|
|
|
xls_result_path = cores.xls_result_path |
|
|
|
all_flag = cores.all_flag |
|
|
|
all_flag = cores.all_flag |
|
|
@ -112,10 +113,15 @@ class BaseTask(object): |
|
|
|
print(packagename) |
|
|
|
print(packagename) |
|
|
|
|
|
|
|
|
|
|
|
if len(comp_list) != 0: |
|
|
|
if len(comp_list) != 0: |
|
|
|
print("[*] ========= Component information is as follows :===============") |
|
|
|
print("[*] ========= Component information is as follows: ===============") |
|
|
|
for json in comp_list: |
|
|
|
for json in comp_list: |
|
|
|
print(json) |
|
|
|
print(json) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if len(permissions) != 0: |
|
|
|
|
|
|
|
print("[*] ========= Sensitive permission information is as follows: ===============") |
|
|
|
|
|
|
|
for permission in permissions: |
|
|
|
|
|
|
|
print(permission) |
|
|
|
|
|
|
|
|
|
|
|
if all_flag: |
|
|
|
if all_flag: |
|
|
|
value_list = [] |
|
|
|
value_list = [] |
|
|
|
with open(txt_result_path,"a+",encoding='utf-8',errors='ignore') as f: |
|
|
|
with open(txt_result_path,"a+",encoding='utf-8',errors='ignore') as f: |
|
|
|