zl程序教程

您现在的位置是:首页 >  其他

当前栏目

【愚公系列】2021年11月 攻防世界-进阶题-MISC-047(low)

2023-04-18 14:26:17 时间

文章目录


一、low

题目链接:https://adworld.xctf.org.cn/task/task_list?type=misc&number=1&grade=1&page=3

二、答题步骤

1.低位隐写

使用python脚本

# lsb隐写
import PIL.Image as Image
img = Image.open('low.bmp')
img_tmp = img.copy()
pix = img_tmp.load()
width,height = img_tmp.size
for w in range(width):
   for h in range(height):
      if pix[w,h]&1 == 0:
         pix[w,h] = 0
      else:
         pix[w,h] = 255
img_tmp.show()

得到二维码

扫码得到flag:flag{139711e8e9ed545e}


总结

  • 图像低位隐写