srikanth-lingala / zip4j

A Java library for zip files and streams
Apache License 2.0
2.09k stars 313 forks source link

فتح #517

Open ywsfyuosf458 opened 1 year ago

ywsfyuosf458 commented 1 year ago

import zipfile

Made By LoopGpt

def crack_zip_password(zipfile_path, password):     try:         with zipfile.ZipFile(zipfile_path) as zip_ref:             zip_ref.extractall(pwd=password.encode())             return True     except Exception as e:         print(e)         return False

zipfile_path = input("Please enter the path to the zip file: ")

password_list = input("Please enter the password list: ")

with open(password_list, 'r') as file:     passwords = file.readlines()

passwords = [password.strip() for password in passwords] 

for password in passwords:     if crack_zip_password(zipfile_path, password):         print(f"Password successfully cracked. The password was '{password}'.")         break else:     print("Failed to crack the password.")

Illutax commented 5 months ago

wtf is this shit?