Monday, February 2, 2009

Hiding Zipped Files Under Jpg Images

Sometimes we come across situations when we have to hide certain files. There are many methods in which this can be accomplished. This is one of the many ways to do so. This applies to only zip file contents.

Step 1: Zip the file/folder to be hidden


#zip xyz.ppt.zip xyz.ppt



Lets assume that abc.jpg is the image we are using for the camouflage.
 
Step 2: Hide the zipped contents


#cat abc.jpg xyz.ppt.zip > new.jpg



The new.jpg will be jpg file that hides the zipped content. The file will have meta data as jpg and any image viewer will be able to open it.

To extract the hidden contents:


#unzip new.jpg



Vola!! Thats it. Its as simple as it is! Thanks to Naveed for this tip.

5 comments:

ego said...

works only for zip/unzip. Tried bzip2/bunzip2, doesn't work for that one...

varun said...

Check this out
http://linux-hacks.blogspot.com/2009/02/theory-behind-hiding-zipped-file-under.html

This should answer your question

pbsl said...

you have a nice site. thanks for sharing this enormous resources. keep it up. anyway, various kinds of ebooks are available here

http://feboook.blogspot.com

Sumant said...

thanks for ur post
Its woring.


Recently I just came across a good article on "Linux"
Here is its link.

Alex said...

For me zip files are very important but couple days ago my sister by chance deleted whole of them. Luckily for me I remembered about my old friend and called him. He advised me - repair file zip. And it resolved my proposition with ease and for free as I bore in mind.