# All the Zips
We're given a zip file with a bunch more zip files inside of it. They're all protected by a dictionary word.
This is a script that I wrote to bruteforce all of them given a dictionary.
def crack(wname, zf):
with zipfile.ZipFile(zf) as z:
with open(wname, "r") as f:
for word in f:
z.extractall("output/%s" % zf.strip(".zip"), pwd=bytes(word.strip("\n"), "utf-8"))
print(":: [%s] SUCCESS %s" % (zf, word), end="")
print(":: [%s] ATTEMPT %s" % (zf, word), end="")
znames = ["zip%d.zip" % i for i in range(0, 140)]
for zname in znames:
if __name__ == "__main__":
The wordlist that I used was https://github.com/dwyl/english-words/blob/master/words_alpha.txt
These were the results of running the script: