로딩
요청 처리 중입니다...

[dreamhack.io] 「Return to Library」 풀이

 [dreamhack.io] 「Return to Library」 풀이

Dreamhack 난이도 이름 Return to Library 미리 알고 올 것 컴파일 과정과 링킹 이해 PLT와 GOT 이해 SYSV 함수 호출 규약 문제에서 주어진 바이너리 파일의 C언어 소스코드는 아래와 같습니다. // Name: rtl.c // Compile: gcc -o rtl rtl.c -fno-PIE -no-pie #include #include const char* binsh = "/bin/sh"; int main() { char buf[0x30]; setvbuf(stdin, 0, _IONBF, 0); setvbuf(stdout, 0, _IONBF, 0); // Add system function to plt's entry system("echo 'system@plt"); // Leak canary printf("[1] Leak Canary\n"); printf("Buf: "); read(0, buf, 0x100); printf("...

# Assembly # stack_canary # system # wargame # writeup # x64 # 드림핵 # 버퍼오버플로우 # 쉬운설명 # 워게임 # stack_alignment # stack # C # C언어 # dreamhack # exploitation # GDB # linux # return_to_libc # return_to_library # SSP # 풀이