Notice
Recent Posts
Recent Comments
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- malware
- idapython
- javascript
- Ransomware
- commandline
- TensorFlow
- 포인터 매핑
- Injection
- hex-rays
- why error
- open office xml
- svn update
- h5py.File
- ida
- error fix
- ecma
- debugging
- ida pro
- error
- pytest
- MySQL
- data distribution
- x64
- idb2pat
- NumPy Unicode Error
- Rat
- Python
- idapro
- mock.patch
- Analysis
Archives
- Today
- Total
목록2012/10/13 (1)
13 Security Lab
[스크랩]프로세스 아이디와 윈도우 핸들을 이용 파일명 구하기 [Win32, WinCE, C++]
실행 중인 프로세스의 윈도우 핸들이나 프로세스 아이디를 이용해서 파일 명과 풀패스를 구하는 방법 Process32Next를 이용하면 파일 명밖에 구할 수가 없음 Win32와 WinCE에서 모두 사용이 가능 WinCE에서 ToolHelp 라이브러리가 필요 1234567891011121314151617181920212223242526272829ULONG pid = 0; GetWindowThreadProcessId(hwnd, &pid); // 핸들로 프로세스 아이디 구하기if (pid == 0) return ""; TCHAR filename[MAX_PATH]; PROCESSENTRY32 pe; pe.dwSize=sizeof(PROCESSENTRY32); // 실행 중인 모든 프로세스의 스냅샷HANDLE hSn..
Computer Science/Programming
2012. 10. 13. 21:06