Hi,

I am trying to retrieve the pdf hashes via a JohnTheRipper script, which can be found at (can't link it - get "permission denied") magnumripper/JohnTheRipper/bleeding-jumbo/run/pdf2john.pl under raw.githubusercontent.com

I have media-libs/exiftool-11.29 installed in the standard destination for my distribution (and media-libs/libexif-0.6.21-r2 installed, as well).

The relevant part of the environment:

$ perl -V [...] @INC: /etc/perl /usr/local/lib64/perl5/5.26.2/x86_64-linux /usr/local/lib64/perl5/5.26.2 /usr/lib64/perl5/vendor_perl/5.26.2/x86_64-linux /usr/lib64/perl5/vendor_perl/5.26.2 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.26.2/x86_64-linux /usr/lib64/perl5/5.26.2
The location of the module:
$ ls -al /usr/lib/perl5/vendor_perl/5.26.2/Image/ total 468 drwxr-xr-x 3 root root 4096 2019-05-16 02:15:48 ./ drwxr-xr-x 17 root root 4096 2019-05-16 02:22:43 ../ drwxr-xr-x 4 root root 4096 2019-05-16 02:15:48 ExifTool/ -r--r--r-- 1 root root 352517 2019-05-16 02:15:38 ExifTool.pm -r--r--r-- 1 root root 100000 2019-05-16 02:15:38 ExifTool.pod
The initial error:
$ perl pdf2john.pl file.pdf Can't locate ExifTool.pm in @INC (you may need to install the ExifTool + module) (@INC contains: ./lib /etc/perl /usr/local/lib64/perl5/5.26. +2/x86_64-linux /usr/local/lib64/perl5/5.26.2 /usr/lib64/perl5/vendor_ +perl/5.26.2/x86_64-linux /usr/lib64/perl5/vendor_perl/5.26.2 /usr/loc +al/lib64/perl5 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.26.2/x +86_64-linux /usr/lib64/perl5/5.26.2) at pdf2john.pl line 39. BEGIN failed--compilation aborted at pdf2john.pl line 39.
Of course, I did some searching before coming here, and found a suggested fix:
$ perl -I /usr/lib64/perl5/vendor_perl/5.26.2/Image/ pdf2john.pl file. +pdf Name "ExifTool::configFile" used only once: possible typo at pdf2john. +pl line 36. Name "ExifTool::langs" used only once: possible typo at pdf2john.pl li +ne 771. Name "ExifTool::charsetName" used only once: possible typo at pdf2john +.pl line 589. Name "ExifTool::langName" used only once: possible typo at pdf2john.pl + line 771. Can't locate object method "new" via package "ExifTool" at pdf2john.pl + line 403.
At this point, I am completely baffled as to why ExifTool can't find the "new" method.

Any idea what is going on? Thank you in advance for your assistance.


In reply to environment and locations by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.