Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: EncodedMethod instance has no attribute 'get_information' #1

Open
koto opened this issue Aug 28, 2013 · 1 comment
Open

Comments

@koto
Copy link

koto commented Aug 28, 2013

Running Mallodroid against freshly installed Androguard 1.9 - https://code.google.com/p/androguard/downloads/detail?name=androguard-1.9.tar.gz quickly produces exception: EncodedMethod instance has no attribute 'get_information'. In fact, looking at the androguard sources, EncodedMethod does not have get_information method, instead offering EncodedMethod.get_descriptor that lists types of parameters and type of return value.

$ ./mallodroid.py -f redacted.apk
Analyse file: redacted.apk
Package name: redacted
App requires INTERNET permission. Continue analysis...
Traceback (most recent call last):
File "./mallodroid.py", line 430, in
main()
File "./mallodroid.py", line 416, in main
_result = _check_all(_vm, _vmx, _gx)
File "./mallodroid.py", line 188, in _check_all
_hv, _a = _check_hostname_verifier(_method, _vm, _vmx)
File "./mallodroid.py", line 150, in _check_hostname_verifier
if _has_signature(_method, [_verify_string_sslsession, _verify_string_x509cert, _verify_string_sslsocket, _verify_string_subj_alt]):
File "./mallodroid.py", line 49, in _has_signature
_return = _method.get_information().get('return', None)
AttributeError: EncodedMethod instance has no attribute 'get_information'

@ndobri
Copy link

ndobri commented Sep 8, 2014

Instead of using the packaged release of androguard 1.9 you're better off with cloning the repo and work from there.
hg clone https://code.google.com/p/androguard/
The missing method attribute is in the class EncodedMethod but that actually exists in the source: https://code.google.com/p/androguard/source/browse/androguard/core/bytecodes/dvm.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants