//View Tip #844
Similar Tips
» Zero files
» Fix the previous command
» Moved Trac and Subversion repositories to another machine/direct
» Random line
» Filter stderr for cron jobs


Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
It is possible to hide a rar archive inside a png image file and then retrieve the files from this image.

cat picture.png archive.rar > hidden_archive_in_pic.png

This can also be done on Windows:

copy picture.png + archive.rar hidden_archive_in_pic.png

When you want to retrieve the hidden files, download the image, rename to .rar and extract.

View Comments »


Add your comment

Comments are currently disabled
It doesn't work for me. Exactly, only extracting files from image. Any ideas?
Posted 2009-06-23 08:19:01
In windows, you need to add the /B flag, indicating a binary copy.

copy /B picture.png + archive.rar hidden_archive_in_pic.png
Posted 2009-06-23 21:54:20
Well, you can copy a text file onto the end of .jpg file and the jpg will still render.  I find that copying to a separate .jpg file does *not* work, but copying the text file and the jpg into the existing jpg does work.
Posted 2009-06-23 21:55:35
Posted 2009-06-23 21:58:35
A more complex (and effective) form of this is using Steganography.

http://en.wikipedia.org/wiki/S … ganography
Posted 2009-06-24 01:03:19

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit