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 |
Tags
- Rat
- commandline
- open office xml
- 포인터 매핑
- idapro
- ida
- javascript
- ecma
- data distribution
- mock.patch
- debugging
- h5py.File
- error fix
- NumPy Unicode Error
- svn update
- Analysis
- TensorFlow
- MySQL
- error
- why error
- x64
- Ransomware
- Python
- idb2pat
- ida pro
- idapython
- hex-rays
- malware
- Injection
- pytest
Archives
- Today
- Total
목록2012/11/29 (1)
13 Security Lab
MFC 전체파일 경로에서 파일명만 추출하기
1. CString 이용 CStringT Right( __in int nCount ) 함수를 이용한다. ex) CString str = "C:\\test\\file.exe"; CString name = str.Right( str.GetLength() - str.ReverseFind('\\')-1); 2. strchr(), strrchr() 이용 지정한 문자열에서 원하는 문자가 포함되어있는지 확인한다. 원하는 문자를 찾은 경우 찾은 주소를 반환한다. 찾을수 없다면 NULL을 반환한다. ex) char* str ="C:\\test\\file.exe"; char* name = strrchr(str, '\\') + 1; 3. AfxExtractSubString 사용 BOOL AFXAPI AfxExtractSub..
Computer Science/Programming
2012. 11. 29. 03:25