bugku 一段base64

import base64
a = '下载内容‘

#base64解码
b = base64.b64decode(a).decode()
print(b)

#8进制序列
c = b.split('\\')
print(c)
c.pop(0)#有''字符,去掉
print(c)
d = ''
for i in c:
    d += chr(int(i,8))
print(d)

#16进制序列
e = d.split('\\x')
print(e)
e.pop(0)
print(e)
f = ''
for i in e:
    f += chr(int(i,16))
print(f)

#unicode
g = f.split('\\u')
print(g)
g.pop(0)
print(g)
h = ''
for i in g:
     h+= chr(int(i,16))
print(h)

#只要()里的
j = h.split(',')
print(j)
j[0] = '38'
j[-1] = '59'
print(j)

#十进制
k = ''
for i in j:
    k += chr(int(i))
print(k)

#去&#x
l = k.split(';&#x')
print(l)
l[0] = '26'
l[-1] = '3b'
print(l)

#16进制
m = ''
for i in l:
     m += chr(int(i,16))
print(m)

#10进制
n = m.split(';&#')
print(n)
n[0] = '102'
n[-1] = '68'
print(n)
o = ''
for i in n:
     o += chr(int(i))
print(o)

flag%7Bctf_tfc201717qwe%7D

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 游动-白 设计师:白松林 返回首页