mlodic / pdfid

MIT License
13 stars 4 forks source link

PDF parsing error #9

Open dealbreaker973 opened 1 year ago

dealbreaker973 commented 1 year ago

Hi, I got the following error when testing the library on a pdf exploit generated by Metasploit module exploit/windows/fileformat/adobe_pdf_embedded_exe_nojs: NameError: name 'name' is not defined.

I believe that the error was introduced in the following line: https://github.com/mlodic/pdfid/blob/f7674ff6c0db9e09abbb632719d0ec63b03875db/pdfid/pdfid.py#L698

Deleting L697 and L698 will fix the issue.

mlodic commented 1 year ago

thank you for your bug report. Can you please open and submit a PR for it?