|
本帖最后由 都市浪子666 于 2018-12-23 08:41 编辑
34行的 rem goto starttwo 把REM去掉
REM只是起一个注释的作用, 并不会跳转到 starttwo ,当然也就没有处理 smali_classes2文件了
- @echo off
- color 0A
- echo ===========injectlog===========
- :start
- cls
- set current_dir=%~dp0
- pushd %current_dir%
- :start
- echo.请输入要注入LOG的逆向工程名称(输入【apk的文件名】等价于AndroidKiller\projects【apk的文件名】)
- set /p inputgc=
- if not exist .\projects\%inputgc%\ (
- echo "工程文件夹不存在"
- goto start
- )
- xcopy smalihook.py /y .\projects\%inputgc%\Project\smali\
- set do_dir=.\projects\%inputgc%\Project\smali\
- pushd %do_dir%
- call python.exe smalihook.py
- del smalihook.py
- pushd %current_dir%
- xcopy InjectLog.smali /y .\projects\%inputgc%\Project\smali\com\hook\testsmali\
- if exist .\projects\%inputgc%\Project\smali_classes2\ (
- echo "存在dex2,继续处理"
- goto starttwo
- ) else (
- goto done
- )
- :done
- echo "已处理完毕"
- pause
- exit
- :starttwo
- echo.
- echo ---------------- 开始处理 smali_classes2 -----------------
- xcopy smalihook.py /y .\projects\%inputgc%\Project\smali_classes2\
- set did_dir=.\projects\%inputgc%\Project\smali_classes2\
- pushd %did_dir%
- call python.exe smalihook.py
- del smalihook.py
- pushd %current_dir%
- xcopy InjectLog.smali /y .\projects\%inputgc%\Project\smali_classes2\com\hook\testsmali\
- echo.
- echo ---------------- 处理完成 smali_classes2 -----------------
- if exist .\projects\%inputgc%\Project\smali_classes3\ (
- echo "存在dex3,继续处理"
- goto start_3
- ) else (
- goto done
- )
- :start_3
- echo.
- echo ================= 开始处理 smali_classes3 =================
- xcopy smalihook.py /y .\projects\%inputgc%\Project\smali_classes3\
- set did_dir=.\projects\%inputgc%\Project\smali_classes3\
- pushd %did_dir%
- call python.exe smalihook.py
- del smalihook.py
- pushd %current_dir%
- xcopy InjectLog.smali /y .\projects\%inputgc%\Project\smali_classes3\com\hook\testsmali\
- echo.
- echo ================= 处理完成 smali_classes3 ================
- echo.
- goto done
复制代码 |
|