Android逆向之Vdex转dex

如何将Vdex 文件转成 dex,有时我们需要逆向应用查看代码,又苦于反编译出来看不到真实的源码,如下anestisb大神写的工具可以解决我们的问题。

https://github.com/anestisb/vdexExtractor

一般在Ubantu上编译,如果是windows电脑可以安装VM虚拟机,在虚拟机上安全Ubantu,安装好系统,下载代码,git clone https://github.com/anestisb/vdexExtractor.git

执行下./make.sh gcc,使用方法:

Vdex转成cdex

$ bin/vdexExtractor -i /tmp/BasicDreams.vdex -o /tmp --deps -f

 cdex 格式转成dex 格式解决方案:

Strategy to convert CompactDex back to StandardDex

https://github.com/anestisb/vdexExtractor/issues/23

Strategy to convert CompactDex back to StandardDex under windows(All versions):
You need adb, any android device or emulator and compact_dex_converter tool
Execute from cmd:

adb push compact_dex_converter /data/local/tmp/
adb shell chmod 777 /data/local/tmp/bin/compact_dex_converter
adb push your.cdex /data/local/tmp/classes.cdex
adb shell "/data/local/tmp/compact_dex_converter /data/local/tmp/classes.cdex"
adb pull /data/local/tmp/classes.cdex.new your.dex

Personally i recommend use android x86_64 emulator.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章