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