Running pdfcrack to include special characters in charset
BASH ( Linux, Mac OS X, Windows with Cygwin )
You don't have to escape anything, put the charset between ''
like this:
pdfcrack -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*(''/\||""' Some.pdf
But if you really want to read the charset from a file then you can do it like this:
MY_CHARS=$(cat charset.txt); pdfcrack -c $MY_CHARS Some.pdf
CMD ( Windows only)
Put the charset between ""
and only escape "
itself with double ""
like this:
C:\>pdfcrack.exe -c "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%?^&*(''/\||'""" Some.pdf
Charset from file (same escaping rule need to be applied on the file content):
C:\>set /p CHARSET=<charset.txt & pdfcrack.exe -c %CHARSET% Some.pdf