My solutions for CTFs
0

Configure Feed

Select the types of activity you want to include in your feed.

Daily AlpacaHack 2025/12/18

Takumi Akimoto (Dec 19, 2025, 12:01 AM +0900) c787d0fc b82ee9a4

+53
+5
alpacahack/daily/twilight/deno.json
··· 1 + { 2 + "fmt": { 3 + "semiColons": false 4 + } 5 + }
+48
alpacahack/daily/twilight/solve.ts
··· 1 + const outputs = [ 2 + 0x41, 3 + 0x6D, 4 + 0x72, 5 + 0x62, 6 + 0x67, 7 + 0x64, 8 + 0x81, 9 + 0x46, 10 + 0x74, 11 + 0x79, 12 + 0x6B, 13 + 0x68, 14 + 0x6D, 15 + 0x45, 16 + 0x6F, 17 + 0x6C, 18 + 0x7B, 19 + 0x4E, 20 + 0x7B, 21 + 0x7D, 22 + 0x73, 23 + 0x42, 24 + 0x85, 25 + 0x79, 26 + 0x7C, 27 + 0x7C, 28 + 0x8C, 29 + 0x77, 30 + 0x7D, 31 + 0x73, 32 + 0x82, 33 + 0x62, 34 + ] 35 + 36 + let flag = "" 37 + 38 + for (let i = 0; i < outputs.length; i++) { 39 + let charCode = outputs[i] - i 40 + 41 + if (i % 2 === 1) { 42 + charCode = outputs[i] ^ i 43 + } 44 + 45 + flag += String.fromCharCode(charCode & 0xff) 46 + } 47 + 48 + console.log(flag)