bugku-----MISC----貓片(恆安)

1.題目,hint:LSB,BGR,NTFS

2.解壓後得:

3.由提示得:LSB,BGR (使用工具stegSolve),保存爲.png

4.查看文件(Winhex)

5.format提取

6.winhex修改圖片高度

7.掃描,StegSolve反轉一下顏色

8.網頁掃描(https://www.bejson.com/convert/qrcode/

9.下載文件

10.winrar解壓後得到flag.txt,並沒有多大作用

hint NTFS  ,將文件導出來

11.解壓導出.pyc文件(https://tool.lu/pyc/)

12.根據解密函數寫出解密函數

def decode():
    ciphertext = [
        '96',
        '65',
        '93',
        '123',
        '91',
        '97',
        '22',
        '93',
        '70',
        '102',
        '94',
        '132',
        '46',
        '112',
        '64',
        '97',
        '88',
        '80',
        '82',
        '137',
        '90',
        '109',
        '99',
        '112']
    ciphertext.reverse()
    flag = ''
    for i in range(len(ciphertext)):
        if i % 2 == 0:
            s = int(ciphertext[i]) - 10
        else:
            s = int(ciphertext[i]) + 10
        s = chr(i ^ s)
        flag += s
    return flag


def main():
    flag = decode()
    print(flag)


if __name__ == '__main__':
    main()

運行完後,得到flag

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章