programa-stic / Marvin-dynamic-Analyzer

Dynamic android vulnerability scanner using OpenNebula and Android-x86 emulators.
42 stars 23 forks source link

from libmproxy.protocol.http import decoded error #1

Open cnscyy opened 7 years ago

cnscyy commented 7 years ago

I have install mitmproxy using apt-get mitmproxy, the version is 0.15.1. it don't work when i install mitmproxy using pip install. Then i run python VMclient.py Traceback ImportError: cannot import name decoded. The linux OS is Ubunt16.4

This is an error in mitmproxy, i want ask what envirment do you use? do you meet the same question?

cnscyy commented 7 years ago

hello, i test com.fatsecret.android in static analyzer. when executing 'res = a.get_android_resources()', it prompt warning:
INFO: Skipping null padding in StringBlock header INFO: Skipping padding bytes! And prompt error: WARNING: list index out of range Traceback (most recent call last): File "/home/yy/Marvin-static-Analyzer/androguard/androguard/core/bytecodes/apk.py", line 1565, in get_resource_dimen return [ate.get_value(), "%s%s" % (complexToFloat(ate.key.get_data()), DIMENSION_UNITS[ate.key.get_data() & COMPLEX_UNIT_MASK])] IndexError: list index out of range

when executing 'app.save()', it prompt error: File "/usr/local/lib/python2.7/dist-packages/elasticsearch/exceptions.py", line 49, in info return self.args[2] IndexError: tuple index out of range and then it will prompt error:'A server error occurred. Please contact the administrator' in browser.

before running the test, i have started the elasticsearch service. in the original project, the function of upload_file calls the function process_package. but process_package always return a string, it will always make mistake. i changed this to process_package_worker. is this will result in these error?

jheguia commented 7 years ago

Hi, I don't know what the problem could be with androguard, it could be that the package file is somehow corrupted. The process_package function runs process_package_worker in a separate process because something in androguard was leaking memory: the function will return a string because the work is getting done by another process but the app should get analyzed all the same (I need to fix that part so it doesn't show an error)

Cheers, Juan

2017-03-02 7:17 GMT-03:00 cnscyy notifications@github.com:

hello, i test com.fatsecret.android in static analyzer. when executing 'res = a.get_android_resources()', it prompt warning: INFO: Skipping null padding in StringBlock header INFO: Skipping padding bytes! And prompt error: WARNING: list index out of range Traceback (most recent call last): File "/home/yy/Marvin-static-Analyzer/androguard/ androguard/core/bytecodes/apk.py", line 1565, in get_resource_dimen return [ate.get_value(), "%s%s" % (complexToFloat(ate.key.get_data()), DIMENSION_UNITS[ate.key.get_data() & COMPLEX_UNIT_MASK])] IndexError: list index out of range

when executing 'app.save()', it prompt error: File "/usr/local/lib/python2.7/dist-packages/elasticsearch/exceptions.py", line 49, in info return self.args[2] IndexError: tuple index out of range and then it will prompt error:'A server error occurred. Please contact the administrator' in browser.

before running the test, i have started the elasticsearch service. in the original project, the function of upload_file calls the function process_package. but process_package always return a string, it will always make mistake. i changed this to process_package_worker. is this will result in these error?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/programa-stic/Marvin-dynamic-Analyzer/issues/1#issuecomment-283613591, or mute the thread https://github.com/notifications/unsubscribe-auth/AIB9qo9n-_szDY7Bd1keyW_MuqWItgBnks5rhpc8gaJpZM4LBHMD .