palera1n으로 탈옥하면 3uTools로 ssh 접속이 안된다.
또한 ssh 트윅들도 설치가 불가능하다.
다행히 아래 문서를 참고해 SSH 설치에 성공하였다.
https://mobsecguys.medium.com/ios-15-6-palera1n-ssh-via-lan-cae055579969
우선, palera1n으로 탈옥 시 ssh 설치에 실패하는 원인은 아래와 같다.
기본 설정 제한
Rootless 모드의 영향
/etc/ssh/sshd_config
파일 기본 미존재/var
와 /private/preboot
에 가상 저장/etc
, /usr/bin
등) 직접 접근 제한기본 도구 제한
sudo
명령어 미설치passwd
명령어 실행 시 "Killed" 오류환경 변수 문제
/cores/binpack/bin/sh
로 제한이 가이드는 이러한 제한사항을 우회하고 SSH 접속 방법을 설명한다.
# macOS에서 설치
sudo /bin/sh -c "$(curl -fsSL https://static.palera.in/scripts/install.sh)"
palera1n
- reference
https://tyrell96.tistory.com/86
# USB를 통해 포트 44를 2222로 포워딩
iproxy 2222 44 -u [device_uuid]
- 아이폰 uuid 확인 방법
https://thingjin.tistory.com/entry/iOS-%EC%95%84%EC%9D%B4%ED%8F%B0-UDID-%ED%99%95%EC%9D%B8%EB%B2%95
# SSH 접속 (기본 비밀번호: alpine)
ssh root@127.0.0.1 -p 2222
# 1. 패키지 관리자 업데이트
apt update
# 2. OpenSSH 설치 시도
apt install openssh-server openssh-client
# 3. 의존성 문제 발생 시 해결 방법
apt --fix-broken install
apt install libssl1.1.1
# 4. 설치 후 서비스 상태 확인
ps -ef | grep sshd
netstat -an | grep LISTEN
# 5. sshd_config 파일 위치 확인
find / -name sshd_config -type f 2>/dev/null
또는
find / -name sshd_config -print
# PasswordAuthentication 활성화
# 파일 편집 후 다음 설정 추가
PasswordAuthentication yes
PermitRootLogin yes
# 6. SSH 서비스 재시작
killall -9 sshd
/usr/sbin/sshd
# HOST -> iOS SSH 접속 (포트 22 사용)
ssh root@[기기IP주소]
git clone https://github.com/AloneMonkey/frida-ios-dump
cd frida-ios-dump
pip3 install -r requirements.txt
python3 dump.py -o [출력파일명].ipa -u root -p [비밀번호] -H [기기IP] [앱이름]