/manipng

PNG image extraction and analysis

Primary LanguagePython

manipng

manipng, wordplay about PNG manipulation, actually a PNG analyser. Analysis is made using a simple chunk parser, although manipng can incenditally be used as a PNG extractor (e.g. from an executable). Made following a friendly request regarding one specific step from a SSTIC challenge (hence the sstic file in the test samples).

Requirements

  • python3

Features

  • script and library available
  • manage 1+ PNG data in the same file
  • extract each .png
  • analyse each chunk
  • produce a metanalysis
  • reports dumped in json

Todo

  • rework the zTXt extraction
  • proper test suite
  • produce a test sample file with three PNG files embedded
  • argparse based CLI
  • configuration for folders, json prettifying, data extraction, etc.
  • check ancillary chunks positions and sizes
  • check scale of value for color-related data
  • check/harvest specific keywords in textual data
  • allows custom chunk analysers
  • automated .md writeup document from the analysis .json
  • wrap all that in a shiny package
  • packaging a library-only version
  • packaginf a hug-api version

Credits