Created
September 3, 2021 16:07
-
-
Save JoyGhoshs/620e2064e3696b45af16166d970d260a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pikepdf | |
from tqdm import tqdm | |
pass = [ line.strip() for line in open("yourwordlist") ] | |
for password in tqdm(passwords, "[*] Cracking PDF"): | |
try: | |
with pikepdf.open("target.pdf", password=pass) as pdf: | |
print("[+] Cracked Password:", password) | |
break | |
except pikepdf._qpdf.PasswordError as e: | |
continue | |
__A__="SYSTEM00 Security" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment