otool

Tags
tools
요약
바이너리 헤더 조회

otool

파일구조 조회, 라이브러리 조회, 디스어셈블 등 유용한 정적분석 툴
notion image

예시

$ Otool –fh 바이너리
  • -f : print Fat header
  • -h : print mach header
  • 특정 아키텍처만 조회하려면 –arch armv7s 이런 식으로 옵션 추가
notion image

otool -l

load commands (세그먼트와, 구성된 섹션 확인)
notion image

otool -L

외부 라이브러리와 프레임워크 조회
notion image

otool -tVq

  • t:텍스트 섹션,
  • V:디스어셈블,
  • q:llvm disassembler
notion image

otool -oV

  • o: objective-c segment,
  • V: 디스어셈
  • __OBJC 세그먼트 조회 (클래스, 메소드, ivars 등 정보 제공)
  • 기본적인 심볼 정보도 볼 수 있음.
notion image

otool -IV

모든 심볼 조사
notion image