セキュリティコンテストチャレンジブック
セキュリティコンテストチャレンジブックの内容を試してみた。
// bof.c /* gcc -m32 -fno-stack-protector -o bof bof.c python -c 'print("CTF for Beginners")' | ./bof python -c 'print("A"*128)' | ./bof python -c 'print("A"*128)' | strace -i ./bof */ #include <stdio.h> int main(void) { char buffer[100]; fgets(buffer,128,stdin); return 0; }