심플스 - 프로그램과 책 이야기로 가득한 곳, (Simples.Kr)

  


   심플스 배너



 

WinDbg로 커널 드라이버를 디버깅해보신분이라면 MS에서 디버그 심볼을 자동으로 다운로드 받아 디버깅 시 디버그 심볼도 같이 포함되어 디버깅을 편하게 할 수 있다는 것을 알 수 있습니다.

위 와 비슷하게 IDA에서 Microsoft사에서 만든 바이너리파일을 리버싱해야 할 경우가 있는데 이 때 Determina PDB Plugin for IDA Pro 라는 IDA 플러그인을 이용하면 IDA에서도 디버그 심볼을 포함시켜서 디버깅이 가능하게 됩니다.

해당 플러그인은 다음 주소에서 받으실 수 있습니다.

http://www.openrce.org/downloads/details/203/Determina_PDB_Plugin_for_IDA_Pro


파일을 다운로드 받으신 후 압축을 풀게 되면 폴더안에 Plugin 폴더안에 두 개의 폴더가 있고 각각의 폴더안에 pdb.plw, pdb.p64 라는 파일을 IDA가 설치 된 경로에서 Plugins 폴더로 복사합니다.

그 후 다시 압축을 풀었던 경로로 가시면 detpdb.cfg라는 파일이 있는데 IDA가 설치 된 경로에 Cfg폴더로 복사합니다.

그 후 detpdb.cfg라는 파일을 연 후 안에 내용을 다음과 같이 바꾸시게 되면 설치작업은 끝난 것입니다.

//
// Determina PDB plugin
//

// Symbol search path in the format used by WinDbg debugger. If the option is
// not set, DbgHelp will search the local directory and the paths in the
// _NT_SYMBOL_PATH and _NT_ALTERNATE_SYMBOL_PATH environment variables.

// Download public symbols from the Microsoft symbol server and store them in
// the C:\Symbols directory.

DETPDB_SYMBOL_PATH = "SRV*C:\\Symbols*http://msdl.microsoft.com/download/symbols";

// Enable DbgHelp debugging output. Use Sysinternals DebugView to see it.

// DETPDB_DEBUG = YES


그 후 간단하게 IDA에서 Win32k.sys 파일을 열어보시면 다음과 같이 디버그 심볼을 찾았고 해당 심볼들을 로드할 것인지 물어보는 창이 뜹니다.


b0072382_4971b1f3078e5.png


profile

[레벨:8]esniper

2010.09.05 21:19:51

이 플러그인이 MS사 관련 프로그램들 분석할때 정말 유용하더라구요.

어떤 곳에서는 안되서 한참 찾아도 못찾는 분들이 계시던데 이거 보고 플러그인 설치하시면 되겟네요~

List of Articles
번호 제목 글쓴이 날짜 조회 수
142 Windows Research 디바이스이름으로부터 PDEVICE_OBJECT 얻기 file [레벨:6]lain 2010-09-04 3674
141 Windows Research 하드디스크에 존재하지 않는 드라이버 바이너리 가져오기 file [5] [레벨:6]lain 2010-09-03 3627
140 Windows Research DosPathNameToNtPathName file [레벨:6]lain 2010-09-03 2615
139 Windows Research ZwQueryInformationFile을 비동기 파일핸들로 호출 시 STAT... file [레벨:6]lain 2010-09-03 3481
138 Windows Research 커널 디버거 탐지 기법 우회 [레벨:6]lain 2010-09-03 3707
137 Windows Research VMWare 탐지 기법 우회 [2] [레벨:6]lain 2010-09-03 5115
136 Windows Research 커널 모듈 리스트 가져오기 [3] [레벨:6]lain 2010-09-03 2627
» Windows Research IDA에서 Microsoft 바이너리 파일을 리버싱 할 때 디버그 ... file [1] [레벨:6]lain 2010-09-03 3724
134 Windows Research IDA에 HexRay를 사용할 때의 주의점 [1] [레벨:6]lain 2010-09-03 3347
133 Windows Research 유저 레벨에서 API Hook 2부 file [2] [레벨:6]lain 2010-09-03 2336
132 Windows Research 유저 레벨에서 API Hook 1부 file [1] [레벨:6]lain 2010-09-03 2498
131 Windows Research 윈도우즈 버전이 Windows XP SP2인지 확인하는 다른 방법 [1] [레벨:6]lain 2010-09-03 2728
130 문서자료 Hexray - Failures and troubleshooting [레벨:6]lain 2010-09-03 2130
129 문서자료 Intel i80x86 CPU Architecture [레벨:6]lain 2010-09-03 1981
128 문서자료 Keybaord Scan Codes Demystified [레벨:6]lain 2010-09-03 2058
127 문서자료 Bona Fide OSDev Documents [레벨:6]lain 2010-09-03 1981
126 문서자료 the Operating System resource center [레벨:6]lain 2010-09-03 1543
125 문서자료 Win32 Assembly Tutorials [1] [레벨:6]lain 2010-09-03 1985
124 문서자료 Mozilla - Accessibility/AT-Windows-API [레벨:6]lain 2010-09-03 1984
123 문서자료 Intel® Threading Building Blocks: Documents [레벨:6]lain 2010-09-03 2600

  • 이용약관
  • 개인정보취급방침
  • 사이트맵