ccgreen13 / androguard

Automatically exported from code.google.com/p/androguard
Apache License 2.0
0 stars 0 forks source link

improve is_reflection_code #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
def is_reflection_code(dx) :
    """
        Reflection is present ?
        :param dx : the analysis virtual machine
        :type dx: a :class:`VMAnalysis` object
        :rtype: boolean
    """
    paths = dx.get_tainted_packages().search_methods( "Ljava/lang/reflect/Method;", ".", ".")
    if paths != [] :
        return True
    paths = self.vma.tainted_packages.search_methods("Ljava/lang/Class;", 
                                                            "forName", ".")
    if paths != [] :
        return True

    return False        

Original issue reported on code.google.com by liadalex82@gmail.com on 2 Jan 2013 at 4:05

GoogleCodeExporter commented 9 years ago

Original comment by anthony....@gmail.com on 3 Jan 2013 at 8:21

GoogleCodeExporter commented 9 years ago

Original comment by anthony....@gmail.com on 3 Jan 2013 at 8:26