因为readlines()无法读取完整的fi,所以将大型.lst文件拆分为多个部分

2024-09-27 09:37:11 发布

您现在位置:Python中文网/ 问答频道 /正文

为了使用单词表(大的“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片段,而不需要阅读诸如拆分视频或音频之类的行。在

有什么可以帮忙的。在


Tags: 文件thehttps密码net格式passwordlist

热门问题