Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 57f0cc9

Browse files
version 0.0
1 parent 5353a4c commit 57f0cc9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

‎main.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import pikepdf
2+
import time
3+
from colorama import Fore
4+
from string import *
5+
from itertools import product
6+
7+
value = ascii_letters + digits + punctuation
8+
9+
count = 0
10+
start_time = time.time()
11+
for i in range(4,3,-1):
12+
for j in product(value, repeat = i):
13+
count += 1
14+
word = "".join(j)
15+
print(Fore.RED+ f"\r{count} password trying but didn't match: {word}",end="")
16+
try:
17+
pikepdf.open("Your_PDF_File_Name.pdf", password=str(word))
18+
end_time = time.time()
19+
print("\n")
20+
print(Fore.GREEN+f"Password found in {str(end_time-start_time)[:4]} second \nPassword is: ",end= "")
21+
print(Fore.BLUE+f"{word}")
22+
break
23+
except:
24+
continue
25+
26+
27+
print(Fore.LIGHTYELLOW_EX+ "Thank you")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /