This repository has been archived by the owner on Aug 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loader.rb
121 lines (120 loc) · 8.59 KB
/
loader.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
c = Challenge.new
c.name ="Binary surfing"
c.score=70
c.description="<p>Send the token required for the API.</p><pre><code>
f0VMRgIBAQAAAAAAAAAAAAIAPgABAAAAoAhAAAAAAABAAAAAAAAAAIgRAAAAAAAAAAAAAEAAOAAJ
AEAAHAAbAAYAAAAFAAAAQAAAAAAAAABAAEAAAAAAAEAAQAAAAAAA+AEAAAAAAAD4AQAAAAAAAAgA
AAAAAAAAAwAAAAQAAAA4AgAAAAAAADgCQAAAAAAAOAJAAAAAAAAcAAAAAAAAABwAAAAAAAAAAQAA
AAAAAAABAAAABQAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAACQMAAAAAAAAJAwAAAAAAAAAACAA
AAAAAAEAAAAGAAAA+A0AAAAAAAD4DWAAAAAAAPgNYAAAAAAAcAIAAAAAAACYAgAAAAAAAAAAIAAA
AAAAAgAAAAYAAAAQDgAAAAAAABAOYAAAAAAAEA5gAAAAAADgAQAAAAAAAOABAAAAAAAACAAAAAAA
AAAEAAAABAAAAFQCAAAAAAAAVAJAAAAAAABUAkAAAAAAAEQAAAAAAAAARAAAAAAAAAAEAAAAAAAA
AFDldGQEAAAAJAsAAAAAAAAkC0AAAAAAACQLQAAAAAAALAAAAAAAAAAsAAAAAAAAAAQAAAAAAAAA
UeV0ZAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAFgQ
YAAAAAAAWBAAAAAAAAAQAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAOoAAAAIAAAAAwAA
AAAAAACAEGAAAAAAAGgQAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAADvAAAA
AQAAADAAAAAAAAAAAAAAAAAAAABoEAAAAAAAACUAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAA
AAAAAQAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAjRAAAAAAAAD4AAAAAAAAAAAAAAAAAAAAAQAAAAAA
AAAAAAAAAAAAAA==
</code></pre>"
c.contests = [Contest.first]
c.save
hints = ["This is an ELF file","There\'s no encryption at all..."]
hints.each {|h| Hint.create({value: h, challenge_id: c.id }) }