# -*- coding: utf-8 -*- import os g = os.walk("/Users/darren/work/tmp/com.Qunar_8.9.32_209-1.apk/") for path,dir_list,file_list in g: for file_name in file_list: if file_name.endswith(('.dex')): path = os.path.join(path, file_name); commd = "/Users/darren/work/tools/hack/jadx_v0.8.0/bin/jadx -d out -j 4 "+ path print commd os.system(commd) $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
import os g = os.walk("/Users/darren/work/tmp/com.wuba_10.22.6_liqucn.com/") for path,dir_list,file_list in g: for file_name in file_list: if file_name.endswith(('.dex')): print(file_name); path_dex = os.path.join(path, file_name); print(path_dex); commd = "/usr/local/bin/jadx -d out -j 4 "+ path_dex print(commd); os.system(commd);
1. 遍历目录下所有的.dex 文件。 2. 调用jadx 命令 反编译dex 文件。 -d 指定目录为out, -j 4 启动4个线程。
3. jadx-gui 是启动界面的工具。