Hi Didier, I decided to try your pdf-parser and installed python (x64) 2.7.13. It could not get beyond syntax error. So I tried 2.7.9 (x64) and then (x32) with the same result. The pdf is placed in the same folder as pdf-parser.py – I used your youtube video on how to use it for guidance but no luck. Am I doing something wrong? Thanks in advance.
Sorry – am running Windows 7 x64 O/S.
What error do you get?
SyntaxError: invalid syntax
using the cmd >> pdf-parser.py –stats dsTestpdf.pdf
The only thing I have done is import os to chdir to a child folder containing your python scripts. The pdf is in the same folder as pdf-parser. Python27 is the parent folder.
Please provide the complete error trace. Copy the trace and paste it here.
OK. Sorry to bother you. I think I am running it from the wrong window. I run this from the windows cmd command prompt and not the python gui? Above is from python gui.
Yes. The command prompt, not the Python console.
It works fine. Sorry to disturb you. I appreciate your replies.
Thank you for posting your analysis tools, the tools are excellent. I am using your pdf tools to analyse my pdf collection over a few years. Some qns:
1. Large files (300pgs .. > 30MB) take much longer – this is normal?
2. Can nasties be hidden in JBIG2 objects?
3. Can your scripts accept wild cards to do whole directories?
4. Can your scripts test for pdf open or valid pdf as some just hang (or maybe taking a long time)
Thanks again Didier. Sorry to be a pain in the rear end.
I have the impression that it is the first time that you are looking at the internals of a PDF document. If so, I suggest you read this: https://blog.didierstevens.com/2010/09/26/free-malicious-pdf-analysis-e-book/
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Notify me of new posts via email.