Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/donno2048/exe2png
Convert executables (or any other file) into an image
https://github.com/donno2048/exe2png
steganography
Last synced: 25 days ago
JSON representation
Convert executables (or any other file) into an image
- Host: GitHub
- URL: https://github.com/donno2048/exe2png
- Owner: donno2048
- License: mit
- Created: 2022-05-11T20:25:13.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-04T09:36:58.000Z (over 1 year ago)
- Last Synced: 2024-10-05T19:18:25.888Z (about 1 month ago)
- Topics: steganography
- Language: Python
- Homepage:
- Size: 2.74 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# exe2png
Convert executables (or any other file) into an image
## Installation
### From PyPI
```sh
pip3 install exe2png
```### From GitHub
```sh
pip3 install git+https://github.com/donno2048/exe2png
```## Usage
```sh
exe2png -h
usage: exe2png [-h] (-e | -d) [-c] [-H HEIGHT] -f FILE [-o OUTPUT]Encode or decode a file to or from a PNG image.
optional arguments:
-h, --help show this help message and exit
-e, --encode encode a file to a PNG image
-d, --decode decode a PNG image to a file
-c, --color encode or decode a color image
-H HEIGHT, --height HEIGHT
height of the image
-f FILE, --file FILE the file to encode or decode
-o OUTPUT, --output OUTPUT
the file to output to
```For example, we can encode my [snake executable](https://github.com/donno2048/snake) to a greyscale PNG image (the version used in this demo is very outdated):
```sh
wget https://github.com/donno2048/snake/releases/download/v16/snake.com
exe2png -e -H 15 -f snake.com -o snakeL.png
```and get this:
![greyscale image](https://github.com/donno2048/exe2png/raw/master/snakeL.png)
and we can decode the image back to a file:
```sh
exe2png -d -f snakeL.png -o snake.com
```or we can encode a color image:
```sh
exe2png -e -c -H 9 -f snake.com -o snakeRGB.png
```and get this:
![color image](https://github.com/donno2048/exe2png/raw/master/snakeRGB.png)
and we can decode the image back to a file:
```sh
exe2png -d -c -f snakeRGB.png -o snake.com
```Here is python itself encoded into a PNG image:
![python image](https://github.com/donno2048/exe2png/raw/master/python.png)