ayl1229 发表于 2023-8-17 14:04:09

刚接触CTF一个月的小白求助!! 题目:旋转的base



    题目旋转的base   
ly9tl+gDcvc9Zyc/kvdtYfNtafw+ZfYCYCQAZPUDZicEZvgBk/hwVfpQ

只有这些了 该怎么办啊 各位大佬 求帮助

Moxin 发表于 2023-8-17 23:37:46

解题脚本:
import base64

def rotate_base64(s, n):
base64_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
rotated_chars = base64_chars + 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


页: [1]
查看完整版本: 刚接触CTF一个月的小白求助!! 题目:旋转的base