Neptunium931 / acropalypse_png

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Acropalypse PNG

Adapted from the PoC of David Buchanan : GitHub link

This tool is designed to restore hidden data in PNG files using acropalypse vulnerability. It can detect and display the trailing bytes length, delete hidden data, or restore hidden data and create a new PNG image.

This uses bruteforce to restore the image, without requiring the original dimension

Dependencies

  • Python 3.6 or higher
  • Pillow (PIL)
  • NumPy

You can install these dependencies using the following command:

pip install pillow numpy

Usage

The tool can be used with the following command line options:

  1. Detect the vulnerability and display the trailing bytes length:
python acropalypse_png.py detect <cropped_png>
  1. Delete the hidden data:
python acropalypse_png.py delete <cropped_png> <output_png>
  1. Restore the hidden data and create a new PNG image:
python acropalypse_png.py restore <type_exploit> <cropped_png> <reconstructed_png>

Where <type_exploit> can be either pixel or windows.

About


Languages

Language:Python 100.0%