使用audacity没有发现什么东西
使用010editor打开发现开头有一段base64
提取base64
with open('./A Comme Amour.wav','rb') as f:
data = f.read()[0x86:0x2eea]
result = ''
for i in range(0,len(data),2):
result += chr(data[i])
print(result)
with open('1.txt','w') as g:
g.write(result)
base64隐写解密
import base64
file = open('1.txt','r')
a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
aaa = ''
while True:
text = file.readline() # 只读取一行内容
# 判断是否读取到内容
text = text.replace("\n", "")
if not text:
break
if text.count('=') == 1:
aaa = aaa + \
str('{:02b}'.format((a.find(text[len(text)-2])) % 4))
if text.count('=') == 2:
aaa = aaa + \
str('{:04b}'.format((a.find(text[len(text)-3])) % 16))
file.close()
t = ""
ttt = len(aaa)
ttt = ttt//8*8
for i in range(0,ttt,8):
t = t + chr(int( aaa[i:i+8],2))
print(t)
运行得到flag flag{ba5e64_hiding_1s_s0_in7erest1ng!}