stdin@@GLIBC_2.0 그냥 이 녀석이 궁금하다. stdin을 사용하면 항상 bss 영역에 있다.일단 GLIBC는 GNU C Library이고, 2.0은 Verison이겠지 뭐..이 녀석은 libio/stdio.c라는 곳에 있고, stdio.h 헤더 파일을 import 하면 쓸 수 있겠지 뭐.._IO_FILE *stdin = (FILE *) &_IO_2_1_stdin_;_IO_FILE 구조체를 보면 아래와 같이 엉청 길게 있겠지 뭐.. struct _IO_FILE { int _flags; /* High-order word is _IO_MAGIC; rest is flags. */ #define _IO_file_flags _flags /* The following pointers correspond to the C++ stream.. 더보기 C in Python C 라이브러리 파일 Window - msvcrt.dll Linux - libc.so.6Mac - /usr/lib/libc.dylib # cdll.msvcrt / CDLL("libc.so.6") / CDLL('/usr/lib/libc.dylib') from ctypes import *libc = CDLL("libc.so.6") # linuxlibc.printf("THIS IS PRINTF") ctypes typeC typePython typec_bool_Boolbool (1)c_charchar1-character stringc_wcharwchar_t1-character unicode stringc_bytecharint/longc_ubyteunsigned charint/longc_shortshortint/l.. 더보기 pwnable.kr uaf 보호되어 있는 글입니다. 더보기 이전 1 2 3 4 5 6 7 8 9 다음