apk-tool 설치
2023. 5. 16. 15:53ㆍ구축/Mobile Hack
자바 설치
1. 자바 다운로드
https://www.oracle.com/kr/java/technologies/downloads/
2. 기본값으로 설치
3. 환경변수 설정
apktool 설치
1. apktool.jar 다운로드
https://bitbucket.org/iBotPeaches/apktool/downloads/
2. apktool.bat 생성
@echo off
setlocal
set BASENAME=apktool_
chcp 65001 2>nul >nul
set java_exe=java.exe
if defined JAVA_HOME (
set "java_exe=%JAVA_HOME%\bin\java.exe"
)
rem Find the highest version .jar available in the same directory as the script
setlocal EnableDelayedExpansion
pushd "%~dp0"
if exist apktool.jar (
set BASENAME=apktool
goto skipversioned
)
set max=0
for /f "tokens=1* delims=-_.0" %%A in ('dir /b /a-d %BASENAME%*.jar') do if %%~B gtr !max! set max=%%~nB
:skipversioned
popd
setlocal DisableDelayedExpansion
rem Find out if the commandline is a parameterless .jar or directory, for fast unpack/repack
if "%~1"=="" goto load
if not "%~2"=="" goto load
set ATTR=%~a1
if "%ATTR:~0,1%"=="d" (
rem Directory, rebuild
set fastCommand=b
)
if "%ATTR:~0,1%"=="-" if "%~x1"==".apk" (
rem APK file, unpack
set fastCommand=d
)
:load
"%java_exe%" -jar -Duser.language=en -Dfile.encoding=UTF8 "%~dp0%BASENAME%%max%.jar" %fastCommand% %*
rem Pause when ran non interactively
for /f "tokens=2" %%# in ("%cmdcmdline%") do if /i "%%#" equ "/c" pause
3. apktool.jar, apktool.bat 파일을 C:\Windows로 이동
4. cmd에서 apktool 명령어 실행
설치 완료 확인
'구축 > Mobile Hack' 카테고리의 다른 글
프리다 실무활용 -Level3-4 로그인 우회 브루트포스 (0) | 2023.05.11 |
---|---|
프리다 실무활용 -Level2 암호 복호화 (0) | 2023.05.10 |
Uncrackable -Level1 루팅탐지 (1) | 2023.05.10 |
Frida설치(feat. anaconda) (0) | 2023.05.06 |