Skip to content

Commit

Permalink
fix issue dwisiswant0#40
Browse files Browse the repository at this point in the history
This update can fix issue dwisiswant0#40 on windows
  • Loading branch information
Ch3nYe authored Mar 31, 2021
1 parent 401e09c commit 233f170
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apkleaks/apkleaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, args):
self.output = tempfile.mkstemp(suffix=".%s" % ("json" if self.json else "txt"), prefix=self.prefix)[1] if args.output is None else args.output
self.fileout = open(self.output, "%s" % ("w" if self.json else "a"))
self.pattern = os.path.join(str(Path(self.main_dir).parent), "config", "regexes.json") if args.pattern is None else args.pattern
self.jadx = find_executable("jadx") if find_executable("jadx") is not None else os.path.join(str(Path(self.main_dir).parent), "jadx", "bin", "jadx%s" % (".bat" if os.name == "nt" else ""))
self.jadx = find_executable("jadx") if find_executable("jadx") is not None else os.path.join(str(Path(self.main_dir).parent), "jadx", "bin", "jadx%s" % (".bat" if os.name == "nt" else "")).replace("\\","/")
self.out_json = {}
self.scanned = False
logging.config.dictConfig({"version": 1, "disable_existing_loggers": True})
Expand Down Expand Up @@ -94,6 +94,7 @@ def decompile(self):
except Exception:
pass
comm = "%s" % (" ".join(quote(arg) for arg in args))
comm = comm.replace("\'","\"")
os.system(comm)

def extract(self, name, matches):
Expand Down

0 comments on commit 233f170

Please sign in to comment.