列表

详情


一段Base64

平台   Crypto   已通过

题目作者: harry

一  血: ‌‌‌‌‌H3rmesk1t

一血奖励: 2金币

解  决: 1620

提  示:

描  述: flag格式:flag{xxxxxxxxxxxxx}

附  件: 下载

站长题解:

import base64
import html
from urllib.parse import unquote

s = open('file.txt', 'r').read()
s = base64.b64decode(s.encode()).decode()
s = unquote(s)
s = s[1:] # 去掉开头的\
s = ''.join(chr(int(d, 8)) for d in s.split('\\'))
s = s[2:] # 去掉开头的\x
s = ''.join(chr(int(d, 16)) for d in s.split('\\x'))
s = s.encode().decode('unicode-escape')
s = s[20:-1] # 去掉开头String.fromCharCode( 和 结尾 )
s = ''.join(chr(int(d, 10)) for d in s.split(','))
s = html.unescape(s)
s = html.unescape(s)
s = unquote(s)
print(s)

去做题

3133598621 @ 2024-05-07 23:20:45 👍0

https://blog.csdn.net/weixin_43833642/article/details/103707182


xmai001 @ 2023-12-07 23:20:45 👍0

一直在套娃


1284616752 @ 2023-07-07 23:20:45 👍0

https://www.cnblogs.com/lhq-2000/p/14009365.html


沐沐 @ 2023-07-07 23:20:45 👍0

有点恶心


aWxvdmVjdGY @ 2023-06-07 23:20:45 👍0

套套了这么多层 参考:http://www.manongjc.com/detail/20-gszyqctgdydrmrc.html


zb848 @ 2023-06-07 23:20:45 👍0

https://blog.csdn.net/zb848/article/details/127211902?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C%22rId%22%3A%22127211902%22%2C%22source%22%3A%22zb848%22%7D


凤嘤嘤 @ 2023-06-07 23:20:45 👍4

这个年轻作者,不讲武德,我base64,8进制,16进制全都防出去了,他一个String.fromCharCode()搞偷袭!


XDU_Alterman @ 2023-06-07 23:20:45 👍0

这题就离谱


moonlight @ 2022-06-07 23:20:45 👍0

base64-->unescape-->hex to text-->dec to text-->html-->html-->url


Aruirui @ 2022-06-07 23:20:45 👍0

又绕有多啊这