본문 바로가기
# technic/- reversing

IDA로 qemu를 이용해서 arm 디버깅하기

by ddddh 2016. 11. 30.

리버싱을 하다 보면 arm로 된 elf 문제가 간혹 있다.

ARM은 그냥 실행해보려고 하면 실행이 안된다.

'qemu'라는 에뮬레이터를 통해서 가상환경을 만들어 준 뒤 실행해줘야 한다.


sudo apt-get update

sudo apt-get install qemu

sudo apt-get install qemu-user-static


설치를 완료하면 포트를 열어주고 ida로 접속하면 된다. 


qemu-arm-static -g [port] [elf] [argv]


IDA의 Debugger는 'Remote GDB Debugger'로 지정하고 대상 ip, port를 지정해준 뒤 접속하면 된다.

IDA로는 인자 전달이 되지 않기 때문에 포트를 열 때 같이 전달해줘야 된다. 

'# technic > - reversing' 카테고리의 다른 글

Reversing a gameboy binary(*.gb)  (0) 2018.09.28
[Android] SDK 버전 패치.  (2) 2017.04.27
[python] RSA - chiper text decoe  (0) 2017.04.20
PE(Portable Executable) File Format  (0) 2017.02.28
windows java script shell 32bit 및 분석  (0) 2016.11.30