Hiding a Compressed RAR File in a JPEG

OK, ever want to send a file to someone in a very sneaky way? Or want to files on your sever cleverly disguised as a jpeg? Here is a way for you to bind these files in windows so that it looks like a normal jpeg image. If you open it by means of a double click, it will open in your default image viewer. If however, you open the jpeg with WinRAR the file will act as a compressed archive!

To do this follow these steps:

Place the image in c:\. Then place the .rar file that you want to bind with the the image in the same directory.

Open up the command line by clicking, start, run, then type cmd, press enter.

Navigate to the c:\ by typing, `cd c:\.

Type copy /b nameofimage.jpg + nameofrar.rar chooseanewname.jpg

The command above will produce a file with the name of your choosing. The resulting jpg image will have the rar file binded to it. To windows this image looks like any other image. To WinRAR it it is a compressed archive file.

The following image was made using this process and has a secret rar file attached:

JPEG Rar Binding



7 Responses to "Hiding a Compressed RAR File in a JPEG"
  1. Shamim on January 22nd, 2008

    Nice trick. I might use it someday.

  2. EgoInstigator on April 30th, 2008

    Thanks for that. Using Stumble teaches me SO much with it finding little gems like this.

    :)

  3. west158@hotmail.com on May 1st, 2008

    yer, but how does the reciver get that rar file from the pic?

  4. Nivek on May 1st, 2008

    I was hoping for a better “secret” than your web addy….Nice to know tho.

  5. Mark Sanborn on May 1st, 2008

    @west158@hotmail.com - The rar file is embedded into the jpeg. That is the whole point. :) Just open the jpeg with winrar and you will see.

    @Nivek - :) Sorry to dissipoint, btw you are not supposed to reveal the secret.

  6. GFYM on May 1st, 2008

    You could hide a secret jpeg in the jpeg, for some ekstra fun.

  7. Shemaiance on May 1st, 2008

    Sweet I can hide my porn

Leave a reply