해 보 자. - 프로 그래 밍. - Hashkill.

원제:http://www.shiyanbar.com/ctf/1807
import hashlib              #    

text1 = str('6ac66ed89ef9654cf25eb88c21f4ecd0')         #     md5 
place = ['borough','brooklyn','manhattan','queens','staten lsland','richmond']      #     ,
#        〈Borough〉:  〈The Bronx〉、    〈Brooklyn〉、   〈Manhattan〉、
#  〈Queens〉、    (      )〈Richmond (  :Staten Island)〉
for i in range(1001):                                                   #    
    for j in place:                                                     #    
        for k in range(10000,15000):                                    #    
            a = ('ctf{'+(str(i))+'_'+j+'_'+str(k)+'}')                  #  
            Md5 = (hashlib.md5(a.encode('utf-8')).hexdigest())          # md5
            if Md5 == text1:                                            #  
                print('ctf{'+(str(i))+'_'+j+'_'+str(k)+'}')             #    

좋은 웹페이지 즐겨찾기