WarGame/DigitalForensic with CTF

[DigitalForensic] with CTF Emma Watson…

사진은 EMMA Watson사진이다.

특별한거는 안보이는데, STEGSOLVE에서 흑백으로 돌려보니 제일위에 흑백의 연속된 픽셀들이 보인다.

흑색은 1, 백색은 0으로 해석해보자 다음과 같은 Python코드를 작성해서 이용했다.

from PIL import Image

if __name__=="__main__" :

    im = Image.open("solved.bmp")

    width,height = im.size

    W = (255, 255, 255)
    B = (0, 0, 0)
    candlist = list()

    answer=list()
    ans = ""
    for x in range(width) :
        if(im.getpixel((x,0))==W) :
            ans+="0"
        else :
            ans+="1"
        if(len(ans)==8) :
            answer.append(chr(int(ans,base=2)))
            ans=""
            
    print(''.join(answer))

KEY를 얻을 수 있었다.