본문 바로가기

해킹-보안/모바일

iOS webview 디버깅

반응형

1. itunes64bit, nodejs 설치
https://www.apple.com/itunes/download/

https://nodejs.org/


2. 관리자 권한의 파워쉘 실행 후 디버깅 어댑터 설치
> npm install remotedebug-ios-webkit-adapter -g

3. 디버깅 어댑터 포트 개방
remotedebug_ios_webkit_adapter --port=9000

4. 에러 발생 시
remotedebug-ios-webkit-adapter failed to run with the following error: ios_webkit_debug_proxy.exe not found. Please install 'scoop install ios-webkit-debug-proxy'
scoop로 ios_webkit_debug_proxy 설치해야함

* scoop 설치 조건
- $PSVersionTable.CLRVersion # 넷프레임워크 버전 4.5이상
- $PSVersionTable.PSVersion # 파워쉘 버전 5이상

> Set-ExecutionPolicy RemoteSigned -scope CurrentUser
> [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
> iex(new-object net.webclient).downloadstring( ' https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1 ' )

> 이건해줘야하는지 확실하지 않음
git 설치, 환경변수 설정( shims 폴더 )

> scoop bucket add extras
> scoop install ios-webkit-debug-proxy
> remotedebug_ios_webkit_adapter --port=9000

반응형