This small update brings support for ZIP 2.0 via the pyzipper module and fixes a /ObjStm parsing bug.
pdf-parser_V0_7_10.zip (http)MD5: 2EB627850B215F3B9D1532880DA4E8DB
SHA256: 17F9EA0B4CADF0143AA52E1406EEC7769DA1B860375440D8492ADC113300CDFD
This small update brings support for ZIP 2.0 via the pyzipper module and fixes a /ObjStm parsing bug.
pdf-parser_V0_7_10.zip (http)RSS feed for comments on this post. TrackBack URI
This site uses Akismet to reduce spam. Learn how your comment data is processed.
When I check this sample (https://bazaar.abuse.ch/sample/5c2764b9d3a6df67f99e342404e46a41ec6e1f5582919d5f99098d90fd45367f/), it says error has no attribute message
it around line 656 in pdf-parser.py
def Decompress(self, data, filters):
for filter in filters:
if EqualCanonical(filter, ‘/FlateDecode’) or EqualCanonical(filter, ‘/Fl’):
try:
data = FlateDecode(data)
except zlib.error as e:
message = ‘FlateDecode decompress failed’
if len(data) > 0 and ord(data[0]) & 0x0F != 8:
message += ‘, unexpected compression method: %02x’ % ord(data[0])
#return message + ‘. zlib.error %s’ % e.message
return message + ‘. zlib.error’
I using Python3.10,The error class of zlib library has no message attribute.
Comment by Anonymous — Monday 30 December 2024 @ 11:32
Is this PDF encrypted?
Comment by Didier Stevens — Tuesday 31 December 2024 @ 16:21