首页
社区
课程
招聘
[旧帖] [求助]初学python求助 0.00雪花
发表于: 2015-3-31 11:42 1392

[旧帖] [求助]初学python求助 0.00雪花

2015-3-31 11:42
1392
import hashlib

md5 = hashlib.md5()
for w in 'abcdefghijklmnopqrstuvwxyz':
    w1=w
    for r in 'abcdefghijklmnopqrstuvwxyz':
        w2=r
        for o in 'abcdefghijklmnopqrstuvwxyz':
            w3=o
            for d in 'abcdefghijklmnopqrstuvwxyz':
                w4=d
                md5.update(w1+w2+w3+w4+ '0ops!^_^')
                if md5.hexdigest() == 'e79dc003a53edc551c5ef8364e97b2e2':
                    print w1+w2+w3+w4
为什么不能输出单词,如果有更好的,请大神指导。。

[课程]Linux pwn 探索篇!

收藏
免费 0
支持
分享
最新回复 (4)
雪    币: 328
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
移动一行就好了。

import hashlib

for w in 'abcdefghijklmnopqrstuvwxyz':
    w1=w
    for r in 'abcdefghijklmnopqrstuvwxyz':
        w2=r
        for o in 'abcdefghijklmnopqrstuvwxyz':
            w3=o
            for d in 'abcdefghijklmnopqrstuvwxyz':
                w4=d
                md5 = hashlib.md5()
                md5.update(w1+w2+w3+w4+ '0ops!^_^')
                if md5.hexdigest() == 'e79dc003a53edc551c5ef8364e97b2e2':
                    print w1+w2+w3+w4
2015-3-31 20:04
0
雪    币: 33
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
谢谢了~~~对了,但是为什么要这样呢?小白,求告知 OTZ
2015-3-31 20:44
0
雪    币: 328
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
md5.update(arg)
Update the md5 object with the string arg. Repeated calls are equivalent to a single call with the concatena-
tion of all the arguments: m.update(a); m.update(b) is equivalent to m.update(a+b).
2015-3-31 20:51
0
雪    币: 33
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
谢谢。。
2015-4-1 10:07
0
游客
登录 | 注册 方可回帖
返回
//