Esempio n. 1
0
def run(classes, dependencies, sharedobjs):
    log.info("Analysis: String Decryption Check")
    methodParams = {
        'Returns': 'Ljava/lang/String;',
        'Parameters': 'Ljava/lang/String;'
    }
    methods = analysisUtils.findFunctionsBySignature(classes, methodParams)
    for m in methods:
        analysisUtils.findInvocationSites(classes, m)
Esempio n. 2
0
def run(classes, dependencies, sharedobjs):
    log.info("Analysis: String Decryption Check")
    methodParams = {'Returns':'Ljava/lang/String;','Parameters':'Ljava/lang/String;'}
    methods = analysisUtils.findFunctionsBySignature(classes,methodParams)
    for m in methods:
        analysisUtils.findInvocationSites(classes,m)
Esempio n. 3
0
def run(classes, dependencies, sharedobjs):
    global result
    log.info("Analysis: Network Connection Check")
    if analysisUtils.findInvocationSites(classes,"getActiveNetworkInfo").__len__ > 0 or \
       analysisUtils.findInvocationSites(classes,"isConnectedOrConnecting").__len__ > 0:
        result = True
Esempio n. 4
0
def usesRoot(classes):
    global result
    if analysisUtils.findInvocationSites(classes,"getRootDirectory").__len__ > 0:
        result["Root"] = True
Esempio n. 5
0
def run(classes, dependencies, sharedobjs):
    global result
    log.info("Analysis: Network Connection Check")
    if analysisUtils.findInvocationSites(classes,"getActiveNetworkInfo").__len__ > 0 or \
       analysisUtils.findInvocationSites(classes,"isConnectedOrConnecting").__len__ > 0:
        result = True
Esempio n. 6
0
def usesCache(classes):
    global result
    if analysisUtils.findInvocationSites(classes,"getDownloadCacheDirectory").__len__ > 0:
        result["Download/Cache Directory"] = True
Esempio n. 7
0
def usesDataDir(classes):
    global result
    if analysisUtils.findInvocationSites(classes,"getDataDirectory").__len__ > 0:
        result["Data Directory"] = True
Esempio n. 8
0
def usesExternalStorage(classes):
    global result
    if analysisUtils.findInvocationSites(classes,"getExternalStorageDirectory").__len__ > 0 or \
       analysisUtils.findInvocationSites(classes,"getExternalStoragePublicDirectory").__len__ > 0 :
        result["External Storage"] = True
Esempio n. 9
0
def run(classes, dependencies, sharedobjs):
    global result
    log.info("Analysis: Device ID Query Check")
    if analysisUtils.findInvocationSites(classes, "getDeviceId").__len__ > 0:
        result = True
Esempio n. 10
0
def run(classes, dependencies, sharedobjs):
    global result
    log.info("Analysis: Device ID Query Check")
    if analysisUtils.findInvocationSites(classes,"getDeviceId").__len__ > 0:
        result = True