//View Tip #844
Similar Tips
» Fix the previous command
» Moved Trac and Subversion repositories to another machine/direct
» Zero files
» Add header/footer to command output
» 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 »



Comments 

Add your comment

CAPTCHA

No HTML allowed. URLs will be linked with nofollow attribute. Whitespace is preserved.

It doesn't work for me. Exactly, only extracting files from image. Any ideas?
Posted 2009-06-23 08:19:01
wygit
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
tudza
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
SH_Rock
What?
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