def run(self):
try:
zipf = zipfile.ZipFile(variables["file"][0])
except FileNotFoundError:
self.pwdh.error = "zip file not found"
return
for word in self.words:
if self.pwdh.pwd != None:
return
elif self.pwdh.error != None:
return
elif self.pwdh.kill == True:
return
try:
word = word.decode("utf-8").replace("\n", "")
if word[0] == "#":
continue
#animline("trying password: "+word)
zipf.extractall(variables["exto"][0], pwd=word.encode("utf-8"))
self.pwdh.pwd = word
return
except RuntimeError:
pass
except zipfile.BadZipFile:
pass
评论列表
文章目录