Exemple #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)
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)
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
Exemple #4
0
def usesRoot(classes):
    global result
    if analysisUtils.findInvocationSites(classes,"getRootDirectory").__len__ > 0:
        result["Root"] = True
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
Exemple #6
0
def usesCache(classes):
    global result
    if analysisUtils.findInvocationSites(classes,"getDownloadCacheDirectory").__len__ > 0:
        result["Download/Cache Directory"] = True
Exemple #7
0
def usesDataDir(classes):
    global result
    if analysisUtils.findInvocationSites(classes,"getDataDirectory").__len__ > 0:
        result["Data Directory"] = True
Exemple #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
def run(classes, dependencies, sharedobjs):
    global result
    log.info("Analysis: Device ID Query Check")
    if analysisUtils.findInvocationSites(classes, "getDeviceId").__len__ > 0:
        result = True
def run(classes, dependencies, sharedobjs):
    global result
    log.info("Analysis: Device ID Query Check")
    if analysisUtils.findInvocationSites(classes,"getDeviceId").__len__ > 0:
        result = True