コード例 #1
0
    def execFun(self, Static_Analyzer_Dict = {}):
        print u'[INFO] %s (V%s)' %(self.__doc__, self.version)
        a = Analyzer(Static_Analyzer_Dict['path_to_sqlite3'])
        PERMISSIONS = a.select('PERMISSIONS',md5=Static_Analyzer_Dict['md5'])
        if len(PERMISSIONS) == 0:
            print u'[Warning] PERMISSIONS记录为空'
            return 1,'PERMISSIONS记录为空'

        self._checkResultDetails = PERMISSIONS[0][0]
        self._conclusion = 1
        return self._conclusion, self._checkResultDetails
コード例 #2
0
 def execFun(self, Static_Analyzer_Dict = {}):
     print u'[INFO] %s (V%s)' %(self.__doc__, self.version)
     a = Analyzer(Static_Analyzer_Dict['path_to_sqlite3'])
     CERT_INFO = a.select('CERT_INFO',md5=Static_Analyzer_Dict['md5'])
     if len(CERT_INFO) == 0:
         print u'[Warning] CERT_INFO记录为空'
         return 1,'未检测到签名信息'
     self._conclusion = 1
     self._checkResultDetails = CERT_INFO[0][0]
     self._checkResultDetails = self._checkResultDetails.replace('\r','')
     self._checkResultDetails = self._checkResultDetails.replace('\n','')
     return self._conclusion, self._checkResultDetails
コード例 #3
0
 def execFun(self, Static_Analyzer_Dict = {}):
     print u'[INFO] %s (V%s)' %(self.__doc__, self.version)
     a = Analyzer(Static_Analyzer_Dict['path_to_sqlite3'])
     PERMISSIONS = a.select('PERMISSIONS',md5=Static_Analyzer_Dict['md5'])
     if len(PERMISSIONS) == 0:
         print u'[Warning] PERMISSIONS记录为空'
         return 1,'PERMISSIONS记录为空'
     PermissionsArray = ['android.permission.SEND_SMS',
                         'android.permission.WRITE_SMS',
                         'android.permission.RECEIVE_SMS',
                         'android.permission.READ_SMS']
     self._conclusion = 1
     for x in PermissionsArray:
         if(str(PERMISSIONS).find(x) != -1):
             self._checkResultDetails = x + '<br>'
             self._conclusion = 2
         self._checkResultDetails = '没有SMS短信相关权限'
         self._conclusion = 1
     return self._conclusion, self._checkResultDetails