今天要介紹的是 picoCTF 的 medium 題 MSB
,本題敘述如下。
This image passes LSB statistical analysis, but we can't help but think there must be something to the visual artifacts present in this image...
這題的介紹說,他通過了 LSB 隱寫的檢測,而題目名稱說自己是 MSB 隱寫,因此我們就來進行分析。
這題可以用 stegsolve 解,但是因為時間來不及全部截圖所以今天改用工具解,可以利用線上工具直接在 terminal 解完這題。
工具:
https://github.com/Pulho/sigBits
首先下載工具的 sigBits.py並對題目給的圖檔執行
python sigBits.py --type=Msb flag.png
會輸出一個 outputSB.txt
cat 再找 pico 就可以拿到 flag
隱寫術常見的是 LSB steganography(把資訊藏在最低有效位元),但這題刻意把資料藏在 MSB(Most Significant Bit)最高有效位元,所以顏色會大幅失真,變成雜訊化
https://www.youtube.com/watch?v=MfOT-7iYHoM