白帽子社区 -----进制
下载文件 用记事本打开,得不同进制密文,python脚本解密 得base64密文,在线解密 base64 密文,得 密文,再解密,循环操作得 flag 附上 脚本 和在线base64网址
#!/usr/bin/python
# -*- coding:utf8 -
import binascii
text = "b1001110 b1010110 d84 b1010110 x49 x56 x6d x31 b110100 d99 x32 d70 d87 x53 b1101110 b1010010 d104 x52 b1101101 d104 x61 d89 b1010100 x46 d97 b1001101 d49 d82 d116 x65 b1000111 d70 b1010011 x4d d88 d66 x46 d86 x57 d49 x77 b1010100 x6c b1011010 b1110101 b1010001 b1101011 b1101000 x57 b1010010 x6c x70 d88 b1010110 b1101010 d70 b1100001 d87 d70 d78 x73 x62 x46 b1001010 x69 x52 b110010 b1101000 d87 d86 b1101101 d120 b1101011 b1010100 d107 b110001 b1000111 x55 x6c b1100100 b1010011 b1010110 b1000111 x78 b1010010 x56 x56 x51 x77 d79 x51 b111101 x3d"
solution = ''
text2 = text.split(' ')
for x in text2:
print(x)
if x[0] == 'b': #binary
solution += chr(int(x[1:],2))
elif x[0] == 'x': # hexadecimal
solution += chr(int(x[1:],16)) #python3中没有decode方法
# elif x[0] == 'x': # hexadecimal
# solution += x[1:].decode("hex")
elif x[0] == 'd': # decimal
solution += chr(int(x[1:]))
elif x[0] == 'o': # octal
solution += chr(int(x[1:],8))
print(solution)
网址:https://tool.oschina.net/encrypt?type=3
来源:CSDN
作者:weixin_42249116
链接:https://blog.csdn.net/weixin_42249116/article/details/103546512