Skip to content

Instantly share code, notes, and snippets.

@jahanideveloper
Last active March 29, 2018 19:33
Show Gist options
  • Save jahanideveloper/43e06458d5ef5b3317ce9295b5b7239c to your computer and use it in GitHub Desktop.
Save jahanideveloper/43e06458d5ef5b3317ce9295b5b7239c to your computer and use it in GitHub Desktop.
کد فایل بسیار ساده برای باز کردن کلمه عبور فایلهای زیپ
import zipfile
zfile = zipfile.ZipFile('uti.zip','r')
passfile = open('uti.txt','rb')
count = 0
for line in passfile:
password = line.strip()
try:
zfile.extractall(pwd=password)
break
except Exception:
count+=1
print("{} check!".format(count) )
print('[+] Password =',password)
@jahanideveloper
Copy link
Author

jahanideveloper commented Mar 29, 2018

به جای `uti.zip` اسم فایل خود را قرار دهید و به جای `uti.txt` دیکشنری از کلمه های عبور را به برنامه بدید با یک جستجو کوچک در اینترنت میتونید کلمه عبور آماده پیدا کنید

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment