All Projects → arunKumarNOP → Hide-in-png

arunKumarNOP / Hide-in-png

Licence: MIT license
Hide any file in a PNG Image

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Hide-in-png

stegpy
Simple steganography program based on the LSB method.
Stars: ✭ 74 (+335.29%)
Mutual labels:  steganography
Steganography
Image & video steganography in Matlab
Stars: ✭ 31 (+82.35%)
Mutual labels:  steganography
steganography
A simple steganography library written in rust
Stars: ✭ 75 (+341.18%)
Mutual labels:  steganography
stegjs
Encrypt message to PNG image.
Stars: ✭ 18 (+5.88%)
Mutual labels:  steganography
hiddenthread
Steganography for 2ch
Stars: ✭ 18 (+5.88%)
Mutual labels:  steganography
Hidden-Eye
Hide data into Picture
Stars: ✭ 39 (+129.41%)
Mutual labels:  steganography
Steganography
Least Significant Bit Steganography for bitmap images (.bmp and .png), WAV sound files, and byte sequences. Simple LSB Steganalysis (LSB extraction) for bitmap images.
Stars: ✭ 229 (+1247.06%)
Mutual labels:  steganography
fincher
A steganography tool for text
Stars: ✭ 80 (+370.59%)
Mutual labels:  steganography
TryHackMe-Write-Up
The entire walkthrough of all my resolved TryHackMe rooms
Stars: ✭ 53 (+211.76%)
Mutual labels:  steganography
frontend-park
哈喽大家好~我是荣顶!这是一个有趣的前端趣味知识公园~该项目是我平时捣鼓前端相关技术的一些案例集合。
Stars: ✭ 66 (+288.24%)
Mutual labels:  steganography
euli treasure hunt
Euli is not a computer game but a tool which helps you set up a real life treasure hunt
Stars: ✭ 34 (+100%)
Mutual labels:  steganography
HiddenWave
Hide Your Secret Message in any Wave Audio File.
Stars: ✭ 97 (+470.59%)
Mutual labels:  steganography
AperiSolve
Steganalysis web platform
Stars: ✭ 268 (+1476.47%)
Mutual labels:  steganography
pixcryption
📷 Pixel Safe Encryption - Now Cryptographically Secure 🔒
Stars: ✭ 56 (+229.41%)
Mutual labels:  steganography
Image-Stegano
Analysis and Implementation of Image Steganography methods using Java
Stars: ✭ 19 (+11.76%)
Mutual labels:  steganography
StegX
Steganography (BMP, PNG, WAV, MP3, AVI, FLV)
Stars: ✭ 22 (+29.41%)
Mutual labels:  steganography
nats
A program to hide file into executable binary.
Stars: ✭ 16 (-5.88%)
Mutual labels:  steganography
deep-steg
Global NIPS Paper Implementation Challenge of "Hiding Images in Plain Sight: Deep Steganography"
Stars: ✭ 43 (+152.94%)
Mutual labels:  steganography
gif-msg
Hide 127 bytes in a gif without touching any pixels or colors
Stars: ✭ 26 (+52.94%)
Mutual labels:  steganography
PyTorch-Deep-Image-Steganography
A PyTorch implementation of image steganography utilizing deep convolutional neural networks
Stars: ✭ 71 (+317.65%)
Mutual labels:  steganography

Hide files in PNG

Using this script you can hide any file in a PNG image. The script creates a fake chunk and add the file to that chunk which is ignored by PNG processing tools but it can be retrived later.

Requirement

Only python 2.7 is required, you can use python3 also just change those "print" statements.

Usage

png_hiding.py input.png payload_file output.png 

Ex:

python png_hiding.py sample.png png_hiding.py out.png

Start: 16 Count: 1266
[*] Header: IHDR Length: 13 Read_CRC: aa6971de Calc_CRC aa6971de
[*] Header: bKGD Length: 6 Read_CRC: a0bda793 Calc_CRC a0bda793
[*] Header: pHYs Length: 9 Read_CRC: 009a9c18 Calc_CRC 009a9c18
[*] Header: tIME Length: 7 Read_CRC: 71e7cf0a Calc_CRC 71e7cf0a
[*] Header: tEXt Length: 25 Read_CRC: 57810e17 Calc_CRC 57810e17
[*] Header: IDAT Length: 395 Read_CRC: 5130624e Calc_CRC 5130624e
[*] Header: IEND Length: 0 Read_CRC: ae426082 Calc_CRC ae426082

We get information like Start and Count which is offset at which our payload is written and no of bytes that are written respectively.

You can retrive the content via several method:

For the above example using values Start: 16 and Count: 1266 on the out.png file.

  • Using 'dd'
dd if=out.png of=recovered_file.py bs=1 skip=16 count=1266
  • Using python

You can use this one liner to recover the above file, replace start and Count values to recover your file.

python -c "open('recovered_file.py','wb').write(open('out.png','rb').read()[16 : 16+1266])"

You can also use language specific codes to recover the file, just google it for your language.

Final Note

This script can be used to fix invalid CRC error of a PNG which you can encounter in CTFs competitions or you can use it to explore different chunks present in a PNG file (just comment out the file writing part).

For increased security you can encrypt file before adding it to the PNG and then decrypt it after recovering.

If any suggestions or request mail me or open a issue.

Author

Arun Kumar Shreevastava

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].