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