로컬에 프리다 설치 후 에뮬레이터 CPU 버전을 확인한다.

pip3 install pipenv (python 가상환경 설치)
pipenv install frida-tools
pipenv install frida==16.3.3

adb shell getprop ro.product.cpu.abi 명령어로 에뮬레이터 cpu 확인 후 버전에 맞는 프리다 서버를 설치한다. havertz@localhost~cyber_securitymobile-hacking 2024-09-15 at 4.46.28 PM.jpg

frida-sever 파일임을 꼭 확인하고 다운로드하자. Releases · fridafrida · GitHub 2024-09-15 at 5.15.00 PM.jpg

adb push frida-server-16.3.3 /data/local/tmp/ 명령어로 프리다 파일을 에뮬레이터에 업로드 후 chmod 755 명령어로 실행 권한을 부여한다. adb shell 2024-09-15 at 5.14.30 PM.jpg

frida-server-16.3.3 &(background execute) 명령어로 프리다 서버를 실행한다. 실행 결과, 프리다 서버가 실행중이다 adb shell 2024-09-15 at 5.18.44 PM 1.jpg

에뮬에서 실행중인 프리다 서버와 로컬의 프리다가 통신 가능한 상태인지 확인해야 한다. pipenv shell 명령어로 프리다가 설치된 파이썬 가상환경을 실행한다.

쉘이 변경되면 frida-ps -U 명령어로 에뮬레이터에서 실행중인 프로세스를 확인할 수 있다. tmux 2024-09-15 at 5.31.14 PM 2.jpg