본문 바로가기

Mobile

Netbeans를 통한 Android App 동적 디버깅

# NetBeans를 통한 동적 디버깅 #

## 디버깅을 위한 절차 ##
> 1. apktool.jar를 이용하여 decompile
> 2. Androidmanifest.xml을 수정하여 디버깅 모드로 변경 후 repacking 및 resign
> 3. AVD를 이용하여 설치
> 4. Netbeans를 이용해 1번에서 decompile했던 code를 프로젝트에 추가함<br>이때 android.jar 파일을 Lib에 추가함
> 5. DDMS를 이용해 포트를 확인함
> 6. Netbeans 메뉴에서 Debug > Attach Debugger > Select JPDA 선택 <br> host와 port를 설정하여 원격 디버깅을 연결
> 7. 분석 할 부분에 Breakpoint를 설정한 후 사용한다. 




** 자세한 내용은 첨부된 PDF를 참고하세요 !!! **
## 준비물 ##

apktool.jar
:    http://ibotpeaches.github.io/Apktool/install/

signapk.jar
:   http://forum.xda-developers.com/showthread.php?t=2261800

NetBeans IDE
:   https://netbeans.org/downloads/


## 참고 자료
http://teamcrak.tistory.com/368
안드로이드 모바일 악성코드와 모의 해킹 진단




'Mobile' 카테고리의 다른 글

Janus(CVE-2017-13156) 취약점 PoC  (0) 2018.04.24
File system mount  (0) 2016.11.03