'2017/08/09'에 해당되는 글 1건

[IDA] C++ Class 변환

공부 2017. 8. 9. 02:37
반응형

변환 방법


1. vtable을 구조체형식으로 선언


2. constructor에서 사용되는 변수들을 기반으로 class를 구조체형식으로 작성



결과적으로는 아래와 같은 구조를 가짐


struct class1{
	_vtable_class *vtable;
	char dummy[168];
	_DWORD some;
	char dummy2[6];
}

struct _vtable_class
{
  __int64 (__fastcall *f1)();
  __int64 (__fastcall *f2)();
  __int64 (__fastcall *f3)();
  __int64 (__fastcall *f4)();
};


'공부' 카테고리의 다른 글

유저 영역 Stack Canary 분석  (2) 2018.08.16
python AES  (0) 2018.08.10
[QEMU] iptime emulating  (2) 2017.07.26
[how2heap] poison_null_byte  (0) 2017.05.09
64비트 Calling Convention  (0) 2017.05.09
블로그 이미지

KuroNeko_

KuroNeko

,