linkedin / qark

Tool to look for several security related Android application vulnerabilities
Other
3.19k stars 643 forks source link

exec command failed -- bug report #293

Open yougar0 opened 5 years ago

yougar0 commented 5 years ago

below is error info:

A:\android>qark --apk mojitianqi_7070802.apk Decompiling... Error running dex2jar command: b'C:\\Users\\yougar\\AppData\\Roaming\\ Python\\Python36\\site-packages\\qark\\decompiler\\..\\lib\\dex2ja r-2.0\\d2j-dex2jar.bat A:\\android\\build\\qark\\classes.dex -o A:\\ android\\build\\qark\\mojitianqi_7070802.jar' Traceback (most recent call last): File "C:\Users\yougar\AppData\Roaming\Python\Python36\site-packages\qark\decom piler\decompiler.py", line 217, in _run_dex2jar ret_code = subprocess.call(shlex.split(dex2jar_command)) File "c:\program files\python36\lib\shlex.py", line 305, in split return list(lex) File "c:\program files\python36\lib\shlex.py", line 295, in next token = self.get_token() File "c:\program files\python36\lib\shlex.py", line 105, in get_token raw = self.read_token() File "c:\program files\python36\lib\shlex.py", line 136, in read_token nextchar = self.instream.read(1) AttributeError: 'bytes' object has no attribute 'read' Error running dex2jar command

I change File "C:\Users\yougar\AppData\Roaming\Python\Python36\site-packages\qark\decom piler\decompiler.py", line 217, in _run_dex2jar ret_code = subprocess.call(shlex.split(dex2jar_command)) to ret_code = subprocess.call(shlex.split(dex2jar_command.decode(encoding="utf-8")))

then fixes it.

krviolent commented 5 years ago

I faced this is issue in Windows, though in Ubuntu there was no such error

ibrahimbroachwala commented 4 years ago

Is this Issue solved? I am facing the same issue

XhstormR commented 4 years ago

same issue

GwenTheKween commented 3 years ago

still having this same issue on windows.

sagarkm commented 2 years ago

i have the same issue on Windows 10 with Python 3.9

fawadbutt commented 7 months ago

i facing the same issue can't be able to decompile. i using python 3.10 o n window 10,