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