IOsipov / androguard

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

show_paths() no longer works #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In androlyze, do:
{{{
z = analysis.tainted_variables.get_string("blah")
z.show_paths()
}}}

We expect to see all items that use "blah", but instead we get an error.

In [27]: z.show_paths()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/home/axelle/softs/androguard/androlyze.py in <module>()
----> 1 z.show_paths()

/home/axelle/softs/androguard/androguard/core/analysis/analysis.pyc in 
show_paths(self)
   1150     def show_paths(self) :
   1151         for path in self.paths :
-> 1152             print path.get_access_flag(), 
path.get_method().get_class_name(), path.get_method().get_name(), 
path.get_method().get_descriptor(), path.get_bb().get_name(), "%x" % 
(path.get_bb().start + path.get_idx() )
   1153 
   1154 class TaintedVariables :

AttributeError: 'int' object has no attribute 'get_access_flag'

Original issue reported on code.google.com by aaforti...@gmail.com on 24 Jul 2012 at 3:49

GoogleCodeExporter commented 9 years ago
z.show_paths(vm)

where vm is the DalvikVMFormat

Original comment by anthony....@gmail.com on 5 Aug 2012 at 9:41