zoukankan      html  css  js  c++  java
  • 暴力尝试安卓gesture.key

    import hashlib
    import os
    import itertools
    
    
    f = open(r'D:KEYgesture.key','r')
    psd = f.readline()
    f.close()
    ANS = psd.encode('hex')
    print ANS
    
    
    b = ['00','01','02','03','04','05','06','07','08']
    
    
    cool = False
    
    for i in range(9,10):
        qq = itertools.permutations(b,i)
        nl = list(qq)
        for j in range(0,len(nl)):
            t1=''.join(nl[j])
            t2 = hashlib.sha1(t1.decode('hex')).hexdigest()
            if(t2==ANS):
                print 'the answer is :'+str(nl[j])
                cool = True
                break;
            if(cool==True):
                break;
        if(cool==True):
            break;
    
    if(cool==False):
        print 'Sorry...'
  • 相关阅读:
    CSP2018-09
    CSP2018-03
    CSP2017-12
    CSP2017-09
    CSP2017-03
    CSP2016-12
    [算法设计与分析] 奶酪 (并查集)
    5555
    阿超
    结对作业
  • 原文地址:https://www.cnblogs.com/fish7/p/4342625.html
Copyright © 2011-2022 走看看