为了使用单词表(大的“16gb”)来破解密码问题,我下线了一个.lst格式的文件:https://crackstation.net/buy-crackstation-wordlist-password-cracking-dictionary.htm
所以当我尝试readlines()来分割行时,它只读取69100行,即使worlist包含超过10亿行。在
例如:
passwordlist = str(raw_input("\nEnter the path name of the password list file : "))
list = open(passwordlist, "r")
passwords = list.readlines()
list.close()
for password in passwords:
attack(password.replace("\n",""))
我需要使用python将文件拆分为txt片段,而不需要阅读诸如拆分视频或音频之类的行。在
有什么可以帮忙的。在
你试过循环阅读吗?read(size)或readline() https://docs.python.org/3/tutorial/inputoutput.html#methods-of-file-objects
相关问题 更多 >
编程相关推荐