android逆向工具

pengjin 2020-02-23

frida: https://frida.re/docs/home/   用于 java/native 层 hook

安装:pip3 install install frida-tools

更新指定版本:pip3 install --upgrade frida-tools==6.0.1

基于frida 开发的工具 objection:  https://github.com/sensepost/objection

安装:pip3 install objection

jadx: https://github.com/skylot/jadx/releases   java层代码反编译

源码安装: 1.下载代码包 2.代码包目录下运行  ./gradle dist

java jdk:

jdk: https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html

选择 8u151 版本,mac下jdk高版本不兼容 monitor /uiautomatorviewer 等工具

java环境配置

临时有效(重启后失效)
编辑.bash_profile文件:vim ~/.bash_profile
添加以下内容:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
 
使修改的文件生效:source ~/.bash_profile
 
永久有效
修改文件操作权限:chmod 773 /etc/profile
编辑/ect/profile文件:vim /etc/profile
添加以下内容:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
使修改的文件生效:source /etc/profile
 
 
android studio 安装:
然后可以在里面下载android sdk 
 

apktool:https://ibotpeaches.github.io/Apktool/documentation/

安装:详情见安装文档

解压 apk 包
apktool d -s -f test.apk
-d 反编译 apk 文件
-s 不反编译 dex 文件,而是将其保留
-f 如果目标文件夹存在,则删除后重新反编译
 
重新打包
$ apktool b b_test -o newtest.apk
-b 是指 build
b_test 是刚才反编译出的文件所在的目录
-o 用于指定新的文件名称,这里指定为「newtest.apk」
 
 

相关推荐