본문 바로가기

All Category

PE 구조 VA(Virtual Address) = 프로세스 가상 메모리의 절대주소.RVA(Relative Virtual Address) = Image Base에서 부터의 상대주소. RVA + Image Base = VA
ScreenToClient, ClientToScreen 함수 BOOL ScreenToClient(HWND hWnd, LPPOINT lpPoint);화면의 원점을 기준으로 하는 좌표 lpPoint를 hWnd의 작업 영역을 기준으로 하는 좌표로 변환한다. hWnd윈도우의 작업 영역 원점의 화면 좌표가 cx, cy일 때 lpPoint는 lpPoint.x - cx, lpPoint - cy로 변환된다. GetCursorPos, MoveWindow, GetWindowRect 등과 같이 화면 좌표를 리턴하는 함수로부터 작업 영역의 좌표로 변환하고자 할 때 이 함수를 사용한다. BOOL ClientToScreen(HWND hWnd, LPPOINT lpPoint);hWnd의 작업 영역 원점을 기준으로 하는 좌표 lpPoint를 전체 화면을 기준으로 하는 좌표로 변환한다. hWnd..
WinAPI 메크로 소스 #include LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); HINSTANCE g_hInst; HWND hWndMain; LPCTSTR lpszClass=TEXT("Macro"); int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass; g_hInst=hInstance; WndClass.cbClsExtra=0; WndClass.cbWndExtra=0; WndClass.hbrBackground=(HBRUSH)(COLOR_WINDOW+1); WndClass.hCur..
linux mysql 사용자 관리 관련 사이트 출처 : http://yris.thoth.kr/?mid=blog&category=288795&document_srl=288999 1.mysql root 암호 설정 A. mysql로 들어가기 → root]# mysql B. DB를 변경하기 → mysql> use mysql (‘Database changed’라는 문구가 나와야함) C. user테이블이 있는지 여부를 확인한다. → mysql> show tables; D. root 암호를 설정한다. → mysql> update user set password = password('①') where user ='root'; ① 패스워드 : root로 로그인시 사용할 데이터베이스 패스워드 E mysql에서 나가기 → mysql> exit 또는 \q F. mysql..
Winapi 초기본(주석 有) #include LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); HINSTANCE g_hInst; LPCTSTR lpszClass=TEXT("First"); //main function //hInstance : 프로그램의 인스턴스 핸들 //hPrevInstance : 바로앞에 실행된 현재 프로그램의 인스턴스 핸들이다. // 없을 경우 NULL이 되며 Win32에서는 항상 NULL이다. // lpszCmdParam : 명령행으로 입력된 프로그램 인수이다. 도스의 argv인수에 해당하며 보통 실행 직후에 열 // 파일의 경로가 전달된다. // nCmdShow : 프로르매이 실행될 형태이며, 보통 모양 등이 전달된다. int APIENTRY WinMain(HIN..
main(), wmain(), _tmain() 의 차이 유니코드 지원이 필요한 프로그램의 경우 _tmain() 혹은 wmain() #define _tmain wmain 유니코드 지원이 필요하지 않은 프로그램의 경우main()
Dbg 분석 Local.1 => EBP-4Local.2 => EBP-8.... ARG.1 => EBP+4ARG.2 => EBP+8.....
DNS Server IP List KT Olleh(구 QOOK)기본 DNS Server 주소 - 168.126.63.1보조 DNS Server 주소 - 168.126.63.2 SK Broadband기본 DNS Server 주소 - 210.220.163.82보조 DNS Server 주소 - 219.250.36.130 LG U+(구 XPEED 파워콤)기본 DNS Server 주소 - 164.124.107.9보조 DNS Server 주소 - 203.248.242.2 Google public기본 DNS Server 주소 - 8.8.8.8보조 DNS Server 주소 - 8.8.4.4 SK브로드밴드기본 DNS Server 주소 - 219.250.36.130보조 DNS Server 주소 - 210.220.163.82 KT DNS기본 DNS Serv..