|
Message-ID: <20241118043547.GA9135@openwall.com> Date: Mon, 18 Nov 2024 05:35:48 +0100 From: Solar Designer <solar@...nwall.com> To: john-users@...ts.openwall.com Subject: Re: Extracting the hash of a PDF document-Problem with pdf2john.pl On Mon, Nov 18, 2024 at 12:01:07AM +0000, Samuel Powell wrote: > C:\Strawberry>perl pdf2john.pl LitheUKT.pdf > hash > Can't locate File/RandomAccess.pm in @INC (you may need to install the > File::RandomAccess module) (@INC entries checked: C:\Strawberry/lib > C:/Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib > C:/Strawberry/perl/lib) at C:/Strawberry/perl/site/lib/ExifTool.pm line 21. > BEGIN failed--compilation aborted at > C:/Strawberry/perl/site/lib/ExifTool.pm line 21. > Compilation failed in require at pdf2john.pl line 40. > BEGIN failed--compilation aborted at pdf2john.pl line 40. > > I had just installed this version of Strawberry before starting the > hash-extraction process: "*5.40.0.1 MSI (196.4 MB)*" at > https://strawberryperl.com/ > > Afterwards, I installed ExifTool from "*ExifTool_install_13.03_64.exe > Windows Installer, 64 bit version*" at > https://oliverbetz.de/pages/Artikel/ExifTool-for-Windows > > I will really appreciate if you could please let me know what's missing > now, because that file mentioned in the error message (RandomAccess.pm) is > certainly available within the "Exiftool" program files. I don't know why exactly RandomAccess.pm isn't found for you - perhaps it's not in any of the directories in @INC. You may copy it to one of those directories. However, we actually have our own copies of ExifTool.pm and RandomAccess.pm in JtR under run/lib, and pdf2john.pl tries to look for them (also) in the "lib" subdirectory relative to where the script itself is located. So you may want to either run the command when you're in JtR's "run" directory, or copy not only pdf2john.pl but also "run/lib" (naming it just "lib") to C:\Strawberry. Yet another option is to install Cygwin and also install its perl-Image-ExifTool via Cygwin's setup program (it lets you select package groups or packages). https://cygwin.com/cygwin/packages/summary/perl-Image-ExifTool.html and then run pdf2john.pl from Cygwin shell. Alexander
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.