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


Was this information useful?


13 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

  8. jap on June 1st, 2008

    how the fuck do you do this in Linux? The commands for the terminal are different.

  9. jap on June 14th, 2008

    considering you haven’t answered me in since my last post 14 days ago, you’re an asshole…

    And considering you posted in another blog that you like Linux more than Windows, you’re a double asshole…

  10. Mark Sanborn on June 14th, 2008

    Jap,

    lol, I will see what I can do to get this trick to work in Linux. How does that sound?

  11. right?‮‫‪‭ on June 20th, 2008

    well jap, seeing as how you are so polite i suggest checking the wikipedia entry for the rar format, before you fuck yourself

  12. Jade Robbins on June 21st, 2008

    Jap,
    this is a free blog in which Mark tries to share fun tips and tricks for nothing more than to share it with people. Sometimes people have “real life” issues that might get in the way of him being at your virtual beck and call. Perhaps you should put some effort into figuring out how it works on linux and then YOU could actually contribute to the great cosmic flow of information.

  13. My Blog is Now 1 Year Old on July 8th, 2008

    [...] Hiding a Compressed RAR File in a JPEG [...]