- @echo off
-
- color 0A
- echo ===========injectlog===========
- :start
- cls
-
- REM set "current_dir=%~dp0"
- REM pushd "%current_dir%"
- pushd "%~dp0"
- :start
- set /p "inputgc=请输入要注入LOG的逆向工程名称(对于ak,是apk 的文件名)"
-
- if not exist ".\projects\%inputgc%\" (
- echo "工程文件夹不存在"
- goto start
- )
-
- pushd ".\projects\%inputgc%\Project\"
- for /d %%A in ("smali" "smali_classes*") do (
- pushd "%%A\"
- copy /y "%~dp0smalihook.py" ".\"
- call python.exe smalihook.py
- del smalihook.py
- copy /y "%~dp0InjectLog.smali" ".\com\hook\testsmali\"
- popd
- )
- popd
- :done
- echo "已处理完毕"
- pause
- exit /b
复制代码
|