入口函数,最后比对 s2 的值

image-20220912124436492

进到 RxEncode

可以看出这是一个 base64 的解密函数但是有变表

相当于把输入的字符串进行 base64 解码运算

image-20220913103033847

payload

import base64
enc = bytes.fromhex("9E9B9CB5FE70D30FB2D14F9C027FABDE596563E7409DCDFA04")

b = base64.b64encode(enc)
b=str(b)[2:-1]
flag = ""

base64code = [x for x in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="]
base64code_enc = [x for x in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234{}789+/="]

for c in b:
    index = base64code.index(c)
    flag += base64code_enc[index]

print(flag)

flag

npuctf{w0w+y0U+cAn+r3lllY+dAnc3}BA== 去掉尾巴

npuctf{w0w+y0U+cAn+r3lllY+dAnc3}

标签: none

添加新评论