crocs-muni / sec-certs

Tool for analysis of security certificates and their security targets (Common Criteria, NIST FIPS140-2...).
https://sec-certs.org
MIT License
12 stars 8 forks source link

Fix and enhance PDF metadata reading #242

Closed J08nY closed 2 years ago

J08nY commented 2 years ago

This fixes an issue where we closed the PDF file too early (and if there were IndirectObjects in it PyPDF2 then failed reading metadata). Also, this adds a search of hyperlinks in the PDF metadata and a function for parsing the PDF creation dates (useful for future analysis).