mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2782] pdf2john hash issue #1786
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1786
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cardassian-tailor on GitHub (Sep 25, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2782
Originally assigned to: @kholia on GitHub.
Hoping to chat with magnum about this.
I was working with a pdf, opening in notepad ++ shows it was pdf version 1.4. 10500.
I was able to extract the hash but i continued to get length exception errors in hashcat. The hash I received was not the proper length according to the example hashes listed on hashcat wiki.
I tried all pdf types for the -m in hashcat (10400 - 10700).
The password was recoverable however with a commercial password recovery tool.
I was using the newest version of pdf2john.pl program.
@cardassian-tailor commented on GitHub (Sep 25, 2017):
Extracted hash,
$pdf$1*2*40*-4*1*36*65623237393831382d636439372d343130332d613835372d343164303037316639386134*32*c7230519f7db63ab1676fa30686428f0f997932bf831f1c1dcfa48cfb3b7fe99*32*161cd2f7c95283ca9db930b36aad3571ee6f5fb5632f30dc790e19c5069c86b8@kholia commented on GitHub (Sep 25, 2017):
Debugging this issue will require access to the original (or equivalent) PDF file. Please send a copy of the file to me and @magnumripper.
@magnumripper commented on GitHub (Sep 25, 2017):
@kholia is a better choice, he wrote it!
@kholia commented on GitHub (Sep 25, 2017):
I didn't write it. I can't read and write Perl. I just added some "printf" calls at the right locations in ExifTool program :-)
It seems that we need to add some error handling instead of generating broken output hashes. It seems that Perl keep running even if errors occur in the execution of the program.
@kholia commented on GitHub (Sep 25, 2017):
@oscalation Which commercial password recovery tool was able to parse this PDF file? I am curious.
@cardassian-tailor commented on GitHub (Sep 25, 2017):
I can provide pdf - where and to whom shall I send it?
Elcomsoft PDF breaker and EDPR, both cracked it.
@kholia commented on GitHub (Sep 25, 2017):
@oscalation Great! You may send the PDF along with the correct password (if possible) to
dhiru.kholia [at] gmail.com. Thank you.@kholia commented on GitHub (Sep 26, 2017):
@oscalation Did you email the PDF file to me? I haven't received the file yet.
@cardassian-tailor commented on GitHub (Sep 26, 2017):
Email with pdf file sent to @kholia.
@kholia commented on GitHub (Sep 27, 2017):
Thanks @oscalation. I was able to reproduce and solve the problem.
After applying the patch from PR https://github.com/magnumripper/JohnTheRipper/pull/2790,
The bug was present in the format, and not in the
pdf2john.plprogram.@kholia commented on GitHub (Sep 27, 2017):
PR #2790 has been merged. Hence, this bug can be closed now.