极客巅峰 WP

clev1L Lv3

babyre

三位三位加密,而且重叠

先进行sha256,然后异或,异或的值为原来的3位字符

所以直接爆破

得到-48-79-80-bf0bd17719429f37-39a4-748f4a37-472977279380b8a}8fb93794a9a49f8a-8a39a4-ag{b-bbd1bfed17ea-f8afb-feaflag{1lag{19

因为有重叠而且打乱了顺序,这里直接投机,把得到的字符串3个3个的划分,开头肯定是fla,因为有重叠,找到开头为la(lag)的字符,然后把g拼上去,再找ag开头的字符,以此类推,递归爆破

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
import hashlib
from itertools import product
from string import printable
from tqdm import tqdm
dic = {}
for i in tqdm(product(printable,repeat=3)):
key="".join(list(i))
data = list(bytes.fromhex(hashlib.sha256(key.encode('utf-8')).hexdigest() ))
akey = list(map(ord, key))
for _ in range(len(data)):
data[_] ^= akey[_ % 3]
dic[bytes(data)]=key

enc=[ 0xEB, 0x74, 0x46, 0x4F, 0x79, 0x24, 0xC5, 0x62, 0x10, 0xCB,
0xFF, 0xC5, 0xA2, 0x39, 0xBE, 0x03, 0x99, 0xED, 0x2C, 0x8F,
0xB9, 0x54, 0x2B, 0xA7, 0xC5, 0x8A, 0x7E, 0x56, 0x0F, 0x35,
0x2C, 0xA0, 0x3E, 0xE5, 0xE0, 0x0A, 0x6E, 0xA9, 0x38, 0xCF,
0x85, 0xF8, 0x82, 0xC7, 0x99, 0xD7, 0x8B, 0xC6, 0x82, 0x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F, 0xD9, 0xB6, 0xA7,
0xD6, 0x46, 0xA5, 0x7C, 0x97, 0x6D, 0xD5, 0x92, 0xA3, 0xF0,
0x22, 0xA1, 0x53, 0x99, 0xA1, 0xC3, 0x71, 0x40, 0xE1, 0x89,
0x7B, 0x23, 0x19, 0x18, 0xDC, 0x2F, 0x22, 0x57, 0xDD, 0x2C,
0xC3, 0x3F, 0xAD, 0xEF, 0x99, 0x93, 0x9C, 0xE9, 0xEB, 0x67,
0x66, 0x74, 0x45, 0x8E, 0xD4, 0x87, 0x98, 0x4E, 0x9F, 0x8D,
0x2C, 0x7D, 0xF2, 0x3D, 0x80, 0x93, 0x94, 0x0F, 0xEA, 0xB5,
0x86, 0xD0, 0xE6, 0x74, 0xB6, 0xB2, 0x41, 0x61, 0x25, 0xDE,
0xD9, 0xC2, 0x38, 0x6A, 0x24, 0x7F, 0x1D, 0x87, 0xBA, 0xD1,
0xCA, 0xB6, 0x40, 0x57, 0x9E, 0xAE, 0x30, 0x50, 0xFF, 0xD0,
0xA8, 0xAE, 0xDF, 0x52, 0x25, 0x4A, 0xA5, 0xE9, 0x18, 0x6F,
0x06, 0x0C, 0x97, 0x15, 0x0E, 0xC2, 0x66, 0x26, 0xCC, 0x84,
0x51, 0xC4, 0x75, 0x69, 0x76, 0x4B, 0x28, 0x16, 0x67, 0xA5,
0x44, 0x28, 0xE0, 0x96, 0xA2, 0x0A, 0x5D, 0x81, 0xEB, 0x4D]
for i in range(0,len(enc),32):
print(dic[bytes(enc[i:i+32])],end="")
print()
flag='''-48-79-80-bf0bd17719429f37-39a4-748f4a37-472977279380b8a}8fb93794a9a49f8a-8a39a4-ag{b-bbd1bfed17ea-f8afb-feaflag{1lag{19'''
flags=[flag[i:i+3] for i in range(0,len(flag),3)]

def crack(flag, level):
get = flag[-2:]
if flag.endswith("}"):
print(flag)
exit()
for i in flags:
if i.startswith(get):
flag += i[-1]
crack(flag, level + 1)


crack("fla", 0)
#flag{194a39a4-7937-48fb-bfea-80bd17729f8a}
  • Title: 极客巅峰 WP
  • Author: clev1L
  • Created at : 2024-08-17 19:09:01
  • Updated at : 2025-02-23 12:29:57
  • Link: https://github.com/clev1l/2024/08/17/极客巅峰-WP/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments
On this page
极客巅峰 WP