您的位置:首頁 > 菜鳥學(xué)院 > 隱寫術(shù)總結(jié)

隱寫術(shù)總結(jié)

來源:互聯(lián)網(wǎng) | 時(shí)間:2015-02-12 14:20:25 | 閱讀:149 |    | 分享到:

1111111000100001101111111100000101110010110100000110111010100000000010111011011101001000000001011101101110101110110100101110110000010101011011010000011111111010101010101111111000000001011101110000000011010011000001010011101101111010101001000011100000000000101000000001001001101000100111001111011100111100001110111110001100101000110011100001010100011010001111010110000010100010110000011011101100100001110011100100001011111110100000000110101001000111101111111011100001101011011100000100001100110001111010111010001101001111100001011101011000111010011100101110100100111011011000110000010110001101000110001111111011010110111011011

得到的01 串的長度是625,除以8 除以7 都無法整除,也就是說沒法直接轉(zhuǎn)換成ascii碼。

隱寫術(shù)總結(jié)

圖片16.png

然后發(fā)現(xiàn)625 = 25*25,剛好是個(gè)正方形的形狀,那么嘗試一下 把這些01 組成一個(gè)正方形 看看是什么,可以用python的PIL編程可以很方便的畫圖,在kali自帶就可以有,win的環(huán)境需要安裝PIL的第三方庫。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python
importImage
MAX=25
pic=Image.new("RGB",(MAX,MAX))
str="1111111000100001101111111100000101110010110100000110111010100000000010111011011101001000000001011101101110101110110100101110110000010101011011010000011111111010101010101111111000000001011101110000000011010011000001010011101101111010101001000011100000000000101000000001001001101000100111001111011100111100001110111110001100101000110011100001010100011010001111010110000010100010110000011011101100100001110011100100001011111110100000000110101001000111101111111011100001101011011100000100001100110001111010111010001101001111100001011101011000111010011100101110100100111011011000110000010110001101000110001111111011010110111011011"
i=0
foryinrange(0,MAX):
    forxinrange(0,MAX):
        if(str[i]=='1'):
            pic.putpixel([x,y],(0,0,0))
        else:
            pic.putpixel([x,y],(255,255,255))
        i=i+1
 
pic.show()
pic.save("flag.png")

好特網(wǎng)發(fā)布此文僅為傳遞信息,不代表好特網(wǎng)認(rèn)同期限觀點(diǎn)或證實(shí)其描述。

相關(guān)視頻攻略

更多

掃二維碼進(jìn)入好特網(wǎng)手機(jī)版本!

掃二維碼進(jìn)入好特網(wǎng)微信公眾號!

本站所有軟件,都由網(wǎng)友上傳,如有侵犯你的版權(quán),請發(fā)郵件[email protected]

湘ICP備2022002427號-10 湘公網(wǎng)安備:43070202000427號© 2013~2025 haote.com 好特網(wǎng)