PDFCrack,PDF文档密码恢复命令行软件

1.pdfcrack 安装

$ sudo apt-get install pdfcrack

2.pdfcreack 使用

破解文件 file.pdf 的密码:

$ pdfcrack -f file.pdf

-u :使用当前用户密码进行破解:

$ pdfcrack -f file.pdf -u 或 pdfcrack -f file.pdf --user

-o:使用文件所有者的密码进行破解:

$ pdfcrack -f file.pdf -o 或 pdfcrack -f file.pdf --owner

3.加速破解过程

试着使用给定的字符对文件进行破解:

$ pdfcrack -f file.pdf -c abcdef123

当尝试的字符数达到10个时停止破解:

$ pdfcrack -f file.pdf -m 10

略过字符数小于8的密码:

$ pdfcrack -f file.pdf -n 8

示例1:

$ pdfcrack -f file.pdf

示例输出:

PDF version 1.3
Security Handler: Standard
V: 2
R: 3
P: -1852
Length: 128
Encrypted Metadata: True
FileID: b3909b5523f6b1ceca6b1d3e4f9a55ee
U: b5e8aab71559346b90375ccc1e8a567500000000000000000000000000000000
O: 5e3347810f0e147ed33e61562286931ab0ecf3533b095ff2bf5be6f9befd297f
Average Speed: 30145.4 w/s. Current Word: 'tZFb'
Average Speed: 30588.3 w/s. Current Word: 'F8ee'
Average Speed: 30619.2 w/s. Current Word: 'OrOg'
Average Speed: 30969.3 w/s. Current Word: 'Uzpj'
Average Speed: 31196.5 w/s. Current Word: 'jT1l'
Average Speed: 31067.5 w/s. Current Word: '4wDo'
....
..
..
found user-password: 'z12u3456'

示例2:

$ pdfcrack -f file.pdf -c 12345678

另一个示例输出:

PDF version 1.3
Security Handler: Standard
V: 2
R: 3
P: -1852
Length: 128
Encrypted Metadata: True
FileID: b3909b5523f6b1ceca6b1d3e4f9a55ee
U: b5e8aab71559346b90375ccc1e8a567500000000000000000000000000000000
O: 5e3347810f0e147ed33e61562286931ab0ecf3533b095ff2bf5be6f9befd297f
found user-password: '123456'

扩展阅读:

via:www.cyberciti.biz