Notice
Recent Posts
Recent Comments
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
07-17 13:42
Today
Total
관리 메뉴

해킹공주의 일상

[Frida] Nox에 Frida 설치 본문

모의해킹/MOBILE

[Frida] Nox에 Frida 설치

7.3.7 2022. 11. 16. 15:55

1. 개요

오늘은 Nox 에뮬레이터에 Frida 설치하는 법을 알아보도록 하겠다. 

 

 

2. 준비물

- Nox

- python 

 

위 프로그램 두개는 설치 해둡시다.

 

3. 설치방법

3.1 Frida 설치

python -m pip install --upgrade pip
pip install frida
pip install frida-tools

 

하고나서 아래와 같이 버전 정보가 뜨면 성공이야~

C:\Users>frida --version
16.0.9

 

 

3.2 Frida Server 설치

1) 안드로이드 운영체제 비트 확인

: nox_adb.exe 파일이 존재하는 위치(ex. C:\Program Files (x86)\Nox\bin)에서 cmd 열고 다음 명령어 작성

C:\Program Files (x86)\Nox\bin>nox_adb shell getprop ro.product.cpu.abi
x86

 

2) frida-server 파일 다운로드 (https://github.com/frida/frida/releases)

: 위 링크에서 본인 운영체제에 맞는 frida-server 파일 다운로드 후, 압축해제(확장자 없음)

여기서 다운받은 프리다 서버버전과 python 에서 설치하는 버전이 안맞으면 다음과 같은에러가 나므로 버전을 잘맞춰주자.

Failed to spawn: unable to communicate with remote frida-server; please ensure that major versions match and that the remote Frida has the feature you are trying to use

 

 

3) frida-server 파일 서버에 넣기

: 확장자가 없는 frida-server 파일을 nox_adb.exe 와 같은 폴더 안에 넣고, cmd를 열어 다음과 같이 nox 안에 넣기

C:\Program Files (x86)\Nox\bin>nox_adb push ./frida-server-16.0.2-android-x86 /data/local/tmp
[100%] /data/local/tmp/frida-server-16.0.2-android-x86

 

4) frida-server 파일 실행

: nox_adb.exe 가 있는 폴더에서 cmd를 열어 shell을 실행시킨후, 다음과 같이 서버를 실행

C:\Program Files (x86)\Nox\bin>nox_adb shell
78beyond1q:/ #
beyond1q:/ #
beyond1q:/ # cd /data/local/tmp      // 서버 집어넣은 곳으로 이동
beyond1q:/data/local/tmp # ls
frida-server-16.0.2-android-x86    // 파일이 잘 push 됨을 확인
beyond1q:/data/local/tmp # chmod 777 frida-server-16.0.2-android-x86 // 실행시키기 위해 권한 변경
beyond1q:/data/local/tmp # ./frida-server-16.0.2-android-x86 &   // 백그라운드에서 실행
[1] 5153
1|beyond1q:/data/local/tmp # ps | grep "frida*"
root      5153  5146  58712  47584            d4686cc0 S ./frida-server-16.0.2-android-x86
                                            // 잘 실행되고 있음을 확인

 

4. Error log

1) js 파일 실행 시 attach 오류

Failed to spawn: need Gadget to attach on jailed Android; its default location is: C:\Users\*\AppData\Local\Microsoft\Windows\INetCache\frida\gadget-android-arm64.so

: 프리다 서버가 꺼진거다. adb shell 들어가서 서버 다시 켜주자 

Comments