nice_bgm
题目描述:我拿出自己的私密音乐来和你分享,一起享受快乐吧
题目环境:https://download.csdn.net/download/m0_59188912/87097729
- private bit隐写,直接用python脚本跑。
脚本源码:
import re
import binascii
n = 235986
result = ‘’
fina = ‘’
number = 0
list = [0,1,26,50,75,99,124,148,173,197,222,246,271,295,320,344,369,393,418]
file = open(‘cb1bc8789569146483da7bd65ee4a063.mp3’,‘rb’)
while n < 1369844 :
file.seek(n,0)
if number in list:
n += 417
else:
n += 418
file_read_result = file.read(1)
read_content = bin(ord(file_read_result))[-1]
result = result + read_content
number += 1
#print result
fina = ‘’
textArr = re.findall(‘.{’+str(8)+‘}’, result)
#textArr.append(result[(len(textArr)*8):])
for i in textArr:
fina = fina + chr(int(i,2)).strip(‘\n’)
print fina
运行脚本。
- 得到flag。
flag{0k4_YOu_Seem_s0_cl3ver_t0_find_f1ag!}
本篇博客为本人解题write up,如有错误之处,还望各位指正。
文章为原创,如要转载请注明出处