Skip to content

Commit

Permalink
Escapes decompiling arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Mar 14, 2021
1 parent 8577b7a commit a966e78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apkleaks/apkleaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from apkleaks.colors import clr
from contextlib import closing
from distutils.spawn import find_executable
from pipes import quote
from pyaxmlparser import APK
from urllib.request import urlopen
from zipfile import ZipFile
Expand Down Expand Up @@ -84,8 +85,9 @@ def decompile(self):
classes.write(zipped.read("classes.dex"))
except Exception as e:
sys.exit(self.writeln(str(e), clr.WARNING))
dec = "%s %s -d %s --deobf" % (self.jadx, dex, self.tempdir)
os.system(dec)
args = [self.jadx, dex, "-d", self.tempdir, "--deobf"]
comm = "%s" % (" ".join(quote(arg) for arg in args))
os.system(comm)
return self.tempdir

def unique(self, list):
Expand Down

0 comments on commit a966e78

Please sign in to comment.