일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Ransomware
- debugging
- idapython
- mock.patch
- svn update
- data distribution
- TensorFlow
- Analysis
- idb2pat
- error
- Injection
- Rat
- hex-rays
- ida
- Python
- malware
- MySQL
- pytest
- ida pro
- idapro
- ecma
- error fix
- javascript
- 포인터 매핑
- x64
- NumPy Unicode Error
- open office xml
- why error
- h5py.File
- commandline
- Today
- Total
13 Security Lab
소켓통신중 패킷의 헤더에 데이터 파일의 전체 길이를 담기위해 파일 크기를 구하는 방법을 찾게되었다 stat함수 이용 #include #include #include #include int main() { struct stat buf; int ret; ret = stat("test.c", &buf); if ( ret != 0 ) { perror("stat()"); exit(errno); } printf("len = %ld\n", buf.st_size); return 0; } 파일포인터의이동#include int main() { FILE *fp; fp = fopen("test.c", "rb"); fseek(fp, 0L, SEEK_END); printf("%ld \n", ftell(fp)); fclose(fp..
요구사항 Set Top Box(리눅스) - 윈도우(PC) 간 네트웍 연결셋톱박스 setup파일 pc로 자동 설치 윈도우 공유폴더 cifs 관련 링크upnphttp://onecellboy.tistory.com/2 upnp개요, 관련문서 블로그 http://www.upnp.org/ upnp포럼 http://blog.naver.com/serenax?Redirect=Log&logNo=60008033593 계층및 서비스 설명http://kldp.org/node/124739http://kurapa.com/content_UPnP upnp공부http://blog.naver.com/PostView.nhn?blogId=wisdomcolor&logNo=90095421467&redirect=Dlog&widgetTypeCall..
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..
CWnd *pWnd = AfxGetMainWnd();HWND hWnd = pWnd->m_hWnd; Tip. Instance 정보 얻기 HINSTANCE hInst = AfxGetInstanceHandle();
MFC 헤더와 라이브러리 설명 (The Foundation Classes Headers and Libraries) 1. Header Files 아래 테이블은 모든 MFC 헤더 파일들과 사용 목적, 그리고 어떤 파일전에 어떤 파일들이 Include 될수 있는지에 대해 나와있습니다. 거의 모든 헤더들이 다른 헤더들에 의해 Include 된다는 것을 주의하십시오. 당신의 코드에서 직접 Include 하는것은 약 4-5개 정도입니다. 헤더 (Header)설명 Afx.h Windows 를 사용(?)하지 않는 MFC 프로그램을 작성할때 Include 하는 Main Header 파일입니다. 콘솔용 MFC 응용프로그램을 작성할때 이 헤더만 있으면 됩니다. 이것은 Windows 외에서 사용될수 있는 콜렉션 클래스와 Ap..