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