필자는 본 적도 없는 My Little Pony에 등장하는 캐릭터가 있는 Flash 파일이 실행된다.
CEH는 윤리 해커 자격증인 Certified Ethical Hacker이려나...
Become CEH를 누르면 문제가 나타난다. 총 20문제 정도로, 모두 불어로 되어 있다.
번역기 돌려 보면, My Little Pony에 관련된 문제이다...
알 턱이 없으니 다 틀려서 실패 메시지를 보았다.
플래시에서 ActionScript를 추출하면, 다음과 같다.
프로그래밍을 해봤거나 조금만 눈치가 있으면, 이 코드에서 각 문제에 대한 정답이 뭔지 알 수 있을 것이다.
문제 20개에 대해 각각 함수로 짜여져 있다.
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 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 | package ceh_fla { import flash.display.*; import flash.events.*; import flash.media.*; import flash.net.*; import flash.text.*; dynamic public class q_3 extends MovieClip { public var result:TextField; public var myChannel:SoundChannel; public var q10:MovieClip; public var q11:MovieClip; public var q12:MovieClip; public var q13:MovieClip; public var q14:MovieClip; public var q15:MovieClip; public var q16:MovieClip; public var q17:MovieClip; public var q18:MovieClip; public var q19:MovieClip; public var q1:MovieClip; public var q2:MovieClip; public var q3:MovieClip; public var q4:MovieClip; public var q5:MovieClip; public var q6:MovieClip; public var q7:MovieClip; public var q8:MovieClip; public var q9:MovieClip; public var snd:Sound; public var q20:MovieClip; public var tf:TextFormat; public var lastPosition:Number; public function q_3() { super(); addFrameScript(0, this.frame1, 1, this.frame2, 2, this.frame3, 3, this.frame4, 4, this.frame5, 5, this.frame6, 6, this.frame7, 7, this.frame8, 8, this.frame9, 9, this.frame10, 10, this.frame11, 11, this.frame12, 12, this.frame13, 13, this.frame14, 14, this.frame15, 15, this.frame16, 16, this.frame17, 17, this.frame18, 18, this.frame19, 19, this.frame20, 20, this.frame21); } public function aPlay2(param1:Event) : void { this.q20.btnPause.visible = true; this.q20.btnPlay.visible = false; this.myChannel = this.snd.play(this.lastPosition); } public function suivant10(param1:Event) : void { if((this.q10.a.group.selection == null) && this.q10.a.group.selection.value == "") { if(this.q10.a.group.selection.value == "d") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q10.a.group.selection.value; nextFrame(); } } public function suivant11(param1:Event) : void { if(this.q11.t.text == "364521") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q11.t.text; this.myChannel.stop(); nextFrame(); } public function suivant12(param1:Event) : void { if((this.q12.a.group.selection == null) && this.q12.a.group.selection.value == "") { if(this.q12.a.group.selection.value == "a") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q12.a.group.selection.value; nextFrame(); } } public function suivant13(param1:Event) : void { if((this.q13.a.group.selection == null) && this.q13.a.group.selection.value == "") { if(this.q13.a.group.selection.value == "a") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q13.a.group.selection.value; nextFrame(); } } public function suivant14(param1:Event) : void { if((this.q14.a.group.selection == null) && this.q14.a.group.selection.value == "") { if(this.q14.a.group.selection.value == "c") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q14.a.group.selection.value; nextFrame(); } } public function suivant15(param1:Event) : void { if((this.q15.a.group.selection == null) && this.q15.a.group.selection.value == "") { if(this.q15.a.group.selection.value == "b") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q15.a.group.selection.value; nextFrame(); } } public function suivant17(param1:Event) : void { if((this.q17.a.group.selection == null) && this.q17.a.group.selection.value == "") { if(this.q17.a.group.selection.value == "a") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q17.a.group.selection.value; nextFrame(); } } public function suivant18(param1:Event) : void { if((this.q18.a.group.selection == null) && this.q18.a.group.selection.value == "") { if(this.q18.a.group.selection.value == "d") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q18.a.group.selection.value; nextFrame(); } } public function suivant19(param1:Event) : void { if((this.q19.a.group.selection == null) && this.q19.a.group.selection.value == "") { if(this.q19.a.group.selection.value == "c") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q19.a.group.selection.value; nextFrame(); } } public function aPlay(param1:Event) : void { this.q11.btnPause.visible = true; this.q11.btnPlay.visible = false; this.myChannel = this.snd.play(this.lastPosition); } public function suivant20(param1:Event) : void { if(this.q20.t.text == "Scootaloo") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q20.t.text; nextFrame(); } public function suivant1(param1:Event) : void { if((this.q1.a.group.selection == null) && this.q1.a.group.selection.value == "") { if(this.q1.a.group.selection.value == "c") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q1.a.group.selection.value; nextFrame(); } } public function suivant2(param1:Event) : void { if((this.q2.a.group.selection == null) && this.q2.a.group.selection.value == "") { if(this.q2.a.group.selection.value == "b") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q2.a.group.selection.value; nextFrame(); } } public function suivant3(param1:Event) : void { if((this.q3.a.group.selection == null) && this.q3.a.group.selection.value == "") { if(this.q3.a.group.selection.value == "a") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q3.a.group.selection.value; nextFrame(); } } public function suivant4(param1:Event) : void { if((this.q4.a.group.selection == null) && this.q4.a.group.selection.value == "") { if(this.q4.a.group.selection.value == "c") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q4.a.group.selection.value; nextFrame(); } } public function suivant5(param1:Event) : void { if((this.q5.a.group.selection == null) && this.q5.a.group.selection.value == "") { if(this.q5.a.group.selection.value == "d") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q5.a.group.selection.value; nextFrame(); } } public function suivant6(param1:Event) : void { if((this.q6.a.group.selection == null) && this.q6.a.group.selection.value == "") { if(this.q6.a.group.selection.value == "d") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q6.a.group.selection.value; nextFrame(); } } public function suivant7(param1:Event) : void { if((this.q7.a.group.selection == null) && this.q7.a.group.selection.value == "") { if(this.q7.a.group.selection.value == "b") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q7.a.group.selection.value; nextFrame(); } } public function suivant8(param1:Event) : void { if((this.q8.a.group.selection == null) && this.q8.a.group.selection.value == "") { if(this.q8.a.group.selection.value == "d") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q8.a.group.selection.value; nextFrame(); } } public function suivant9(param1:Event) : void { if((this.q9.a.group.selection == null) && this.q9.a.group.selection.value == "") { if(this.q9.a.group.selection.value == "b") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q9.a.group.selection.value; nextFrame(); } } public function suivant16(param1:Event) : void { if((this.q16.a.group.selection == null) && this.q16.a.group.selection.value == "") { if(this.q16.a.group.selection.value == "b") { var _loc_2:MovieClip = this.parent.parent; var _loc_3:* = _loc_2.total + 1; _loc_2.total = _loc_3; } this.parent.parent.chaine = this.parent.parent.chaine + this.q16.a.group.selection.value; nextFrame(); } } public function aPause2(param1:Event) : void { this.q20.btnPause.visible = false; this.q20.btnPlay.visible = true; this.lastPosition = this.myChannel.position; this.myChannel.stop(); } } } | cs |
모두 맞추면 다음과 같이 인증키를 얻을 수 있다.
'[Wargame Write-up] > W3Challs' 카테고리의 다른 글
[W3Challs] [/dev/null] Security + Javascript ≠ 2 (0) | 2017.02.03 |
---|---|
[W3Challs] [/dev/null] Hard to make easier! (0) | 2017.02.03 |
[W3Challs] [Cracking] ProtectionSystem I (0) | 2017.01.29 |
[W3Challs] [Cracking] Le père Noël est une ordure (0) | 2016.09.28 |
[W3Challs] [Hacking] Change your browser (0) | 2016.09.28 |