解密1
import base64
import hashlib
def GetMd5(hash):
hash1 = hashlib.md5(hash)
return hash1.hexdigest()
flag2 = ''
with open('miwen.txt','r') as f:
flag2 = f.read()
for i in range(1,40):
flag2=base64.b64decode(flag2)
print(flag2)
with open('top10000.txt', 'r', encoding='utf8') as f:
passwd = f.readlines()
for item in passwd:
flag1 = item.strip() + ':' + 'LJJJK'
if GetMd5(flag1.encode(encoding="utf-8")).encode(encoding="utf-8") == flag2:
print(item.strip())