-
Show the world what you can do
[Dreamhack] Return to Shellcode (canary) 풀이
새로안것 : shellcraft.sh(), string.ljust(폭, 나머지문자), p.recvline()[:-1] 먼저 문제의 c언어 코드는// 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*)__builtin_frame_address(0) - buf); ..
2022. 7. 1.