详细文章请到公众号进行阅读哟~
https://mp.weixin.qq.com/s/3L6Y9F2guoCjgC-GMpQ9VA
下面是草稿~
一.Frida等逆向环境搭建
基于Kali
1.设置Kali的sources.list
vim /etc/apt/sources.list
添加
deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
更新源
apt-get update
配置pyenv所需环境
sudo apt-get update && sudo apt-get install --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
安装pyenv(从国内仓库克隆)
git clone --depth=1 https://gitee.com/baliadd/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
source ~/.bashrc
exec "$SHELL"
从淘宝镜像中下载python3.8.3
wget -cP $(pyenv root)/cache https://npm.taobao.org/mirrors/python/3.8.3/Python-3.8.3.tar.xz
pyenv install 3.8.3
# 如果想安装其他版本的python包(记得选tar.xz结尾的压缩包)
https://npm.taobao.org/mirrors/python/
安装pyenv-virtualenv
git clone --depth=1 https://gitee.com/baliadd/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
source ~/.bashrc
exec "$SHELL"
配置proxychains
V2rayN设置:
允许局域网连接 ,本地端口10808,本地IP:192.168.1.113
vim /etc/proxychains.conf
到最后面添加
socks5 192.168.1.113 10808
创建虚拟环境
pyenv virtualenv 3.8.3 frida # 首次创建环境
pyenv activate frida # 后续使用激活环境
pyenv deactivate # 退出当前环境
pyenv uninstall frida #卸载
安装frida
pip install pip -U
pip install frida-tools objection
Android机所需调试环境 (kali自带java)
sudo apt-get install android-tools-adb android-tools-fastboot htop openjdk-8-jdk tree p7zip-full libssl-dev
安装jadx
proxychains wget https://github.com/skylot/jadx/releases/download/v1.1.0/jadx-1.1.0.zip
mkdir jadx
mv jadx-1.1.0.zip jadx
cd jadx
7z x jadx-1.1.0.zip
cd bin
./jadx-gui
010Editor
mkdir 010editor
mv ........
cd ...
7z x ..
7z x ..
chmod +x ...
./....installer
安装androidstudio
wget https://redirector.gvt1.com/edgedl/android/studio/ide-zips/4.0.1.0/android-studio-ide-193.6626763-linux.tar.gz
tar -zxvf android-studio-ide-193.6626763-linux.tar.gz
配置SDK
nano ~/.bashrc
在文件末尾添加
PATH=$PATH:/platform-tools
保存退出
source ./.bashrc
工程创建失败遇到问题
问题:Cause: dl.google.com:443 failed to respond
解决办法:https://blog.csdn.net/jiyi_guoshu/article/details/106957529
将gradle.properties下的https选项注释。