hide files inside pic image steganography

Updated : Sep 29, 2019 hacking

hide a text or file inside image Ubuntu

Steganography is a process of hiding a file, an image, a video, a text inside another file which is widely used to receive and send digital secret messages.

 Let us now see how to hide files inside images in Linux.

command to hide a (.txt) text file inside a image (.jpg or .png)

$ cat your-pic.jpg your-text-file.txt > new-image-name.jpg

Example :

# cat img.png 1.txt > new.png

for windows use:
=> copy /b image.jpg+1.txt new.jpg

Now to view the your secret text follow this step :
> open your new image (new.png) with any text editor and scroll down to the last line to see your text

command to hide a (.zip) compressed zip file inside a image (.jpg or .png)

$ cat your-pic.jpg your-zip-file.txt > new-image-name.jpg

Example :

# cat image.jpg secret.zip > new.jpg

for windows use:
=> copy /b image.jpg+secret.zip new.jpg

Now to view the your secret file follow this step :
> open your new image (new.png) with any archive manager . you will see your file

> alternatively. you can use

$ unzip new.jpg
or
$ unzip -t new.jpg

commands to extract your secret files
> for windows use winrar or 7zip to extract

Leave a Reply

Your email address will not be published. Required fields are marked *

Creative Commons License
Except where otherwise noted, the content on this site is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.