解题脚本:
[Python] 纯文本查看 复制代码 import base64
def rotate_base64(s, n):
base64_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
rotated_chars = base64_chars[n:] + base64_chars[:n]
table = str.maketrans(rotated_chars, base64_chars)
return base64.b64decode(s.translate(table))
s = "ly9tl+gDcvc9Zyc/kvdtYfNtafw+ZfYCYCQAZPUDZicEZvgBk/hwVfpQ"
n = 12
print(rotate_base64(s, n))
#b'flag%7B416d3b4a10a9925363a44275d8655c5d%7D'
题目来源:CTFShow
答案来源:https://blog.csdn.net/qq_38798840/article/details/129920162 原创作者:想要变强的47
|