Skip to content

Instantly share code, notes, and snippets.

@JoyGhoshs
Created September 3, 2021 16:07
Show Gist options
  • Save JoyGhoshs/620e2064e3696b45af16166d970d260a to your computer and use it in GitHub Desktop.
Save JoyGhoshs/620e2064e3696b45af16166d970d260a to your computer and use it in GitHub Desktop.
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