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
| keylist = {
18908379,
33159482,
16588432,
17582695,
33159482,
33159482,
33490903,
15925590,
32828061,
16257011,
16919853,
18245537,
18576958,
17914116,
16588432,
16257011,
16919853,
16588432,
33490903,
32828061,
15925590,
32828061,
16919853,
16588432,
17251274,
32828061,
33822324,
32496640,
33822324,
15925590,
17251274,
17914116,
33490903,
16919853,
33159482,
33822324,
32496640,
16588432,
17251274,
32165219,
17582695,
17582695,
17582695,
16919853,
33490903,
33159482,
32165219,
32828061,
16257011,
16919853,
33822324,
33822324,
17914116,
17582695,
32165219,
32828061,
18245537,
32496640,
17582695,
33822324,
16919853,
16257011,
18245537,
15925590
}
function deckey(owner)
local i, j
local ss = ""
for i = 1, 64 do
j = (keylist[i] - 17382) / 331421
ss = ss .. string:pack(j)
end
return ss
end
console:setTitle("reg")
local flag = console:getText("Input your flag:")
console:log("check your reg code:" .. flag)
local secretstr = deckey(console)
local aesiv = crypt.bin:decodeHex(string:left(secretstr, 32))
local aeskey = crypt.bin:decodeHex(string:right(secretstr, 32))
local aes = crypt:aes()
aes:setPassword(aeskey)
aes:setInitVector(aesiv)
local cipher = aes:encrypt(flag)
local output = crypt.bin:encodeBase64(cipher)
string:save("output", output)
console:log("cipher:", output)
console:pause()
|