Advanced Brute Force in Python import zipfile, getpass count = 1 PCusername = getpass.getuser() with open("C:\\Users\\" + PCusername + "\\Desktop\\darkweb2017-top10000.txt",'rb') as text: for entry in text.readlines(): password = entry.strip() try: with zipfile.ZipFile("C:\\Users\\" + PCusername + "\\Desktop\\locked.zip",'r') as zf: zf.extractall(pwd=password) data = zf.namelist()[0] data_size = zf.getinfo(data).file_size print('''******************************\n[+] Password found! ~ %s\n ~%s\n ~%s\n******************************''' % (password.decode('utf8'), data, data_size)) break except: number = count print('[%s] [-] Password failed! - %s' % (number,password.decode('utf8'))) count += 1 pass