Magic [50]

Description

nc bamboofox.cs.nctu.edu.tw 10000

Do you believe in magic?

Hint

Stack buffer overflow

void do_magic(char *buf,int n)
{
        int i;
        srand(time(NULL));
        for (i = 0; i < n; i++)
                buf[i] ^= rand()%256;
}

void magic()
{
        char magic_str[60];
        scanf("%s", magic_str);
        do_magic(magic_str, strlen(magic_str));
        printf("%s", magic_str);
}

Files

magic
# Avatar Name Last time Point
1 Ranger 2019-06-20 18:37:21 +0800 50
2 xkou 2019-06-03 10:53:30 +0800 50
3 Ice1187 2019-05-29 14:50:51 +0800 50
4 Taylor Huang 2019-05-03 05:25:01 +0800 50
5 wechhu 2019-04-29 18:02:24 +0800 50
6 n0b0dy 2019-04-05 14:36:29 +0800 50
7 糖醋黄瓜 2019-03-22 12:28:20 +0800 50
8 r3dhun9 2019-03-18 01:06:31 +0800 50
9 Alan Wu 2019-03-18 00:58:40 +0800 50
10 Qiuwen Lu 2019-03-11 21:04:13 +0800 50
11 SplashEM 2019-02-17 19:06:55 +0800 50
12 HHmayday 2019-01-16 10:35:57 +0800 50
13 Weilong Lee 2019-01-11 17:07:32 +0800 50
14 hhh 2018-11-02 23:30:07 +0800 50
15 astro 2018-10-30 21:08:35 +0800 50
16 UE C 2018-10-30 20:36:35 +0800 50
17 JIA 2018-10-30 20:34:46 +0800 50
18 甘景昀 2018-10-02 16:30:37 +0800 50
19 辜泓翔 2018-09-22 04:55:36 +0800 50
20 hyili 2018-09-19 20:26:17 +0800 50
21 yy 2018-09-11 18:56:24 +0800 50
22 sas15477 2018-08-17 15:00:11 +0800 50
23 zzz 2018-07-24 20:22:32 +0800 50
24 李冠廷 2018-07-20 09:02:59 +0800 50
25 idle_fire 2018-07-13 00:21:47 +0800 50
26 吳建興 2018-07-07 17:06:01 +0800 50
27 SSSP4RTA 2018-06-16 00:40:19 +0800 50
28 microsoft 2018-06-07 15:31:06 +0800 50
29 sky 2018-05-24 21:37:55 +0800 50
30 Sp4n9x 2018-05-19 17:26:47 +0800 50
31 hwy 2018-05-17 15:49:35 +0800 50
32 蘇柏瑄(Brian Su) 2018-05-03 11:11:45 +0800 50
33 MtucX 2018-04-26 00:29:08 +0800 50
34 nctu 2018-04-13 10:19:55 +0800 50
35 張郢展 2018-04-08 16:37:26 +0800 50
36 afcidk 2018-03-12 18:38:20 +0800 50
37 zjw88282740 2018-03-07 23:53:02 +0800 50
38 chybeta 2018-02-20 19:44:15 +0800 50
39 歐陽詮 2018-02-14 02:55:24 +0800 50
40 0wning 2018-02-07 12:24:34 +0800 50
41 R1_0 2018-01-12 09:47:03 +0800 50
42 husky 2017-12-27 15:11:36 +0800 50
43 zwhubuntu 2017-12-06 21:31:43 +0800 50
44 abt8601 2017-12-01 14:46:49 +0800 50
45 s_h_ke 2017-11-22 20:21:54 +0800 50
46 Lzkei 2017-11-17 01:01:48 +0800 50
47 Nick Dai 2017-11-08 11:37:16 +0800 50
48 Nassim Asrir 2017-10-12 23:35:03 +0800 50
49 st424204 2017-10-09 00:39:15 +0800 50
50 Bilal Kardadou 2017-10-05 19:52:13 +0800 50
51 Phagoria 2017-10-05 19:47:12 +0800 50
52 fuyu0425 2017-09-20 02:27:52 +0800 50
53 吴舟洋 2017-09-09 19:46:03 +0800 50
54 how2hack 2017-08-17 09:45:45 +0800 50
55 Johnny Chang 2017-08-11 19:21:12 +0800 50
56 劉峻 2017-08-06 01:30:36 +0800 50
57 yuawn 2017-08-04 19:27:10 +0800 50
58 testaaa 2017-07-28 14:59:45 +0800 50
59 pUck 2017-07-22 14:17:20 +0800 50
60 s89162504 2017-06-26 15:03:28 +0800 50
61 00 2017-05-29 04:38:17 +0800 50
62 moonagirl 2017-06-20 17:06:49 +0800 50
63 NULL_JN 2017-06-20 14:57:19 +0800 50
64 ss8651twtw 2016-11-19 22:18:34 +0800 50
65 tibbar 2016-11-08 19:34:52 +0800 50
66 pwninja 2016-10-31 22:57:56 +0800 50
67 EastL 2015-09-02 18:00:46 +0800 50
68 tjjh89017 2015-07-21 19:14:38 +0800 50
69 testuser999 2016-09-15 18:42:55 +0800 50
70 OAlienO 2016-08-24 06:08:46 +0800 50
71 teyuchang 2016-07-30 04:56:49 +0800 50
72 ggg77599 2016-07-27 21:51:13 +0800 50
73 briansp8210 2016-06-26 02:21:41 +0800 50
74 nae 2016-06-24 20:03:01 +0800 50
75 lihungte96 2016-07-11 01:21:20 +0800 50
76 Cherie 2016-06-05 07:11:15 +0800 50
77 bdsword 2016-05-27 17:38:05 +0800 50
78 gibberish77012 2016-05-22 07:43:03 +0800 50
79 whatever 2016-05-19 20:54:15 +0800 50
80 danthedev69 2016-05-19 19:18:04 +0800 50
81 bamboofoxsucks 2016-05-19 16:31:33 +0800 50
82 h0twinter 2016-05-17 16:24:26 +0800 50
83 MtucX 2016-05-03 15:22:41 +0800 50
84 freetsubasa 2015-07-21 16:54:39 +0800 50
85 Happyholic1203 2016-03-18 17:05:07 +0800 50
86 x95102003 2015-09-13 06:30:06 +0800 50
87 xiami 2015-07-28 04:05:09 +0800 50
88 Hawk1n5 2015-09-16 20:58:07 +0800 50
89 mike1636216 2015-07-26 01:39:39 +0800 50
90 mango 2015-07-21 22:39:41 +0800 50
91 cpeee 2015-09-07 22:28:18 +0800 50
92 Charles_Yang 2015-10-08 22:16:24 +0800 50
93 leepupu 2015-09-18 19:07:17 +0800 50
94 jpeanut 2015-09-04 00:56:03 +0800 50
95 qazbnm456 2015-12-02 19:06:54 +0800 50
96 Lays 2015-12-28 10:26:15 +0800 50
97 bananaappletw 2015-09-17 02:06:29 +0800 50
98 Joeization 2016-03-02 04:43:15 +0800 50
99 meh 2015-07-31 01:36:23 +0800 50