모의해킹/MOBILE

[Nox] 안드로이드 BurpSuite 인증서 설치

7.3.7 2022. 10. 25. 16:59

1. Nox 에서 ROOT 켜기

2. OpenSSL 설치 (운영체제에 맞는거 light 설치해도 됨)

http://slproweb.com/products/Win32OpenSSL.html

[Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions

Minimum system requirements: Windows XP or later 32MB RAM 200MHz CPU 30MB hard drive space Recommended system requirements: Windows XP or later 128MB RAM 500MHz CPU 300MB hard drive space September 9, 2021 - OpenSSL 3.0 is available. Users should currently

slproweb.com](http://slproweb.com/products/Win32OpenSSL.html)

 

 

3. BurpSuite 에서 인증서 추출

Proxy > Options > import/export CA cerificate > Cetificate in DER format

cacert.der로 저장

 

 

4.OpenSSL 에서 명령어 실행

보통 설치되는 경로는 여기더라
C:\Program Files\OpenSSL-Win64\bin

 

저기다가 아까만든 cacert.der 저장.

 

CMD 관리자 창으로 열어주고 다음 명령어 실행.

openssl x509 -inform DER -in cacert.der -out cacert.pem
openssl x509 -inform PEM -subject_hash_old -in cacert.pem

 

생성된 cacert.pem 파일이름을 두번째 명령어 다음줄에 나온 해쉬값(ex, 9a5ba575)으로 변경하고 확장자는 0 으로 변경(ex. 9a5ba575.0)

 

 

5. nox로 파일 옮기기

adb 로 써도 되는지 잘 기억이 안난다.. 나는 nox_adb.exe 가 있는 녹스 폴더에 생성된파일(9a5ba575.0)을 이동시킨 후 다음 명령어를 실행시켜서 집어 넣었다

nox_adb push .\9a5ba575.0 /system/etc/security/cacerts/

 

 

6. ERROR LOG

  • adb: error: failed to copy '.\9a5ba575.0' to '/system/etc/security/cacerts/9a5ba575.0': couldn't create file: Read-only file system

ROOT 켰는데도 자꾸 에러나서 다음 명령어를 입력한 후에 실행하니까 댐.

C:\Program Files (x86)\Nox\bin>nox_adb remount   // 리마운트 해주기
remount succeeded

C:\Program Files (x86)\Nox\bin>nox_adb push .\9a5ba575.0 /system/etc/security/cacerts/
[100%] /system/etc/security/cacerts/9a5ba575.0