from itertools import product
from zipfile import ZipFile
mystring = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
combos1 = [''.join(i) for i in product(mystring, repeat = 1)]
combos2 = [''.join(i) for i in product(mystring, repeat = 2)]
combostotal=(combos1+combos2)
file= open("output.txt","w") #This just tests to see if the file is working by wiritng to text file
file.write (str(combostotal))
file.close()
testzipfile = "test.zip"
fileinzip ="Godbold.jpg"
password=# needs to iterate through the combostotal testing each combination against the winzip pw
with ZipFile('test.zip') as myzip:
myzip.extractall(pwd=bytes(password, "UTF-8"))