[Dreamhack-System] Return to Shellcode WriteUp
System·2023.01.27
DescriptionExploit Tech: Return to Shellcode에서 실습하는 문제입니다. Environmentamd64에 64bit, 리틀엔디안. 카나리가 활성화 되어 있다.문제 소스코드// Name: r2s.c// Compile: gcc -o r2s r2s.c -zexecstack#include #include void init() { setvbuf(stdin, 0, 2, 0); setvbuf(stdout, 0, 2, 0);}int main() { char buf[0x50]; init(); printf("Address of the buf: %p\n", buf); printf("Distance between buf and $rbp: %ld\n", (char*)__..