{"image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2024%2F08%2F18%2F210817\" title=\"AlpacaHack Round 1 (Pwn) Writeup - \u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://blog.hamayanhamayan.com/entry/2024/08/18/210817","height":"190","provider_name":"Hatena Blog","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","width":"100%","title":"AlpacaHack Round 1 (Pwn) Writeup","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","categories":["Security"],"author_name":"hamayanhamayan","published":"2024-08-18 21:08:17","version":"1.0","blog_url":"https://blog.hamayanhamayan.com/","provider_url":"https://hatena.blog","type":"rich","description":"https://alpacahack.com/ctfs/round-1 [pwn] echo [pwn] echo c\u8a00\u8a9e\u3067\u66f8\u304b\u308c\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9main.c\u3068\u30d3\u30eb\u30c9\u6e08\u307f\u30d0\u30a4\u30ca\u30eaecho\u304c\u4e0e\u3048\u3089\u308c\u308b\u3002\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u3002 #include <stdio.h> #include <stdlib.h> #include <unistd.h> #define BUF_SIZE 0x100 /* Call this function! */ void win() { char *args[] = {\"/bin/cat\", \"/flag.txt\", NULL}; execve(args[0], args,\u2026"}