[iOS] Cydia에 frida 16.0.8 설치 에러 해결

hack_98·2023년 1월 15일
0

최신 버전의 frida 16.0.8을 cydia를 통해 설치하려고 할 때, 기존과 다른 압축형식으로 인해 에러가 발생하는 경우로 해결방법을 작성함.

환경세팅

  • ios 14.4 버전의 탈옥된 기기
  • 아이폰 8 (jailbroken)
  • cydia에서 frida 설치 시 에러 발생

발생 에러

dpkg-deb --control subprocess returned error exit status 2
Sub-process /usr/libexec/cydia/cydo returned an error code (1)

새로운 frida 16.0.8은 ios의 dpkg에서 지원하지 않는 zst를 사용하여 압축됨



해결 방안

<frida 16.0.8 설치 시>

iPhone:/frida root# dpkg -i frida_16.0.8_iphoneos-arm.deb
dpkg-deb: error: archive 'frida_16.0.8_iphoneos-arm.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive frida_16.0.8_iphoneos-arm.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 frida_16.0.8_iphoneos-arm.deb
  • 동일한 에러 발생


1. 다른 버전의 16.0.1 프리다 설치

iPhone:/frida root# dpkg -i frida_16.0.1_iphoneos-arm.deb
Selecting previously unselected package re.frida.server.
(Reading database ... 1759 files and directories currently installed.)
Preparing to unpack frida_16.0.1_iphoneos-arm.deb ...
Unpacking re.frida.server (16.0.1) ...
Setting up re.frida.server (16.0.1) ...
![](https://velog.velcdn.com/images/hyeon_iyy/post/e5929ea0-ba66-43d1-99e7-10453773e7b4/image.PNG)

2. zst를 통한 xz압축을 사용하여 재압축 후 설치

mkdir frida_16.0.8_iphoneos-arm
cd frida_16.0.8_iphoneos-arm
ar -x ../frida_16.0.8_iphoneos-arm.deb
zstd -d *.zst
xz *.tar
ar r frida_16.0.8_iphoneos-arm-repacked.deb debian-binary control.tar.xz data.tar.xz

1) "frida_16.0.8_iphoneos-arm.deb" 를 xz압축을 이용하여 재 압축

# dpkg -i frida_16.0.8_iphoneos-arm-repacked.deb
(Reading database ... 2530 files and directories currently installed.)
Preparing to unpack frida_16.0.8_iphoneos-arm-repacked.deb ...
Unpacking re.frida.server (16.0.8) over (16.0.7) ...
/Library/LaunchDaemons/re.frida.server.plist: Operation now in progress
Setting up re.frida.server (16.0.8) ...

2) "frida_16.0.8_iphoneos-arm-repacked.deb"를 가져와 dpkg -i 통해 설치


해결완료

  • frida-ps 를 통해 정상적으로 단말기 앱 정보 확인 가능
profile
Go Big or Go Home

1개의 댓글

comment-user-thumbnail
2023년 5월 15일

이 글을 읽으시는 분들 오늘 하루 행복하세용 🐹

답글 달기