ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • csictf - Panda
    CTF/forensic 2020. 7. 22. 18:29

    I wanted to send this file to AJ1479 but I did not want anyone else to see what's inside it, so I protected it with a pin.

     


     

    힌트가

     

    AJ1479 , 

     

     pin 으로 보호했음.

     


     

    https://kingsman5.tistory.com/14

     

    이거보고 풀어본다.

     

     

    zip2john.exe panda.zip > panda.hash

    john.exe panda.hash

     

    하면 2611 이나온다.

     

    압축풀면 두개의 판다그림.

     

    strings 로 해봣더니..

    panda.jpg

     

    판다 

    panda1.jpg

     

    panda1 이 csi 로 시작한다. 

     

    판다 1 과 판다 2 파일의 rawdata 를 비교하면된다.

    f1 = open('panda.jpg', 'rb')
    f2 = open('panda1.jpg', 'rb')
    
    
    f_txt = open('test.txt', 'wb')
    
    
    
    
    while True:
        for i in range(8):
            break_f = 0
        
        d1 = f1.read(1)
        print(d1)
        if not d1:
            break_f = 1
            
        d2 = f2.read(1)
        print(d2)
        if not d1==d2:
            
            
            f_txt.write(d2)
        
        if(break_f==1):
            break
        
       
    
    
    f1.close()
    f2.close()    
    f_txt.close()

     

     

    csictf{kung_fu_p4nd4}

     

     

    'CTF > forensic' 카테고리의 다른 글

    [csictf 2020] Archenemy  (0) 2020.07.22
Designed by Tistory.