Skip to content

Instantly share code, notes, and snippets.

View pascalr0410's full-sized avatar

Pascal Railhet pascalr0410

  • France
View GitHub Profile
@pascalr0410
pascalr0410 / pdf_flatedecode.py
Created November 15, 2023 10:10 — forked from averagesecurityguy/pdf_flatedecode.py
Decompress FlateDecode Objects in PDF
#!/usr/bin/env python3
# This script is designed to do one thing and one thing only. It will find each
# of the FlateDecode streams in a PDF document using a regular expression,
# unzip them, and print out the unzipped data. You can do the same in any
# programming language you choose.
#
# This is NOT a generic PDF decoder, if you need a generic PDF decoder, please
# take a look at pdf-parser by Didier Stevens, which is included in Kali linux.
# https://tools.kali.org/forensics/pdf-parser.
#