예제 #1
0
 def __init__(self, ipa_path, bundle_id):
     if not data.logger:
         data.logger = logging.getLogger('root')
     self.status = 0
     self.need_connection = False
     Utils.build()
     pre_status = IOSs.prepare_for_basic_info(ipa_path, bundle_id)
     if pre_status == 4:
         self.status = 4
     elif pre_status == 5:
         self.status = 5
     self.t_static = static_analyze.static_analyzer()
     self.server = Nessus()
예제 #2
0
 def __init__(self, ipa_path, bundle_id, connector, static_type=None):
     data.static_type = static_type
     if not data.logger:
         data.logger = logging.getLogger('root')
     self.status = 0  # 作为检测任务,与server.py中对应
     IOS.connect(connector)  # 与测试机建立连接
     Utils.build()  # 在测试机中建立文件夹,用于检测的中间文件存储
     pre_status = IOS.prepare_for_basic_info(ipa_path, bundle_id)
     if pre_status == 4:
         self.status = 4
     elif pre_status == 5:
         self.status = 5
     self.t_static = static_analyze.static_analyzer() # 静态分析入口 do_analyse
     self.app_dynamic_info = AppDynamicInfo(data.app_bundleID)
     self.t_socket = socketServer.SocketServerThread(self.app_dynamic_info)
     self.server = Nessus()